iam

package
v0.1.32 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 5, 2022 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAssumeRolePolicy

func NewAssumeRolePolicy(services ...string) string

func NewRoleResourcePolicy

func NewRoleResourcePolicy(resource ...string) string

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"`
}

func (*AwsIamRole) GetId

func (r *AwsIamRole) GetId() string

type AwsIamRoleInlinePolicy

type AwsIamRoleInlinePolicy struct {
	Name   string `hcl:"name"`
	Policy string `hcl:"policy,expr"`
}

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL