Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
aws
GitHub Repository: aws/aws-cli
Path: blob/develop/awscli/customizations/datapipeline/constants.py
1567 views
1
# Copyright 2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
#
3
# Licensed under the Apache License, Version 2.0 (the "License"). You
4
# may not use this file except in compliance with the License. A copy of
5
# the License is located at
6
#
7
# http://aws.amazon.com/apache2.0/
8
#
9
# or in the "license" file accompanying this file. This file is
10
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
11
# ANY KIND, either express or implied. See the License for the specific
12
# language governing permissions and limitations under the License.
13
14
# Declare all the constants used by DataPipeline in this file
15
16
# DataPipeline role names
17
DATAPIPELINE_DEFAULT_SERVICE_ROLE_NAME = "DataPipelineDefaultRole"
18
DATAPIPELINE_DEFAULT_RESOURCE_ROLE_NAME = "DataPipelineDefaultResourceRole"
19
20
# DataPipeline role arn names
21
DATAPIPELINE_DEFAULT_SERVICE_ROLE_ARN = ("arn:aws:iam::aws:policy/"
22
"service-role/AWSDataPipelineRole")
23
DATAPIPELINE_DEFAULT_RESOURCE_ROLE_ARN = ("arn:aws:iam::aws:policy/"
24
"service-role/"
25
"AmazonEC2RoleforDataPipelineRole")
26
27
# Assume Role Policy definitions for roles
28
DATAPIPELINE_DEFAULT_RESOURCE_ROLE_ASSUME_POLICY = {
29
"Version": "2008-10-17",
30
"Statement": [
31
{
32
"Sid": "",
33
"Effect": "Allow",
34
"Principal": {"Service": "ec2.amazonaws.com"},
35
"Action": "sts:AssumeRole"
36
}
37
]
38
}
39
40
DATAPIPELINE_DEFAULT_SERVICE_ROLE_ASSUME_POLICY = {
41
"Version": "2008-10-17",
42
"Statement": [
43
{
44
"Sid": "",
45
"Effect": "Allow",
46
"Principal": {"Service": ["datapipeline.amazonaws.com",
47
"elasticmapreduce.amazonaws.com"]
48
},
49
"Action": "sts:AssumeRole"
50
}
51
]
52
}
53
54