Skip to main content

service_environments

Creates, updates, deletes or gets a service_environment resource or lists service_environments in a region

Overview

Nameservice_environments
TypeResource
DescriptionResource Type definition for AWS::Batch::ServiceEnvironment
Idawscc.batch.service_environments

Fields

NameDatatypeDescription
service_environment_arnstring
service_environment_namestring
statestring
service_environment_typestring
capacity_limitsarray
tagsobjectA key-value pair to associate with a resource.
regionstringAWS region.

For more information, see AWS::Batch::ServiceEnvironment.

Methods

NameAccessible byRequired Params
create_resourceINSERTServiceEnvironmentType, CapacityLimits, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all properties from an individual service_environment.

SELECT
region,
service_environment_arn,
service_environment_name,
state,
service_environment_type,
capacity_limits,
tags
FROM awscc.batch.service_environments
WHERE region = 'us-east-1' AND data__Identifier = '<ServiceEnvironmentArn>';

INSERT example

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

/*+ create */
INSERT INTO awscc.batch.service_environments (
ServiceEnvironmentType,
CapacityLimits,
region
)
SELECT
'{{ ServiceEnvironmentType }}',
'{{ CapacityLimits }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM awscc.batch.service_environments
WHERE data__Identifier = '<ServiceEnvironmentArn>'
AND region = 'us-east-1';

Permissions

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

Create

Batch:CreateServiceEnvironment,
Batch:TagResource,
Batch:DescribeServiceEnvironments,
Iam:CreateServiceLinkedRole

Read

Batch:DescribeServiceEnvironments

Update

Batch:UpdateServiceEnvironment,
Batch:DescribeServiceEnvironments,
Batch:TagResource,
Batch:UntagResource

Delete

Batch:DeleteServiceEnvironment,
Batch:DescribeServiceEnvironments,
Batch:UpdateServiceEnvironment

List

Batch:DescribeServiceEnvironments