Path: blob/develop/awscli/customizations/datapipeline/constants.py
1567 views
# Copyright 2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.1#2# Licensed under the Apache License, Version 2.0 (the "License"). You3# may not use this file except in compliance with the License. A copy of4# the License is located at5#6# http://aws.amazon.com/apache2.0/7#8# or in the "license" file accompanying this file. This file is9# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF10# ANY KIND, either express or implied. See the License for the specific11# language governing permissions and limitations under the License.1213# Declare all the constants used by DataPipeline in this file1415# DataPipeline role names16DATAPIPELINE_DEFAULT_SERVICE_ROLE_NAME = "DataPipelineDefaultRole"17DATAPIPELINE_DEFAULT_RESOURCE_ROLE_NAME = "DataPipelineDefaultResourceRole"1819# DataPipeline role arn names20DATAPIPELINE_DEFAULT_SERVICE_ROLE_ARN = ("arn:aws:iam::aws:policy/"21"service-role/AWSDataPipelineRole")22DATAPIPELINE_DEFAULT_RESOURCE_ROLE_ARN = ("arn:aws:iam::aws:policy/"23"service-role/"24"AmazonEC2RoleforDataPipelineRole")2526# Assume Role Policy definitions for roles27DATAPIPELINE_DEFAULT_RESOURCE_ROLE_ASSUME_POLICY = {28"Version": "2008-10-17",29"Statement": [30{31"Sid": "",32"Effect": "Allow",33"Principal": {"Service": "ec2.amazonaws.com"},34"Action": "sts:AssumeRole"35}36]37}3839DATAPIPELINE_DEFAULT_SERVICE_ROLE_ASSUME_POLICY = {40"Version": "2008-10-17",41"Statement": [42{43"Sid": "",44"Effect": "Allow",45"Principal": {"Service": ["datapipeline.amazonaws.com",46"elasticmapreduce.amazonaws.com"]47},48"Action": "sts:AssumeRole"49}50]51}525354