App Authorization Args
data class AppAuthorizationArgs(val app: Output<String>? = null, val appBundleArn: Output<String>? = null, val authType: Output<String>? = null, val credential: Output<AppAuthorizationCredentialArgs>? = null, val tags: Output<Map<String, String>>? = null, val tenants: Output<List<AppAuthorizationTenantArgs>>? = null, val timeouts: Output<AppAuthorizationTimeoutsArgs>? = null) : ConvertibleToJava<AppAuthorizationArgs>
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",
}],
});
Content copied to clipboard
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",
}])
Content copied to clipboard
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",
},
},
});
});
Content copied to clipboard
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.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
})
}
Content copied to clipboard
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.AppAuthorizationTenantArgs;
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 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());
}
}
Content copied to clipboard
resources:
example:
type: aws:appfabric:AppAuthorization
properties:
app: TERRAFORMCLOUD
appBundleArn: ${arn}
authType: apiKey
credential:
apiKeyCredentials:
- apiKey: exampleapikeytoken
tenants:
- tenantDisplayName: example
tenantIdentifier: example
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(app: Output<String>? = null, appBundleArn: Output<String>? = null, authType: Output<String>? = null, credential: Output<AppAuthorizationCredentialArgs>? = null, tags: Output<Map<String, String>>? = null, tenants: Output<List<AppAuthorizationTenantArgs>>? = null, timeouts: Output<AppAuthorizationTimeoutsArgs>? = null)
Properties
Link copied to clipboard
The Amazon Resource Name (ARN) of the app bundle to use for the request.
Link copied to clipboard
Contains 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.
Link copied to clipboard
Contains information about an application tenant, such as the application display name and identifier.
Link copied to clipboard