Documentation ¶
Index ¶
- func NewAssumeRolePolicy(services ...string) string
- func NewRoleResourcePolicy(resource ...string) string
- type AwsIamInstanceProfile
- type AwsIamPolicy
- type AwsIamPolicyStatement
- type AwsIamPolicyStatementPrincipal
- type AwsIamRole
- type AwsIamRolePolicy
- type AwsIamRolePolicyAttachment
- type AwsIamRolePolicyAttachmentForVap
- type GoogleServiceAccount
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"` Arn string `json:"arn" hcle:"omitempty"` }
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"` Id string `json:"id" hcle:"omitempty"` Arn string `json:"arn" hcle:"omitempty"` }
func (*AwsIamRole) GetId ¶
func (r *AwsIamRole) GetId() string
type AwsIamRolePolicy ¶ added in v0.1.54
type AwsIamRolePolicy struct { *common.AwsResource `hcl:",squash" default:"name=aws_iam_policy"` Name string `hcl:"name"` Policy string `hcl:"policy,expr"` Arn string `json:"arn" hcle:"omitempty"` }
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"` }
type AwsIamRolePolicyAttachmentForVap ¶ added in v0.1.54
type AwsIamRolePolicyAttachmentForVap struct { *common.AwsResource `hcl:",squash" default:"name=aws_iam_role_policy_attachment"` Role string `hcl:"role"` PolicyArn string `hcl:"policy_arn,expr"` }
type GoogleServiceAccount ¶ added in v0.1.52
type GoogleServiceAccount struct { *common.GcpResource `hcl:",squash" default:"name=google_service_account"` AccountId string `hcl:"account_id"` DisplayName string `hcl:"display_name"` // outputs Email string `json:"email" hcle:"omitempty"` }
Click to show internal directories.
Click to hide internal directories.