aws.appfabric.AppAuthorizationConnection
Explore with Pulumi AI
Resource for managing an AWS AppFabric App Authorization Connection.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.appfabric.AppAuthorizationConnection("example", {
appAuthorizationArn: test.arn,
appBundleArn: arn,
});
import pulumi
import pulumi_aws as aws
example = aws.appfabric.AppAuthorizationConnection("example",
app_authorization_arn=test["arn"],
app_bundle_arn=arn)
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/appfabric"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := appfabric.NewAppAuthorizationConnection(ctx, "example", &appfabric.AppAuthorizationConnectionArgs{
AppAuthorizationArn: pulumi.Any(test.Arn),
AppBundleArn: pulumi.Any(arn),
})
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.AppAuthorizationConnection("example", new()
{
AppAuthorizationArn = test.Arn,
AppBundleArn = arn,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.appfabric.AppAuthorizationConnection;
import com.pulumi.aws.appfabric.AppAuthorizationConnectionArgs;
import java.util.List;
import java.util.ArrayList;
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 AppAuthorizationConnection("example", AppAuthorizationConnectionArgs.builder()
.appAuthorizationArn(test.arn())
.appBundleArn(arn)
.build());
}
}
resources:
example:
type: aws:appfabric:AppAuthorizationConnection
properties:
appAuthorizationArn: ${test.arn}
appBundleArn: ${arn}
Create AppAuthorizationConnection Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AppAuthorizationConnection(name: string, args: AppAuthorizationConnectionArgs, opts?: CustomResourceOptions);
@overload
def AppAuthorizationConnection(resource_name: str,
args: AppAuthorizationConnectionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AppAuthorizationConnection(resource_name: str,
opts: Optional[ResourceOptions] = None,
app_authorization_arn: Optional[str] = None,
app_bundle_arn: Optional[str] = None,
auth_request: Optional[AppAuthorizationConnectionAuthRequestArgs] = None,
timeouts: Optional[AppAuthorizationConnectionTimeoutsArgs] = None)
func NewAppAuthorizationConnection(ctx *Context, name string, args AppAuthorizationConnectionArgs, opts ...ResourceOption) (*AppAuthorizationConnection, error)
public AppAuthorizationConnection(string name, AppAuthorizationConnectionArgs args, CustomResourceOptions? opts = null)
public AppAuthorizationConnection(String name, AppAuthorizationConnectionArgs args)
public AppAuthorizationConnection(String name, AppAuthorizationConnectionArgs args, CustomResourceOptions options)
type: aws:appfabric:AppAuthorizationConnection
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args AppAuthorizationConnectionArgs
- 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 AppAuthorizationConnectionArgs
- 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 AppAuthorizationConnectionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AppAuthorizationConnectionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AppAuthorizationConnectionArgs
- 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 appAuthorizationConnectionResource = new Aws.AppFabric.AppAuthorizationConnection("appAuthorizationConnectionResource", new()
{
AppAuthorizationArn = "string",
AppBundleArn = "string",
AuthRequest = new Aws.AppFabric.Inputs.AppAuthorizationConnectionAuthRequestArgs
{
Code = "string",
RedirectUri = "string",
},
Timeouts = new Aws.AppFabric.Inputs.AppAuthorizationConnectionTimeoutsArgs
{
Create = "string",
},
});
example, err := appfabric.NewAppAuthorizationConnection(ctx, "appAuthorizationConnectionResource", &appfabric.AppAuthorizationConnectionArgs{
AppAuthorizationArn: pulumi.String("string"),
AppBundleArn: pulumi.String("string"),
AuthRequest: &appfabric.AppAuthorizationConnectionAuthRequestArgs{
Code: pulumi.String("string"),
RedirectUri: pulumi.String("string"),
},
Timeouts: &appfabric.AppAuthorizationConnectionTimeoutsArgs{
Create: pulumi.String("string"),
},
})
var appAuthorizationConnectionResource = new AppAuthorizationConnection("appAuthorizationConnectionResource", AppAuthorizationConnectionArgs.builder()
.appAuthorizationArn("string")
.appBundleArn("string")
.authRequest(AppAuthorizationConnectionAuthRequestArgs.builder()
.code("string")
.redirectUri("string")
.build())
.timeouts(AppAuthorizationConnectionTimeoutsArgs.builder()
.create("string")
.build())
.build());
app_authorization_connection_resource = aws.appfabric.AppAuthorizationConnection("appAuthorizationConnectionResource",
app_authorization_arn="string",
app_bundle_arn="string",
auth_request={
"code": "string",
"redirect_uri": "string",
},
timeouts={
"create": "string",
})
const appAuthorizationConnectionResource = new aws.appfabric.AppAuthorizationConnection("appAuthorizationConnectionResource", {
appAuthorizationArn: "string",
appBundleArn: "string",
authRequest: {
code: "string",
redirectUri: "string",
},
timeouts: {
create: "string",
},
});
type: aws:appfabric:AppAuthorizationConnection
properties:
appAuthorizationArn: string
appBundleArn: string
authRequest:
code: string
redirectUri: string
timeouts:
create: string
AppAuthorizationConnection 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 AppAuthorizationConnection resource accepts the following input properties:
- string
- The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the app authorization to use for the request.
- App
Bundle stringArn - The Amazon Resource Name (ARN) of the app bundle to use for the request.
- Auth
Request AppAuthorization Connection Auth Request - Contains OAuth2 authorization information.This is required if the app authorization for the request is configured with an OAuth2 (oauth2) authorization type.
- Timeouts
App
Authorization Connection Timeouts
- string
- The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the app authorization to use for the request.
- App
Bundle stringArn - The Amazon Resource Name (ARN) of the app bundle to use for the request.
- Auth
Request AppAuthorization Connection Auth Request Args - Contains OAuth2 authorization information.This is required if the app authorization for the request is configured with an OAuth2 (oauth2) authorization type.
- Timeouts
App
Authorization Connection Timeouts Args
- String
- The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the app authorization to use for the request.
- app
Bundle StringArn - The Amazon Resource Name (ARN) of the app bundle to use for the request.
- auth
Request AppAuthorization Connection Auth Request - Contains OAuth2 authorization information.This is required if the app authorization for the request is configured with an OAuth2 (oauth2) authorization type.
- timeouts
App
Authorization Connection Timeouts
- string
- The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the app authorization to use for the request.
- app
Bundle stringArn - The Amazon Resource Name (ARN) of the app bundle to use for the request.
- auth
Request AppAuthorization Connection Auth Request - Contains OAuth2 authorization information.This is required if the app authorization for the request is configured with an OAuth2 (oauth2) authorization type.
- timeouts
App
Authorization Connection Timeouts
- str
- The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the app authorization to use for the request.
- app_
bundle_ strarn - The Amazon Resource Name (ARN) of the app bundle to use for the request.
- auth_
request AppAuthorization Connection Auth Request Args - Contains OAuth2 authorization information.This is required if the app authorization for the request is configured with an OAuth2 (oauth2) authorization type.
- timeouts
App
Authorization Connection Timeouts Args
- String
- The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the app authorization to use for the request.
- app
Bundle StringArn - The Amazon Resource Name (ARN) of the app bundle to use for the request.
- auth
Request Property Map - Contains OAuth2 authorization information.This is required if the app authorization for the request is configured with an OAuth2 (oauth2) authorization type.
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the AppAuthorizationConnection resource produces the following output properties:
- App string
- The name of the application.
- Id string
- The provider-assigned unique ID for this managed resource.
- Tenants
List<App
Authorization Connection Tenant> - Contains information about an application tenant, such as the application display name and identifier.
- App string
- The name of the application.
- Id string
- The provider-assigned unique ID for this managed resource.
- Tenants
[]App
Authorization Connection Tenant - Contains information about an application tenant, such as the application display name and identifier.
- app String
- The name of the application.
- id String
- The provider-assigned unique ID for this managed resource.
- tenants
List<App
Authorization Connection Tenant> - Contains information about an application tenant, such as the application display name and identifier.
- app string
- The name of the application.
- id string
- The provider-assigned unique ID for this managed resource.
- tenants
App
Authorization Connection Tenant[] - Contains information about an application tenant, such as the application display name and identifier.
- app str
- The name of the application.
- id str
- The provider-assigned unique ID for this managed resource.
- tenants
Sequence[App
Authorization Connection Tenant] - Contains information about an application tenant, such as the application display name and identifier.
- app String
- The name of the application.
- id String
- The provider-assigned unique ID for this managed resource.
- tenants List<Property Map>
- Contains information about an application tenant, such as the application display name and identifier.
Look up Existing AppAuthorizationConnection Resource
Get an existing AppAuthorizationConnection 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?: AppAuthorizationConnectionState, opts?: CustomResourceOptions): AppAuthorizationConnection
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
app: Optional[str] = None,
app_authorization_arn: Optional[str] = None,
app_bundle_arn: Optional[str] = None,
auth_request: Optional[AppAuthorizationConnectionAuthRequestArgs] = None,
tenants: Optional[Sequence[AppAuthorizationConnectionTenantArgs]] = None,
timeouts: Optional[AppAuthorizationConnectionTimeoutsArgs] = None) -> AppAuthorizationConnection
func GetAppAuthorizationConnection(ctx *Context, name string, id IDInput, state *AppAuthorizationConnectionState, opts ...ResourceOption) (*AppAuthorizationConnection, error)
public static AppAuthorizationConnection Get(string name, Input<string> id, AppAuthorizationConnectionState? state, CustomResourceOptions? opts = null)
public static AppAuthorizationConnection get(String name, Output<String> id, AppAuthorizationConnectionState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- App string
- The name of the application.
- string
- The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the app authorization to use for the request.
- App
Bundle stringArn - The Amazon Resource Name (ARN) of the app bundle to use for the request.
- Auth
Request AppAuthorization Connection Auth Request - Contains OAuth2 authorization information.This is required if the app authorization for the request is configured with an OAuth2 (oauth2) authorization type.
- Tenants
List<App
Authorization Connection Tenant> - Contains information about an application tenant, such as the application display name and identifier.
- Timeouts
App
Authorization Connection Timeouts
- App string
- The name of the application.
- string
- The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the app authorization to use for the request.
- App
Bundle stringArn - The Amazon Resource Name (ARN) of the app bundle to use for the request.
- Auth
Request AppAuthorization Connection Auth Request Args - Contains OAuth2 authorization information.This is required if the app authorization for the request is configured with an OAuth2 (oauth2) authorization type.
- Tenants
[]App
Authorization Connection Tenant Args - Contains information about an application tenant, such as the application display name and identifier.
- Timeouts
App
Authorization Connection Timeouts Args
- app String
- The name of the application.
- String
- The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the app authorization to use for the request.
- app
Bundle StringArn - The Amazon Resource Name (ARN) of the app bundle to use for the request.
- auth
Request AppAuthorization Connection Auth Request - Contains OAuth2 authorization information.This is required if the app authorization for the request is configured with an OAuth2 (oauth2) authorization type.
- tenants
List<App
Authorization Connection Tenant> - Contains information about an application tenant, such as the application display name and identifier.
- timeouts
App
Authorization Connection Timeouts
- app string
- The name of the application.
- string
- The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the app authorization to use for the request.
- app
Bundle stringArn - The Amazon Resource Name (ARN) of the app bundle to use for the request.
- auth
Request AppAuthorization Connection Auth Request - Contains OAuth2 authorization information.This is required if the app authorization for the request is configured with an OAuth2 (oauth2) authorization type.
- tenants
App
Authorization Connection Tenant[] - Contains information about an application tenant, such as the application display name and identifier.
- timeouts
App
Authorization Connection Timeouts
- app str
- The name of the application.
- str
- The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the app authorization to use for the request.
- app_
bundle_ strarn - The Amazon Resource Name (ARN) of the app bundle to use for the request.
- auth_
request AppAuthorization Connection Auth Request Args - Contains OAuth2 authorization information.This is required if the app authorization for the request is configured with an OAuth2 (oauth2) authorization type.
- tenants
Sequence[App
Authorization Connection Tenant Args] - Contains information about an application tenant, such as the application display name and identifier.
- timeouts
App
Authorization Connection Timeouts Args
- app String
- The name of the application.
- String
- The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the app authorization to use for the request.
- app
Bundle StringArn - The Amazon Resource Name (ARN) of the app bundle to use for the request.
- auth
Request Property Map - Contains OAuth2 authorization information.This is required if the app authorization for the request is configured with an OAuth2 (oauth2) authorization type.
- tenants List<Property Map>
- Contains information about an application tenant, such as the application display name and identifier.
- timeouts Property Map
Supporting Types
AppAuthorizationConnectionAuthRequest, AppAuthorizationConnectionAuthRequestArgs
- Code string
- The authorization code returned by the application after permission is granted in the application OAuth page (after clicking on the AuthURL)..
- Redirect
Uri string - The redirect URL that is specified in the AuthURL and the application client.
- Code string
- The authorization code returned by the application after permission is granted in the application OAuth page (after clicking on the AuthURL)..
- Redirect
Uri string - The redirect URL that is specified in the AuthURL and the application client.
- code String
- The authorization code returned by the application after permission is granted in the application OAuth page (after clicking on the AuthURL)..
- redirect
Uri String - The redirect URL that is specified in the AuthURL and the application client.
- code string
- The authorization code returned by the application after permission is granted in the application OAuth page (after clicking on the AuthURL)..
- redirect
Uri string - The redirect URL that is specified in the AuthURL and the application client.
- code str
- The authorization code returned by the application after permission is granted in the application OAuth page (after clicking on the AuthURL)..
- redirect_
uri str - The redirect URL that is specified in the AuthURL and the application client.
- code String
- The authorization code returned by the application after permission is granted in the application OAuth page (after clicking on the AuthURL)..
- redirect
Uri String - The redirect URL that is specified in the AuthURL and the application client.
AppAuthorizationConnectionTenant, AppAuthorizationConnectionTenantArgs
- Tenant
Display stringName - Tenant
Identifier string
- Tenant
Display stringName - Tenant
Identifier string
- tenant
Display StringName - tenant
Identifier String
- tenant
Display stringName - tenant
Identifier string
- tenant
Display StringName - tenant
Identifier String
AppAuthorizationConnectionTimeouts, AppAuthorizationConnectionTimeoutsArgs
- 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).
- 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).
- 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).
- 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).
- 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).
- 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).
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.