import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Resource for managing an AWS Transfer Family Web App. * * ## Example Usage * * ### Basic Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const current = aws.getCallerIdentity({}); * const currentGetRegion = aws.getRegion({}); * const currentGetPartition = aws.getPartition({}); * const example = aws.ssoadmin.getInstances({}); * const assumeRoleTransfer = current.then(current => aws.iam.getPolicyDocument({ * statements: [{ * conditions: [{ * test: "StringEquals", * values: [current.accountId], * variable: "aws:SourceAccount", * }], * principals: [{ * type: "Service", * identifiers: ["transfer.amazonaws.com"], * }], * effect: "Allow", * actions: [ * "sts:AssumeRole", * "sts:SetContext", * ], * }], * })); * const exampleRole = new aws.iam.Role("example", { * name: "example", * assumeRolePolicy: assumeRoleTransfer.then(assumeRoleTransfer => assumeRoleTransfer.json), * }); * const exampleGetPolicyDocument = Promise.all([current, currentGetPartition, currentGetRegion]).then(([current, currentGetPartition, currentGetRegion]) => aws.iam.getPolicyDocument({ * statements: [ * { * conditions: [{ * test: "StringEquals", * values: [current.accountId], * variable: "s3:ResourceAccount", * }], * effect: "Allow", * actions: [ * "s3:GetDataAccess", * "s3:ListCallerAccessGrants", * ], * resources: [`arn:${currentGetPartition.partition}:s3:${currentGetRegion.region}:${current.accountId}:access-grants/*`], * }, * { * conditions: [{ * test: "StringEquals", * values: [current.accountId], * variable: "s3:ResourceAccount", * }], * effect: "Allow", * actions: ["s3:ListAccessGrantsInstances"], * resources: ["*"], * }, * ], * })); * const exampleRolePolicy = new aws.iam.RolePolicy("example", { * policy: exampleGetPolicyDocument.then(exampleGetPolicyDocument => exampleGetPolicyDocument.json), * role: exampleRole.name, * }); * const exampleWebApp = new aws.transfer.WebApp("example", { * identityProviderDetails: { * identityCenterConfig: { * instanceArn: example.then(example => example.arns?.[0]), * role: exampleRole.arn, * }, * }, * webAppUnits: [{ * provisioned: 1, * }], * tags: { * Name: "test", * }, * }); * ``` * * ## Import * * Using `pulumi import`, import Transfer Family Web App using the `webAppId`. For example: * * ```sh * $ pulumi import aws:transfer/webApp:WebApp example web_app-id-12345678 * ``` */ export declare class WebApp extends pulumi.CustomResource { /** * Get an existing WebApp 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?: WebAppState, opts?: pulumi.CustomResourceOptions): WebApp; /** * Returns true if the given object is an instance of WebApp. 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 WebApp; /** * URL provided to interact with the Transfer Family web app. If `endpoint_details.vpc` block is specified, `accessEndpoint` must not be provided. */ readonly accessEndpoint: pulumi.Output; /** * ARN of the Web App. */ readonly arn: pulumi.Output; /** * Block for the endpoint configuration for the web app. If not specified, the web app will be created with a public endpoint. See `endpointDetails` Block below. */ readonly endpointDetails: pulumi.Output; /** * Block for details of the identity provider to use with the web app. See `identityProviderDetails` Block below. * * The following arguments are optional: */ readonly identityProviderDetails: 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; /** * Key-value pairs that can be used to group and search for web apps. */ readonly tags: pulumi.Output<{ [key: string]: string; } | undefined>; readonly tagsAll: pulumi.Output<{ [key: string]: string; }>; /** * Type of endpoint policy for the web app. Valid values are: `STANDARD`(default) or `FIPS`. */ readonly webAppEndpointPolicy: pulumi.Output; /** * ID of the Web App resource. */ readonly webAppId: pulumi.Output; /** * Block for number of concurrent connections or the user sessions on the web app. See `webAppUnits` Block below. */ readonly webAppUnits: pulumi.Output; /** * Create a WebApp 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: WebAppArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering WebApp resources. */ export interface WebAppState { /** * URL provided to interact with the Transfer Family web app. If `endpoint_details.vpc` block is specified, `accessEndpoint` must not be provided. */ accessEndpoint?: pulumi.Input; /** * ARN of the Web App. */ arn?: pulumi.Input; /** * Block for the endpoint configuration for the web app. If not specified, the web app will be created with a public endpoint. See `endpointDetails` Block below. */ endpointDetails?: pulumi.Input; /** * Block for details of the identity provider to use with the web app. See `identityProviderDetails` Block below. * * The following arguments are optional: */ identityProviderDetails?: 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; /** * Key-value pairs that can be used to group and search for web apps. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; tagsAll?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * Type of endpoint policy for the web app. Valid values are: `STANDARD`(default) or `FIPS`. */ webAppEndpointPolicy?: pulumi.Input; /** * ID of the Web App resource. */ webAppId?: pulumi.Input; /** * Block for number of concurrent connections or the user sessions on the web app. See `webAppUnits` Block below. */ webAppUnits?: pulumi.Input[] | undefined>; } /** * The set of arguments for constructing a WebApp resource. */ export interface WebAppArgs { /** * URL provided to interact with the Transfer Family web app. If `endpoint_details.vpc` block is specified, `accessEndpoint` must not be provided. */ accessEndpoint?: pulumi.Input; /** * Block for the endpoint configuration for the web app. If not specified, the web app will be created with a public endpoint. See `endpointDetails` Block below. */ endpointDetails?: pulumi.Input; /** * Block for details of the identity provider to use with the web app. See `identityProviderDetails` Block below. * * The following arguments are optional: */ identityProviderDetails: 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; /** * Key-value pairs that can be used to group and search for web apps. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * Type of endpoint policy for the web app. Valid values are: `STANDARD`(default) or `FIPS`. */ webAppEndpointPolicy?: pulumi.Input; /** * Block for number of concurrent connections or the user sessions on the web app. See `webAppUnits` Block below. */ webAppUnits?: pulumi.Input[] | undefined>; } //# sourceMappingURL=webApp.d.ts.map