web_apps
Creates, updates, deletes or gets a web_app resource or lists web_apps in a region
Overview
| Name | web_apps |
| Type | Resource |
| Description | Resource Type definition for AWS::Transfer::WebApp |
| Id | awscc.transfer.web_apps |
Fields
- get (all properties)
- list (identifiers only)
| Name | Datatype | Description |
|---|---|---|
arn | string | Specifies the unique Amazon Resource Name (ARN) for the web app. |
web_app_id | string | A unique identifier for the web app. |
identity_provider_details | object | You can provide a structure that contains the details for the identity provider to use with your web app. |
access_endpoint | string | The 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_units | object | |
web_app_customization | object | |
web_app_endpoint_policy | string | |
tags | array | Key-value pairs that can be used to group and search for web apps. |
region | string | AWS region. |
| Name | Datatype | Description |
|---|---|---|
arn | string | Specifies the unique Amazon Resource Name (ARN) for the web app. |
region | string | AWS region. |
For more information, see AWS::Transfer::WebApp.
Methods
| Name | Resource | Accessible by | Required Params |
|---|---|---|---|
create_resource | web_apps | INSERT | IdentityProviderDetails, region |
delete_resource | web_apps | DELETE | Identifier, region |
update_resource | web_apps | UPDATE | Identifier, PatchDocument, region |
list_resources | web_apps_list_only | SELECT | region |
get_resource | web_apps | SELECT | Identifier, region |
SELECT examples
- get (all properties)
- list (identifiers only)
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 = 'us-east-1' AND
Identifier = '{{ arn }}';
Lists all web_apps in a region.
SELECT
region,
arn
FROM awscc.transfer.web_apps_list_only
WHERE
region = 'us-east-1';
INSERT example
Use the following StackQL query and manifest file to create a new web_app resource, using stack-deploy.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO awscc.transfer.web_apps (
IdentityProviderDetails,
region
)
SELECT
'{{ identity_provider_details }}',
'{{ region }}';
/*+ create */
INSERT INTO awscc.transfer.web_apps (
IdentityProviderDetails,
AccessEndpoint,
WebAppUnits,
WebAppCustomization,
WebAppEndpointPolicy,
Tags,
region
)
SELECT
'{{ identity_provider_details }}',
'{{ access_endpoint }}',
'{{ web_app_units }}',
'{{ web_app_customization }}',
'{{ web_app_endpoint_policy }}',
'{{ tags }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: web_app
props:
- name: identity_provider_details
value:
application_arn: '{{ application_arn }}'
instance_arn: '{{ instance_arn }}'
role: '{{ role }}'
- name: access_endpoint
value: '{{ access_endpoint }}'
- name: web_app_units
value: null
- name: web_app_customization
value:
title: '{{ title }}'
logo_file: '{{ logo_file }}'
favicon_file: '{{ favicon_file }}'
- name: web_app_endpoint_policy
value: '{{ web_app_endpoint_policy }}'
- name: tags
value:
- key: '{{ key }}'
value: '{{ value }}'
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 }}';
DELETE example
/*+ delete */
DELETE FROM awscc.transfer.web_apps
WHERE
Identifier = '{{ arn }}' AND
region = 'us-east-1';
Permissions
To operate on the web_apps resource, the following permissions are required:
- Create
- Read
- Update
- Delete
- List
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
transfer:DescribeWebApp,
transfer:DescribeWebAppCustomization
transfer:DescribeWebApp,
transfer:DescribeWebAppCustomization,
transfer:UpdateWebApp,
transfer:UpdateWebAppCustomization,
transfer:DeleteWebAppCustomization,
transfer:UnTagResource,
transfer:TagResource,
iam:PassRole,
sso:PutApplicationGrant,
sso:GetApplicationGrant,
sso:ListApplicationGrants,
sso:UpdateApplication,
sso:DescribeApplication,
sso:ListApplications
transfer:DeleteWebApp,
sso:DescribeApplication,
sso:DeleteApplication
transfer:ListWebApps