package managedpolicy

import "github.com/oslokommune/okctl/pkg/cfn/components/managedpolicy"

Package managedpolicy knows how to create cloud formation for a managed IAM policy

Index

Types

type ManagedPolicy

type ManagedPolicy struct {
	StoredName  string
	PolicyName  string
	Description string
	Document    interface{}
}

ManagedPolicy stores the state for a cloud formation managed IAM policy

func New

func New(resourceName, policyName, description string, document interface{}) *ManagedPolicy

New creates a managed IAM policy

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-managedpolicy.html

func (*ManagedPolicy) Name

func (p *ManagedPolicy) Name() string

Name returns the name of the resource

func (*ManagedPolicy) NamedOutputs

func (p *ManagedPolicy) NamedOutputs() map[string]cloudformation.Output

NamedOutputs returns a reference to the logical id of this resource, which will contain the ARN of the managed policy: - https://docs.amazonaws.cn/en_us/AWSCloudFormation/latest/UserGuide/aws-resource-iam-managedpolicy.html

func (*ManagedPolicy) Ref

func (p *ManagedPolicy) Ref() string

Ref returns a cloud formation intrinsic ref to the resource

func (*ManagedPolicy) Resource

func (p *ManagedPolicy) Resource() cloudformation.Resource

Resource returns the cloud formation resource for an IAM policy

Source Files

managedpolicy.go

Version
v0.0.106 (latest)
Published
Oct 21, 2022
Platform
linux/amd64
Imports
3 packages
Last checked
1 hour ago

Tools for package owners.