import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Resource for managing an AWS AppFabric App Authorization. * * ## Example Usage * * ### Basic Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = new aws.appfabric.AppAuthorization("example", { * credential: { * apiKeyCredentials: [{ * apiKey: "exampleapikeytoken", * }], * }, * tenants: [{ * tenantDisplayName: "example", * tenantIdentifier: "example", * }], * app: "TERRAFORMCLOUD", * appBundleArn: arn, * authType: "apiKey", * }); * ``` */ export declare class AppAuthorization extends pulumi.CustomResource { /** * Get an existing AppAuthorization 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 state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: AppAuthorizationState, opts?: pulumi.CustomResourceOptions): AppAuthorization; /** * Returns true if the given object is an instance of AppAuthorization. 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 AppAuthorization; /** * Name of the application. For valid values, see the [CreateAppAuthorization API reference](https://docs.aws.amazon.com/appfabric/latest/api/API_CreateAppAuthorization.html). */ readonly app: pulumi.Output; /** * ARN of the app bundle to use for the request. */ readonly appBundleArn: pulumi.Output; /** * ARN of the App Authorization. */ readonly arn: pulumi.Output; /** * Authorization type for the app authorization. Valid values are `oauth2` and `apiKey`. */ readonly authType: pulumi.Output; /** * Application URL for the OAuth flow. */ readonly authUrl: pulumi.Output; /** * Timestamp of when the app authorization was created. */ readonly createdAt: pulumi.Output; /** * Credentials for the application, such as an API key or OAuth2 client ID and secret. Specify credentials that match the authorization type for your request. For example, if the authorization type for your request is OAuth2 (`oauth2`), then you should provide only the OAuth2 credentials. See `credential` Block for details. */ readonly credential: pulumi.Output; /** * User persona of the app authorization. */ readonly persona: pulumi.Output; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ readonly region: pulumi.Output; /** * Map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. */ readonly tags: pulumi.Output<{ [key: string]: string; } | undefined>; /** * Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block. */ readonly tagsAll: pulumi.Output<{ [key: string]: string; }>; /** * Information about an application tenant, such as the application display name and identifier. See `tenant` Block for details. * * The following arguments are optional: */ readonly tenants: pulumi.Output; readonly timeouts: pulumi.Output; /** * Timestamp of when the app authorization was last updated. */ readonly updatedAt: pulumi.Output; /** * Create a AppAuthorization 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: AppAuthorizationArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering AppAuthorization resources. */ export interface AppAuthorizationState { /** * Name of the application. For valid values, see the [CreateAppAuthorization API reference](https://docs.aws.amazon.com/appfabric/latest/api/API_CreateAppAuthorization.html). */ app?: pulumi.Input; /** * ARN of the app bundle to use for the request. */ appBundleArn?: pulumi.Input; /** * ARN of the App Authorization. */ arn?: pulumi.Input; /** * Authorization type for the app authorization. Valid values are `oauth2` and `apiKey`. */ authType?: pulumi.Input; /** * Application URL for the OAuth flow. */ authUrl?: pulumi.Input; /** * Timestamp of when the app authorization was created. */ createdAt?: pulumi.Input; /** * Credentials for the application, such as an API key or OAuth2 client ID and secret. Specify credentials that match the authorization type for your request. For example, if the authorization type for your request is OAuth2 (`oauth2`), then you should provide only the OAuth2 credentials. See `credential` Block for details. */ credential?: pulumi.Input; /** * User persona of the app authorization. */ persona?: pulumi.Input; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: pulumi.Input; /** * Map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block. */ tagsAll?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * Information about an application tenant, such as the application display name and identifier. See `tenant` Block for details. * * The following arguments are optional: */ tenants?: pulumi.Input[] | undefined>; timeouts?: pulumi.Input; /** * Timestamp of when the app authorization was last updated. */ updatedAt?: pulumi.Input; } /** * The set of arguments for constructing a AppAuthorization resource. */ export interface AppAuthorizationArgs { /** * Name of the application. For valid values, see the [CreateAppAuthorization API reference](https://docs.aws.amazon.com/appfabric/latest/api/API_CreateAppAuthorization.html). */ app: pulumi.Input; /** * ARN of the app bundle to use for the request. */ appBundleArn: pulumi.Input; /** * Authorization type for the app authorization. Valid values are `oauth2` and `apiKey`. */ authType: pulumi.Input; /** * Credentials for the application, such as an API key or OAuth2 client ID and secret. Specify credentials that match the authorization type for your request. For example, if the authorization type for your request is OAuth2 (`oauth2`), then you should provide only the OAuth2 credentials. See `credential` Block for details. */ credential: pulumi.Input; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: pulumi.Input; /** * Map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * Information about an application tenant, such as the application display name and identifier. See `tenant` Block for details. * * The following arguments are optional: */ tenants: pulumi.Input[]>; timeouts?: pulumi.Input; } //# sourceMappingURL=appAuthorization.d.ts.map