(self)
return role
Set up a new IAM role and set its policy to allow Elastic
        Transcoder access to S3 and SNS. Returns the role.
Set up a new IAM role and set its policy to allow Elastic
        Transcoder access to S3 and SNS. Returns the role.
Set up a new IAM role and set its policy to allow Elastic Transcoder access to S3 and SNS . Returns the role .
def setup_iam_role(self):
        """
        Set up a new IAM role and set its policy to allow Elastic
        Transcoder access to S3 and SNS. Returns the role.
        """
        role = self.iam.create_role(
            RoleName=self.role_name,
            AssumeRolePolicyDocument=json.dumps(self.basic_role_policy))
        self.iam.RolePolicy(self.role_name, 'more-permissions').put(
            PolicyDocument=json.dumps(self.more_permissions_policy))
        return role
def setup_iam_role ( self ) : role = self . iam . create_role ( RoleName = self . role_name , AssumeRolePolicyDocument = json . dumps ( self . basic_role_policy ) ) self . iam . RolePolicy ( self . role_name , 'more-permissions' ) . put ( PolicyDocument = json . dumps ( self . more_permissions_policy ) ) return role