Skip to main content

web_apps

Creates, updates, deletes or gets a web_app resource or lists web_apps in a region

Overview

Nameweb_apps
TypeResource
DescriptionResource Type definition for AWS::Transfer::WebApp
Idawscc.transfer.web_apps

Fields

NameDatatypeDescription
arnstringSpecifies the unique Amazon Resource Name (ARN) for the web app.
web_app_idstringA unique identifier for the web app.
identity_provider_detailsobjectYou can provide a structure that contains the details for the identity provider to use with your web app.
access_endpointstringThe AccessEndpoint is the URL that you provide to your users for them to interact with the Transfer Family web app. You can specify a custom URL or use the default value.
web_app_unitsobject
web_app_customizationobject
web_app_endpoint_policystring
tagsarrayKey-value pairs that can be used to group and search for web apps.
regionstringAWS region.

For more information, see AWS::Transfer::WebApp.

Methods

NameResourceAccessible byRequired Params
create_resourceweb_appsINSERTIdentityProviderDetails, region
delete_resourceweb_appsDELETEIdentifier, region
update_resourceweb_appsUPDATEIdentifier, PatchDocument, region
list_resourcesweb_apps_list_onlySELECTregion
get_resourceweb_appsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual web_app.

SELECT
region,
arn,
web_app_id,
identity_provider_details,
access_endpoint,
web_app_units,
web_app_customization,
web_app_endpoint_policy,
tags
FROM awscc.transfer.web_apps
WHERE
region = '{{ region }}' AND
Identifier = '{{ arn }}';

INSERT example

Use the following StackQL query and manifest file to create a new web_app resource, using stack-deploy.

/*+ create */
INSERT INTO awscc.transfer.web_apps (
IdentityProviderDetails,
region
)
SELECT
'{{ identity_provider_details }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

UPDATE example

Use the following StackQL query and manifest file to update a web_app resource, using stack-deploy.

/*+ update */
UPDATE awscc.transfer.web_apps
SET PatchDocument = string('{{ {
"AccessEndpoint": access_endpoint,
"WebAppUnits": web_app_units,
"WebAppCustomization": web_app_customization,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ arn }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.transfer.web_apps
WHERE
Identifier = '{{ arn }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

To operate on the web_apps resource, the following permissions are required:

transfer:CreateWebApp,
transfer:DescribeWebApp,
transfer:DescribeWebAppCustomization,
transfer:TagResource,
transfer:UpdateWebAppCustomization,
iam:PassRole,
sso:CreateApplication,
sso:DescribeApplication,
sso:ListApplications,
sso:PutApplicationGrant,
sso:GetApplicationGrant,
sso:ListApplicationGrants,
sso:PutApplicationAuthenticationMethod,
sso:GetApplicationAuthenticationMethod,
sso:ListApplicationAuthenticationMethods,
sso:PutApplicationAccessScope,
sso:GetApplicationAccessScope,
sso:ListApplicationAccessScopes