import * as pulumi from "@pulumi/pulumi"; import { input as inputs, output as outputs } from "../../types"; /** * Creates a custom consumer key and secret for a developer app. This is particularly useful if you want to migrate existing consumer keys and secrets to Apigee hybrid from another system. Consumer keys and secrets can contain letters, numbers, underscores, and hyphens. No other special characters are allowed. To avoid service disruptions, a consumer key and secret should not exceed 2 KBs each. **Note**: When creating the consumer key and secret, an association to API products will not be made. Therefore, you should not specify the associated API products in your request. Instead, use the UpdateDeveloperAppKey API to make the association after the consumer key and secret are created. If a consumer key and secret already exist, you can keep them or delete them using the DeleteDeveloperAppKey API. */ export declare class OrganizationDeveloperAppKey extends pulumi.CustomResource { /** * Get an existing OrganizationDeveloperAppKey resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, opts?: pulumi.CustomResourceOptions): OrganizationDeveloperAppKey; /** * Returns true if the given object is an instance of OrganizationDeveloperAppKey. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is OrganizationDeveloperAppKey; /** * List of API products for which the credential can be used. **Note**: Do not specify the list of API products when creating a consumer key and secret for a developer app. Instead, use the UpdateDeveloperAppKey API to make the association after the consumer key and secret are created. */ readonly apiProducts: pulumi.Output; /** * List of attributes associated with the credential. */ readonly attributes: pulumi.Output; /** * Consumer key. */ readonly consumerKey: pulumi.Output; /** * Secret key. */ readonly consumerSecret: pulumi.Output; /** * Time the developer app expires in milliseconds since epoch. */ readonly expiresAt: pulumi.Output; /** * Input only. Expiration time, in seconds, for the consumer key. If not set or left to the default value of `-1`, the API key never expires. The expiration time can't be updated after it is set. */ readonly expiresInSeconds: pulumi.Output; /** * Time the developer app was created in milliseconds since epoch. */ readonly issuedAt: pulumi.Output; /** * Scopes to apply to the app. The specified scope names must already be defined for the API product that you associate with the app. */ readonly scopes: pulumi.Output; /** * Status of the credential. Valid values include `approved` or `revoked`. */ readonly status: pulumi.Output; /** * Create a OrganizationDeveloperAppKey resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: OrganizationDeveloperAppKeyArgs, opts?: pulumi.CustomResourceOptions); } /** * The set of arguments for constructing a OrganizationDeveloperAppKey resource. */ export interface OrganizationDeveloperAppKeyArgs { /** * List of API products for which the credential can be used. **Note**: Do not specify the list of API products when creating a consumer key and secret for a developer app. Instead, use the UpdateDeveloperAppKey API to make the association after the consumer key and secret are created. */ readonly apiProducts?: pulumi.Input; readonly appsId: pulumi.Input; /** * List of attributes associated with the credential. */ readonly attributes?: pulumi.Input[]>; /** * Consumer key. */ readonly consumerKey?: pulumi.Input; /** * Secret key. */ readonly consumerSecret?: pulumi.Input; readonly developersId: pulumi.Input; /** * Time the developer app expires in milliseconds since epoch. */ readonly expiresAt?: pulumi.Input; /** * Input only. Expiration time, in seconds, for the consumer key. If not set or left to the default value of `-1`, the API key never expires. The expiration time can't be updated after it is set. */ readonly expiresInSeconds?: pulumi.Input; /** * Time the developer app was created in milliseconds since epoch. */ readonly issuedAt?: pulumi.Input; readonly keysId: pulumi.Input; readonly organizationsId: pulumi.Input; /** * Scopes to apply to the app. The specified scope names must already be defined for the API product that you associate with the app. */ readonly scopes?: pulumi.Input[]>; /** * Status of the credential. Valid values include `approved` or `revoked`. */ readonly status?: pulumi.Input; }