1. Packages
  2. Packages
  3. AWS
  4. API Docs
  5. appfabric
  6. AppAuthorization
Viewing docs for AWS v7.42.0
published on Thursday, Aug 13, 2026 by Pulumi
aws logo aws logo
Viewing docs for AWS v7.42.0
published on Thursday, Aug 13, 2026 by Pulumi

    Resource for managing an AWS AppFabric App Authorization.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.appfabric.AppAuthorization("example", {
        app: "TERRAFORMCLOUD",
        appBundleArn: arn,
        authType: "apiKey",
        credential: {
            apiKeyCredentials: [{
                apiKey: "exampleapikeytoken",
            }],
        },
        tenants: [{
            tenantDisplayName: "example",
            tenantIdentifier: "example",
        }],
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.appfabric.AppAuthorization("example",
        app="TERRAFORMCLOUD",
        app_bundle_arn=arn,
        auth_type="apiKey",
        credential={
            "api_key_credentials": [{
                "api_key": "exampleapikeytoken",
            }],
        },
        tenants=[{
            "tenant_display_name": "example",
            "tenant_identifier": "example",
        }])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/appfabric"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := appfabric.NewAppAuthorization(ctx, "example", &appfabric.AppAuthorizationArgs{
    			App:          pulumi.String("TERRAFORMCLOUD"),
    			AppBundleArn: pulumi.Any(arn),
    			AuthType:     pulumi.String("apiKey"),
    			Credential: &appfabric.AppAuthorizationCredentialArgs{
    				ApiKeyCredentials: appfabric.AppAuthorizationCredentialApiKeyCredentialArray{
    					&appfabric.AppAuthorizationCredentialApiKeyCredentialArgs{
    						ApiKey: pulumi.String("exampleapikeytoken"),
    					},
    				},
    			},
    			Tenants: appfabric.AppAuthorizationTenantArray{
    				&appfabric.AppAuthorizationTenantArgs{
    					TenantDisplayName: pulumi.String("example"),
    					TenantIdentifier:  pulumi.String("example"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Aws.AppFabric.AppAuthorization("example", new()
        {
            App = "TERRAFORMCLOUD",
            AppBundleArn = arn,
            AuthType = "apiKey",
            Credential = new Aws.AppFabric.Inputs.AppAuthorizationCredentialArgs
            {
                ApiKeyCredentials = new[]
                {
                    new Aws.AppFabric.Inputs.AppAuthorizationCredentialApiKeyCredentialArgs
                    {
                        ApiKey = "exampleapikeytoken",
                    },
                },
            },
            Tenants = new[]
            {
                new Aws.AppFabric.Inputs.AppAuthorizationTenantArgs
                {
                    TenantDisplayName = "example",
                    TenantIdentifier = "example",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.appfabric.AppAuthorization;
    import com.pulumi.aws.appfabric.AppAuthorizationArgs;
    import com.pulumi.aws.appfabric.inputs.AppAuthorizationCredentialArgs;
    import com.pulumi.aws.appfabric.inputs.AppAuthorizationCredentialApiKeyCredentialArgs;
    import com.pulumi.aws.appfabric.inputs.AppAuthorizationTenantArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var example = new AppAuthorization("example", AppAuthorizationArgs.builder()
                .app("TERRAFORMCLOUD")
                .appBundleArn(arn)
                .authType("apiKey")
                .credential(AppAuthorizationCredentialArgs.builder()
                    .apiKeyCredentials(AppAuthorizationCredentialApiKeyCredentialArgs.builder()
                        .apiKey("exampleapikeytoken")
                        .build())
                    .build())
                .tenants(AppAuthorizationTenantArgs.builder()
                    .tenantDisplayName("example")
                    .tenantIdentifier("example")
                    .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: aws:appfabric:AppAuthorization
        properties:
          app: TERRAFORMCLOUD
          appBundleArn: ${arn}
          authType: apiKey
          credential:
            apiKeyCredentials:
              - apiKey: exampleapikeytoken
          tenants:
            - tenantDisplayName: example
              tenantIdentifier: example
    
    pulumi {
      required_providers {
        aws = {
          source = "pulumi/aws"
        }
      }
    }
    
    resource "aws_appfabric_appauthorization" "example" {
      app            = "TERRAFORMCLOUD"
      app_bundle_arn = arn
      auth_type      = "apiKey"
      credential = {
        api_key_credentials = [{
          "apiKey" = "exampleapikeytoken"
        }]
      }
      tenants {
        tenant_display_name = "example"
        tenant_identifier   = "example"
      }
    }
    

    Create AppAuthorization Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new AppAuthorization(name: string, args: AppAuthorizationArgs, opts?: CustomResourceOptions);
    @overload
    def AppAuthorization(resource_name: str,
                         args: AppAuthorizationArgs,
                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def AppAuthorization(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         app: Optional[str] = None,
                         app_bundle_arn: Optional[str] = None,
                         auth_type: Optional[str] = None,
                         credential: Optional[AppAuthorizationCredentialArgs] = None,
                         tenants: Optional[Sequence[AppAuthorizationTenantArgs]] = None,
                         region: Optional[str] = None,
                         tags: Optional[Mapping[str, str]] = None,
                         timeouts: Optional[AppAuthorizationTimeoutsArgs] = None)
    func NewAppAuthorization(ctx *Context, name string, args AppAuthorizationArgs, opts ...ResourceOption) (*AppAuthorization, error)
    public AppAuthorization(string name, AppAuthorizationArgs args, CustomResourceOptions? opts = null)
    public AppAuthorization(String name, AppAuthorizationArgs args)
    public AppAuthorization(String name, AppAuthorizationArgs args, CustomResourceOptions options)
    
    type: aws:appfabric:AppAuthorization
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "aws_appfabric_app_authorization" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args AppAuthorizationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args AppAuthorizationArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args AppAuthorizationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AppAuthorizationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AppAuthorizationArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var appAuthorizationResource = new Aws.AppFabric.AppAuthorization("appAuthorizationResource", new()
    {
        App = "string",
        AppBundleArn = "string",
        AuthType = "string",
        Credential = new Aws.AppFabric.Inputs.AppAuthorizationCredentialArgs
        {
            ApiKeyCredentials = new[]
            {
                new Aws.AppFabric.Inputs.AppAuthorizationCredentialApiKeyCredentialArgs
                {
                    ApiKey = "string",
                },
            },
            Oauth2Credential = new Aws.AppFabric.Inputs.AppAuthorizationCredentialOauth2CredentialArgs
            {
                ClientId = "string",
                ClientSecret = "string",
            },
        },
        Tenants = new[]
        {
            new Aws.AppFabric.Inputs.AppAuthorizationTenantArgs
            {
                TenantDisplayName = "string",
                TenantIdentifier = "string",
            },
        },
        Region = "string",
        Tags = 
        {
            { "string", "string" },
        },
        Timeouts = new Aws.AppFabric.Inputs.AppAuthorizationTimeoutsArgs
        {
            Create = "string",
            Delete = "string",
            Update = "string",
        },
    });
    
    example, err := appfabric.NewAppAuthorization(ctx, "appAuthorizationResource", &appfabric.AppAuthorizationArgs{
    	App:          pulumi.String("string"),
    	AppBundleArn: pulumi.String("string"),
    	AuthType:     pulumi.String("string"),
    	Credential: &appfabric.AppAuthorizationCredentialArgs{
    		ApiKeyCredentials: appfabric.AppAuthorizationCredentialApiKeyCredentialArray{
    			&appfabric.AppAuthorizationCredentialApiKeyCredentialArgs{
    				ApiKey: pulumi.String("string"),
    			},
    		},
    		Oauth2Credential: &appfabric.AppAuthorizationCredentialOauth2CredentialArgs{
    			ClientId:     pulumi.String("string"),
    			ClientSecret: pulumi.String("string"),
    		},
    	},
    	Tenants: appfabric.AppAuthorizationTenantArray{
    		&appfabric.AppAuthorizationTenantArgs{
    			TenantDisplayName: pulumi.String("string"),
    			TenantIdentifier:  pulumi.String("string"),
    		},
    	},
    	Region: pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Timeouts: &appfabric.AppAuthorizationTimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    		Update: pulumi.String("string"),
    	},
    })
    
    resource "aws_appfabric_app_authorization" "appAuthorizationResource" {
      lifecycle {
        create_before_destroy = true
      }
      app            = "string"
      app_bundle_arn = "string"
      auth_type      = "string"
      credential = {
        api_key_credentials = [{
          api_key = "string"
        }]
        oauth2_credential = {
          client_id     = "string"
          client_secret = "string"
        }
      }
      tenants {
        tenant_display_name = "string"
        tenant_identifier   = "string"
      }
      region = "string"
      tags = {
        "string" = "string"
      }
      timeouts = {
        create = "string"
        delete = "string"
        update = "string"
      }
    }
    
    var appAuthorizationResource = new AppAuthorization("appAuthorizationResource", AppAuthorizationArgs.builder()
        .app("string")
        .appBundleArn("string")
        .authType("string")
        .credential(AppAuthorizationCredentialArgs.builder()
            .apiKeyCredentials(AppAuthorizationCredentialApiKeyCredentialArgs.builder()
                .apiKey("string")
                .build())
            .oauth2Credential(AppAuthorizationCredentialOauth2CredentialArgs.builder()
                .clientId("string")
                .clientSecret("string")
                .build())
            .build())
        .tenants(AppAuthorizationTenantArgs.builder()
            .tenantDisplayName("string")
            .tenantIdentifier("string")
            .build())
        .region("string")
        .tags(Map.of("string", "string"))
        .timeouts(AppAuthorizationTimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .update("string")
            .build())
        .build());
    
    app_authorization_resource = aws.appfabric.AppAuthorization("appAuthorizationResource",
        app="string",
        app_bundle_arn="string",
        auth_type="string",
        credential={
            "api_key_credentials": [{
                "api_key": "string",
            }],
            "oauth2_credential": {
                "client_id": "string",
                "client_secret": "string",
            },
        },
        tenants=[{
            "tenant_display_name": "string",
            "tenant_identifier": "string",
        }],
        region="string",
        tags={
            "string": "string",
        },
        timeouts={
            "create": "string",
            "delete": "string",
            "update": "string",
        })
    
    const appAuthorizationResource = new aws.appfabric.AppAuthorization("appAuthorizationResource", {
        app: "string",
        appBundleArn: "string",
        authType: "string",
        credential: {
            apiKeyCredentials: [{
                apiKey: "string",
            }],
            oauth2Credential: {
                clientId: "string",
                clientSecret: "string",
            },
        },
        tenants: [{
            tenantDisplayName: "string",
            tenantIdentifier: "string",
        }],
        region: "string",
        tags: {
            string: "string",
        },
        timeouts: {
            create: "string",
            "delete": "string",
            update: "string",
        },
    });
    
    type: aws:appfabric:AppAuthorization
    properties:
        app: string
        appBundleArn: string
        authType: string
        credential:
            apiKeyCredentials:
                - apiKey: string
            oauth2Credential:
                clientId: string
                clientSecret: string
        region: string
        tags:
            string: string
        tenants:
            - tenantDisplayName: string
              tenantIdentifier: string
        timeouts:
            create: string
            delete: string
            update: string
    

    AppAuthorization Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The AppAuthorization resource accepts the following input properties:

    App string
    Name of the application. For valid values, see the CreateAppAuthorization API reference.
    AppBundleArn string
    Amazon Resource Name (ARN) of the app bundle to use for the request.
    AuthType string
    Authorization type for the app authorization. Valid values are oauth2 and apiKey.
    Credential AppAuthorizationCredential
    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.
    Tenants List<AppAuthorizationTenant>

    Information about an application tenant, such as the application display name and identifier. See tenant Block for details.

    The following arguments are optional:

    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    Tags Dictionary<string, string>
    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.
    Timeouts AppAuthorizationTimeouts
    App string
    Name of the application. For valid values, see the CreateAppAuthorization API reference.
    AppBundleArn string
    Amazon Resource Name (ARN) of the app bundle to use for the request.
    AuthType string
    Authorization type for the app authorization. Valid values are oauth2 and apiKey.
    Credential AppAuthorizationCredentialArgs
    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.
    Tenants []AppAuthorizationTenantArgs

    Information about an application tenant, such as the application display name and identifier. See tenant Block for details.

    The following arguments are optional:

    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    Tags map[string]string
    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.
    Timeouts AppAuthorizationTimeoutsArgs
    app string
    Name of the application. For valid values, see the CreateAppAuthorization API reference.
    app_bundle_arn string
    Amazon Resource Name (ARN) of the app bundle to use for the request.
    auth_type string
    Authorization type for the app authorization. Valid values are oauth2 and apiKey.
    credential object
    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.
    tenants list(object)

    Information about an application tenant, such as the application display name and identifier. See tenant Block for details.

    The following arguments are optional:

    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags map(string)
    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.
    timeouts object
    app String
    Name of the application. For valid values, see the CreateAppAuthorization API reference.
    appBundleArn String
    Amazon Resource Name (ARN) of the app bundle to use for the request.
    authType String
    Authorization type for the app authorization. Valid values are oauth2 and apiKey.
    credential AppAuthorizationCredential
    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.
    tenants List<AppAuthorizationTenant>

    Information about an application tenant, such as the application display name and identifier. See tenant Block for details.

    The following arguments are optional:

    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags Map<String,String>
    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.
    timeouts AppAuthorizationTimeouts
    app string
    Name of the application. For valid values, see the CreateAppAuthorization API reference.
    appBundleArn string
    Amazon Resource Name (ARN) of the app bundle to use for the request.
    authType string
    Authorization type for the app authorization. Valid values are oauth2 and apiKey.
    credential AppAuthorizationCredential
    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.
    tenants AppAuthorizationTenant[]

    Information about an application tenant, such as the application display name and identifier. See tenant Block for details.

    The following arguments are optional:

    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags {[key: string]: string}
    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.
    timeouts AppAuthorizationTimeouts
    app str
    Name of the application. For valid values, see the CreateAppAuthorization API reference.
    app_bundle_arn str
    Amazon Resource Name (ARN) of the app bundle to use for the request.
    auth_type str
    Authorization type for the app authorization. Valid values are oauth2 and apiKey.
    credential AppAuthorizationCredentialArgs
    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.
    tenants Sequence[AppAuthorizationTenantArgs]

    Information about an application tenant, such as the application display name and identifier. See tenant Block for details.

    The following arguments are optional:

    region str
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags Mapping[str, str]
    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.
    timeouts AppAuthorizationTimeoutsArgs
    app String
    Name of the application. For valid values, see the CreateAppAuthorization API reference.
    appBundleArn String
    Amazon Resource Name (ARN) of the app bundle to use for the request.
    authType String
    Authorization type for the app authorization. Valid values are oauth2 and apiKey.
    credential Property Map
    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.
    tenants List<Property Map>

    Information about an application tenant, such as the application display name and identifier. See tenant Block for details.

    The following arguments are optional:

    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags Map<String>
    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.
    timeouts Property Map

    Outputs

    All input properties are implicitly available as output properties. Additionally, the AppAuthorization resource produces the following output properties:

    Arn string
    ARN of the App Authorization.
    AuthUrl string
    Application URL for the OAuth flow.
    CreatedAt string
    Timestamp of when the app authorization was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    Persona string
    User persona of the app authorization.
    TagsAll Dictionary<string, string>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    UpdatedAt string
    Timestamp of when the app authorization was last updated.
    Arn string
    ARN of the App Authorization.
    AuthUrl string
    Application URL for the OAuth flow.
    CreatedAt string
    Timestamp of when the app authorization was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    Persona string
    User persona of the app authorization.
    TagsAll map[string]string
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    UpdatedAt string
    Timestamp of when the app authorization was last updated.
    arn string
    ARN of the App Authorization.
    auth_url string
    Application URL for the OAuth flow.
    created_at string
    Timestamp of when the app authorization was created.
    id string
    The provider-assigned unique ID for this managed resource.
    persona string
    User persona of the app authorization.
    tags_all map(string)
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    updated_at string
    Timestamp of when the app authorization was last updated.
    arn String
    ARN of the App Authorization.
    authUrl String
    Application URL for the OAuth flow.
    createdAt String
    Timestamp of when the app authorization was created.
    id String
    The provider-assigned unique ID for this managed resource.
    persona String
    User persona of the app authorization.
    tagsAll Map<String,String>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    updatedAt String
    Timestamp of when the app authorization was last updated.
    arn string
    ARN of the App Authorization.
    authUrl string
    Application URL for the OAuth flow.
    createdAt string
    Timestamp of when the app authorization was created.
    id string
    The provider-assigned unique ID for this managed resource.
    persona string
    User persona of the app authorization.
    tagsAll {[key: string]: string}
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    updatedAt string
    Timestamp of when the app authorization was last updated.
    arn str
    ARN of the App Authorization.
    auth_url str
    Application URL for the OAuth flow.
    created_at str
    Timestamp of when the app authorization was created.
    id str
    The provider-assigned unique ID for this managed resource.
    persona str
    User persona of the app authorization.
    tags_all Mapping[str, str]
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    updated_at str
    Timestamp of when the app authorization was last updated.
    arn String
    ARN of the App Authorization.
    authUrl String
    Application URL for the OAuth flow.
    createdAt String
    Timestamp of when the app authorization was created.
    id String
    The provider-assigned unique ID for this managed resource.
    persona String
    User persona of the app authorization.
    tagsAll Map<String>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    updatedAt String
    Timestamp of when the app authorization was last updated.

    Look up Existing AppAuthorization Resource

    Get an existing AppAuthorization resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: AppAuthorizationState, opts?: CustomResourceOptions): AppAuthorization
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            app: Optional[str] = None,
            app_bundle_arn: Optional[str] = None,
            arn: Optional[str] = None,
            auth_type: Optional[str] = None,
            auth_url: Optional[str] = None,
            created_at: Optional[str] = None,
            credential: Optional[AppAuthorizationCredentialArgs] = None,
            persona: Optional[str] = None,
            region: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            tags_all: Optional[Mapping[str, str]] = None,
            tenants: Optional[Sequence[AppAuthorizationTenantArgs]] = None,
            timeouts: Optional[AppAuthorizationTimeoutsArgs] = None,
            updated_at: Optional[str] = None) -> AppAuthorization
    func GetAppAuthorization(ctx *Context, name string, id IDInput, state *AppAuthorizationState, opts ...ResourceOption) (*AppAuthorization, error)
    public static AppAuthorization Get(string name, Input<string> id, AppAuthorizationState? state, CustomResourceOptions? opts = null)
    public static AppAuthorization get(String name, Output<String> id, AppAuthorizationState state, CustomResourceOptions options)
    resources:  _:    type: aws:appfabric:AppAuthorization    get:      id: ${id}
    import {
      to = aws_appfabric_app_authorization.example
      id = "${id}"
    }
    
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    App string
    Name of the application. For valid values, see the CreateAppAuthorization API reference.
    AppBundleArn string
    Amazon Resource Name (ARN) of the app bundle to use for the request.
    Arn string
    ARN of the App Authorization.
    AuthType string
    Authorization type for the app authorization. Valid values are oauth2 and apiKey.
    AuthUrl string
    Application URL for the OAuth flow.
    CreatedAt string
    Timestamp of when the app authorization was created.
    Credential AppAuthorizationCredential
    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.
    Persona string
    User persona of the app authorization.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    Tags Dictionary<string, string>
    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.
    TagsAll Dictionary<string, string>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    Tenants List<AppAuthorizationTenant>

    Information about an application tenant, such as the application display name and identifier. See tenant Block for details.

    The following arguments are optional:

    Timeouts AppAuthorizationTimeouts
    UpdatedAt string
    Timestamp of when the app authorization was last updated.
    App string
    Name of the application. For valid values, see the CreateAppAuthorization API reference.
    AppBundleArn string
    Amazon Resource Name (ARN) of the app bundle to use for the request.
    Arn string
    ARN of the App Authorization.
    AuthType string
    Authorization type for the app authorization. Valid values are oauth2 and apiKey.
    AuthUrl string
    Application URL for the OAuth flow.
    CreatedAt string
    Timestamp of when the app authorization was created.
    Credential AppAuthorizationCredentialArgs
    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.
    Persona string
    User persona of the app authorization.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    Tags map[string]string
    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.
    TagsAll map[string]string
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    Tenants []AppAuthorizationTenantArgs

    Information about an application tenant, such as the application display name and identifier. See tenant Block for details.

    The following arguments are optional:

    Timeouts AppAuthorizationTimeoutsArgs
    UpdatedAt string
    Timestamp of when the app authorization was last updated.
    app string
    Name of the application. For valid values, see the CreateAppAuthorization API reference.
    app_bundle_arn string
    Amazon Resource Name (ARN) of the app bundle to use for the request.
    arn string
    ARN of the App Authorization.
    auth_type string
    Authorization type for the app authorization. Valid values are oauth2 and apiKey.
    auth_url string
    Application URL for the OAuth flow.
    created_at string
    Timestamp of when the app authorization was created.
    credential object
    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.
    persona string
    User persona of the app authorization.
    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags map(string)
    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_all map(string)
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    tenants list(object)

    Information about an application tenant, such as the application display name and identifier. See tenant Block for details.

    The following arguments are optional:

    timeouts object
    updated_at string
    Timestamp of when the app authorization was last updated.
    app String
    Name of the application. For valid values, see the CreateAppAuthorization API reference.
    appBundleArn String
    Amazon Resource Name (ARN) of the app bundle to use for the request.
    arn String
    ARN of the App Authorization.
    authType String
    Authorization type for the app authorization. Valid values are oauth2 and apiKey.
    authUrl String
    Application URL for the OAuth flow.
    createdAt String
    Timestamp of when the app authorization was created.
    credential AppAuthorizationCredential
    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.
    persona String
    User persona of the app authorization.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags Map<String,String>
    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.
    tagsAll Map<String,String>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    tenants List<AppAuthorizationTenant>

    Information about an application tenant, such as the application display name and identifier. See tenant Block for details.

    The following arguments are optional:

    timeouts AppAuthorizationTimeouts
    updatedAt String
    Timestamp of when the app authorization was last updated.
    app string
    Name of the application. For valid values, see the CreateAppAuthorization API reference.
    appBundleArn string
    Amazon Resource Name (ARN) of the app bundle to use for the request.
    arn string
    ARN of the App Authorization.
    authType string
    Authorization type for the app authorization. Valid values are oauth2 and apiKey.
    authUrl string
    Application URL for the OAuth flow.
    createdAt string
    Timestamp of when the app authorization was created.
    credential AppAuthorizationCredential
    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.
    persona string
    User persona of the app authorization.
    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags {[key: string]: string}
    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.
    tagsAll {[key: string]: string}
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    tenants AppAuthorizationTenant[]

    Information about an application tenant, such as the application display name and identifier. See tenant Block for details.

    The following arguments are optional:

    timeouts AppAuthorizationTimeouts
    updatedAt string
    Timestamp of when the app authorization was last updated.
    app str
    Name of the application. For valid values, see the CreateAppAuthorization API reference.
    app_bundle_arn str
    Amazon Resource Name (ARN) of the app bundle to use for the request.
    arn str
    ARN of the App Authorization.
    auth_type str
    Authorization type for the app authorization. Valid values are oauth2 and apiKey.
    auth_url str
    Application URL for the OAuth flow.
    created_at str
    Timestamp of when the app authorization was created.
    credential AppAuthorizationCredentialArgs
    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.
    persona str
    User persona of the app authorization.
    region str
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags Mapping[str, str]
    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_all Mapping[str, str]
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    tenants Sequence[AppAuthorizationTenantArgs]

    Information about an application tenant, such as the application display name and identifier. See tenant Block for details.

    The following arguments are optional:

    timeouts AppAuthorizationTimeoutsArgs
    updated_at str
    Timestamp of when the app authorization was last updated.
    app String
    Name of the application. For valid values, see the CreateAppAuthorization API reference.
    appBundleArn String
    Amazon Resource Name (ARN) of the app bundle to use for the request.
    arn String
    ARN of the App Authorization.
    authType String
    Authorization type for the app authorization. Valid values are oauth2 and apiKey.
    authUrl String
    Application URL for the OAuth flow.
    createdAt String
    Timestamp of when the app authorization was created.
    credential Property Map
    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.
    persona String
    User persona of the app authorization.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags Map<String>
    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.
    tagsAll Map<String>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    tenants List<Property Map>

    Information about an application tenant, such as the application display name and identifier. See tenant Block for details.

    The following arguments are optional:

    timeouts Property Map
    updatedAt String
    Timestamp of when the app authorization was last updated.

    Supporting Types

    AppAuthorizationCredential, AppAuthorizationCredentialArgs

    ApiKeyCredentials List<AppAuthorizationCredentialApiKeyCredential>
    API key credential information. See apiKeyCredential Block for details.
    Oauth2Credential AppAuthorizationCredentialOauth2Credential
    OAuth2 client credential information. See oauth2Credential Block for details.
    ApiKeyCredentials []AppAuthorizationCredentialApiKeyCredential
    API key credential information. See apiKeyCredential Block for details.
    Oauth2Credential AppAuthorizationCredentialOauth2Credential
    OAuth2 client credential information. See oauth2Credential Block for details.
    api_key_credentials list(object)
    API key credential information. See apiKeyCredential Block for details.
    oauth2_credential object
    OAuth2 client credential information. See oauth2Credential Block for details.
    apiKeyCredentials List<AppAuthorizationCredentialApiKeyCredential>
    API key credential information. See apiKeyCredential Block for details.
    oauth2Credential AppAuthorizationCredentialOauth2Credential
    OAuth2 client credential information. See oauth2Credential Block for details.
    apiKeyCredentials AppAuthorizationCredentialApiKeyCredential[]
    API key credential information. See apiKeyCredential Block for details.
    oauth2Credential AppAuthorizationCredentialOauth2Credential
    OAuth2 client credential information. See oauth2Credential Block for details.
    api_key_credentials Sequence[AppAuthorizationCredentialApiKeyCredential]
    API key credential information. See apiKeyCredential Block for details.
    oauth2_credential AppAuthorizationCredentialOauth2Credential
    OAuth2 client credential information. See oauth2Credential Block for details.
    apiKeyCredentials List<Property Map>
    API key credential information. See apiKeyCredential Block for details.
    oauth2Credential Property Map
    OAuth2 client credential information. See oauth2Credential Block for details.

    AppAuthorizationCredentialApiKeyCredential, AppAuthorizationCredentialApiKeyCredentialArgs

    ApiKey string
    API key.
    ApiKey string
    API key.
    api_key string
    API key.
    apiKey String
    API key.
    apiKey string
    API key.
    api_key str
    API key.
    apiKey String
    API key.

    AppAuthorizationCredentialOauth2Credential, AppAuthorizationCredentialOauth2CredentialArgs

    ClientId string
    Client ID of the client application.
    ClientSecret string
    Client secret of the client application.
    ClientId string
    Client ID of the client application.
    ClientSecret string
    Client secret of the client application.
    client_id string
    Client ID of the client application.
    client_secret string
    Client secret of the client application.
    clientId String
    Client ID of the client application.
    clientSecret String
    Client secret of the client application.
    clientId string
    Client ID of the client application.
    clientSecret string
    Client secret of the client application.
    client_id str
    Client ID of the client application.
    client_secret str
    Client secret of the client application.
    clientId String
    Client ID of the client application.
    clientSecret String
    Client secret of the client application.

    AppAuthorizationTenant, AppAuthorizationTenantArgs

    TenantDisplayName string
    Display name of the tenant.
    TenantIdentifier string
    ID of the application tenant.
    TenantDisplayName string
    Display name of the tenant.
    TenantIdentifier string
    ID of the application tenant.
    tenant_display_name string
    Display name of the tenant.
    tenant_identifier string
    ID of the application tenant.
    tenantDisplayName String
    Display name of the tenant.
    tenantIdentifier String
    ID of the application tenant.
    tenantDisplayName string
    Display name of the tenant.
    tenantIdentifier string
    ID of the application tenant.
    tenant_display_name str
    Display name of the tenant.
    tenant_identifier str
    ID of the application tenant.
    tenantDisplayName String
    Display name of the tenant.
    tenantIdentifier String
    ID of the application tenant.

    AppAuthorizationTimeouts, AppAuthorizationTimeoutsArgs

    Create string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    Delete string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    Update string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    Create string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    Delete string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    Update string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    update string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    update String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    update string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create str
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete str
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    update str
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    update String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo aws logo
    Viewing docs for AWS v7.42.0
    published on Thursday, Aug 13, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial