Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAssumeRolePolicy ¶
func NewRoleResourcePolicy ¶
Types ¶
type AwsIamInstanceProfile ¶
type AwsIamInstanceProfile struct { *common.AwsResource `hcl:",squash" default:"name=aws_iam_instance_profile"` Name string `hcl:"name"` Role string `hcl:"role,expr"` }
func (*AwsIamInstanceProfile) GetId ¶
func (r *AwsIamInstanceProfile) GetId() string
type AwsIamPolicy ¶
type AwsIamPolicy struct { Statement []AwsIamPolicyStatement Version string }
type AwsIamPolicyStatement ¶
type AwsIamPolicyStatement struct { Action []string Effect string Resource string `json:"Resource,omitempty"` Principal *AwsIamPolicyStatementPrincipal `json:"Principal,omitempty"` }
type AwsIamPolicyStatementPrincipal ¶
type AwsIamPolicyStatementPrincipal struct {
Service string `json:"Service,omitempty"`
}
type AwsIamRole ¶
type AwsIamRole struct { *common.AwsResource `hcl:",squash" default:"name=aws_iam_role"` Name string `hcl:"name"` AssumeRolePolicy string `hcl:"assume_role_policy"` InlinePolicy AwsIamRoleInlinePolicy `hcl:"inline_policy,optional" hcle:"omitempty"` Id string `json:"id" hcle:"omitempty"` }
func (*AwsIamRole) GetId ¶
func (r *AwsIamRole) GetId() string
type AwsIamRoleInlinePolicy ¶
type AwsIamRolePolicyAttachment ¶
type AwsIamRolePolicyAttachment struct { *common.AwsResource `hcl:",squash" default:"name=aws_iam_role_policy_attachment"` Role string `hcl:"role,expr"` PolicyArn string `hcl:"policy_arn"` }
Click to show internal directories.
Click to hide internal directories.