Documentation ¶
Index ¶
- Constants
- func JoinCommands(commands []string) string
- type Command
- type CommandBuilder
- func (b *CommandBuilder) AddParam(awsParam Param, value string) *CommandBuilder
- func (b *CommandBuilder) AddParamNoValue(awsParam Param) *CommandBuilder
- func (b *CommandBuilder) AddTags(value map[string]string) *CommandBuilder
- func (b *CommandBuilder) Build() string
- func (b *CommandBuilder) SetCommand(awsCommand Command) *CommandBuilder
- func (b *CommandBuilder) SetService(awsService Service) *CommandBuilder
- type Param
- type Service
Constants ¶
View Source
const ParamNewLineSeparator = " \\\n"
Variables ¶
This section is empty.
Functions ¶
func JoinCommands ¶
Types ¶
type Command ¶
type Command string
const ( CreateRole Command = "create-role" DeleteRole Command = "delete-role" CreatePolicy Command = "create-policy" DeletePolicy Command = "delete-policy" CreatePolicyVersion Command = "create-policy-version" DeleteRolePolicy Command = "delete-role-policy" AttachRolePolicy Command = "attach-role-policy" DetachRolePolicy Command = "detach-role-policy" TagPolicy Command = "tag-policy" TagRole Command = "tag-role" CreateOpenIdConnectProvider Command = "create-open-id-connect-provider" DeleteOpenIdConnectProvider Command = "delete-open-id-connect-provider" DeleteRolePermissionsBoundary Command = "delete-role-permissions-boundary" )
type CommandBuilder ¶
type CommandBuilder struct {
// contains filtered or unexported fields
}
func NewIAMCommandBuilder ¶
func NewIAMCommandBuilder() *CommandBuilder
func (*CommandBuilder) AddParam ¶
func (b *CommandBuilder) AddParam(awsParam Param, value string) *CommandBuilder
func (*CommandBuilder) AddParamNoValue ¶
func (b *CommandBuilder) AddParamNoValue(awsParam Param) *CommandBuilder
func (*CommandBuilder) AddTags ¶
func (b *CommandBuilder) AddTags(value map[string]string) *CommandBuilder
func (*CommandBuilder) Build ¶
func (b *CommandBuilder) Build() string
func (*CommandBuilder) SetCommand ¶
func (b *CommandBuilder) SetCommand(awsCommand Command) *CommandBuilder
func (*CommandBuilder) SetService ¶
func (b *CommandBuilder) SetService(awsService Service) *CommandBuilder
type Param ¶
type Param string
const ( Tags Param = "tags" RoleName Param = "role-name" AssumeRolePolicyDocument Param = "assume-role-policy-document" PermissionsBoundary Param = "permissions-boundary" Path Param = "path" PolicyName Param = "policy-name" PolicyDocument Param = "policy-document" PolicyArn Param = "policy-arn" Url Param = "url" ClientIdList Param = "client-id-list" ThumbprintList Param = "thumbprint-list" OpenIdConnectProviderArn Param = "open-id-connect-provider-arn" SetAsDefault Param = "set-as-default" )
Click to show internal directories.
Click to hide internal directories.