iam

package
v0.1.56 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2022 License: Apache-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"`

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

Jump to

Keyboard shortcuts

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