applications
Creates, updates, deletes or gets an application resource or lists applications in a region
Overview
| Name | applications |
| Type | Resource |
| Description | Definition of AWS::RefactorSpaces::Application Resource Type |
| Id | awscc.refactorspaces.applications |
Fields
- get (all properties)
- list (identifiers only)
| Name | Datatype | Description |
|---|---|---|
api_gateway_proxy | object | |
arn | string | |
api_gateway_id | string | |
vpc_link_id | string | |
nlb_arn | string | |
nlb_name | string | |
application_identifier | string | |
environment_identifier | string | |
name | string | |
proxy_type | string | |
vpc_id | string | |
stage_name | string | |
proxy_url | string | |
tags | array | Metadata that you can assign to help organize the frameworks that you create. Each tag is a key-value pair. |
region | string | AWS region. |
| Name | Datatype | Description |
|---|---|---|
application_identifier | string | |
environment_identifier | string | |
region | string | AWS region. |
For more information, see AWS::RefactorSpaces::Application.
Methods
| Name | Resource | Accessible by | Required Params |
|---|---|---|---|
create_resource | applications | INSERT | EnvironmentIdentifier, VpcId, Name, ProxyType, region |
delete_resource | applications | DELETE | Identifier, region |
list_resources | applications_list_only | SELECT | region |
get_resource | applications | SELECT | Identifier, region |
SELECT examples
- get (all properties)
- list (identifiers only)
Gets all properties from an individual application.
SELECT
region,
api_gateway_proxy,
arn,
api_gateway_id,
vpc_link_id,
nlb_arn,
nlb_name,
application_identifier,
environment_identifier,
name,
proxy_type,
vpc_id,
stage_name,
proxy_url,
tags
FROM awscc.refactorspaces.applications
WHERE
region = 'us-east-1' AND
Identifier = '{{ environment_identifier }}|{{ application_identifier }}';
Lists all applications in a region.
SELECT
region,
environment_identifier,
application_identifier
FROM awscc.refactorspaces.applications_list_only
WHERE
region = 'us-east-1';
INSERT example
Use the following StackQL query and manifest file to create a new application resource, using stack-deploy.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO awscc.refactorspaces.applications (
EnvironmentIdentifier,
Name,
ProxyType,
VpcId,
region
)
SELECT
'{{ environment_identifier }}',
'{{ name }}',
'{{ proxy_type }}',
'{{ vpc_id }}',
'{{ region }}';
/*+ create */
INSERT INTO awscc.refactorspaces.applications (
ApiGatewayProxy,
EnvironmentIdentifier,
Name,
ProxyType,
VpcId,
Tags,
region
)
SELECT
'{{ api_gateway_proxy }}',
'{{ environment_identifier }}',
'{{ name }}',
'{{ proxy_type }}',
'{{ vpc_id }}',
'{{ tags }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: application
props:
- name: api_gateway_proxy
value:
stage_name: '{{ stage_name }}'
endpoint_type: '{{ endpoint_type }}'
- name: environment_identifier
value: '{{ environment_identifier }}'
- name: name
value: '{{ name }}'
- name: proxy_type
value: '{{ proxy_type }}'
- name: vpc_id
value: '{{ vpc_id }}'
- name: tags
value:
- key: '{{ key }}'
value: '{{ value }}'
DELETE example
/*+ delete */
DELETE FROM awscc.refactorspaces.applications
WHERE
Identifier = '{{ environment_identifier }}|{{ application_identifier }}' AND
region = 'us-east-1';
Permissions
To operate on the applications resource, the following permissions are required:
- Create
- Read
- Delete
- List
refactor-spaces:GetApplication,
refactor-spaces:CreateApplication,
refactor-spaces:TagResource,
ec2:CreateTags,
ec2:CreateVpcEndpointServiceConfiguration,
ec2:DescribeVpcs,
ec2:DescribeSubnets,
ec2:DescribeVpcEndpointServiceConfigurations,
ec2:DescribeAccountAttributes,
ec2:DescribeInternetGateways,
ec2:ModifyVpcEndpointServicePermissions,
apigateway:DELETE,
apigateway:GET,
apigateway:PATCH,
apigateway:POST,
apigateway:PUT,
apigateway:UpdateRestApiPolicy,
elasticloadbalancing:CreateLoadBalancer,
elasticloadbalancing:DescribeLoadBalancers,
elasticloadbalancing:DescribeTags,
elasticloadbalancing:AddTags,
iam:CreateServiceLinkedRole
refactor-spaces:GetApplication,
refactor-spaces:ListTagsForResource
refactor-spaces:GetApplication,
refactor-spaces:DeleteApplication,
refactor-spaces:UntagResource,
ec2:DescribeVpcEndpointServiceConfigurations,
ec2:DeleteRoute,
ec2:DeleteSecurityGroup,
ec2:DeleteTransitGateway,
ec2:DeleteTransitGatewayVpcAttachment,
ec2:DeleteVpcEndpointServiceConfigurations,
ec2:DeleteTags,
ec2:RevokeSecurityGroupIngress,
elasticloadbalancing:DeleteLoadBalancer,
apigateway:DELETE,
apigateway:GET,
apigateway:PUT,
apigateway:UpdateRestApiPolicy
refactor-spaces:ListApplications,
refactor-spaces:ListTagsForResource