Documentation ¶
Index ¶
- func CreateOrUpdateRole(ctx context.Context, client *iam.Client, req CreateRoleRequest) error
- func CreatePolicy(ctx context.Context, client *iam.Client, req CreatePolicyRequest) (*types.Policy, error)
- func CreateRole(ctx context.Context, client *iam.Client, req CreateRoleRequest) error
- func DeletePolicy(ctx context.Context, client *iam.Client, arn string) error
- func DeleteRole(ctx context.Context, client *iam.Client, name string) error
- func DetachAllPoliciesFromRole(ctx context.Context, client *iam.Client, roleName string) error
- func GetPolicy(ctx context.Context, client *iam.Client, arn string) (*types.Policy, error)
- func GetRole(ctx context.Context, client *iam.Client, name string) (*types.Role, error)
- func IsNotFoundError(err error) bool
- type CreatePolicyRequest
- type CreateRoleRequest
- type PolicyCondition
- type PolicyDocument
- type PolicyStatement
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateOrUpdateRole ¶
func CreatePolicy ¶
func CreateRole ¶
func IsNotFoundError ¶
Types ¶
type CreatePolicyRequest ¶
type CreatePolicyRequest struct { Name string Description string Document PolicyDocument }
type CreateRoleRequest ¶
type CreateRoleRequest struct { Name string AssumeRolePolicyDocument PolicyDocument }
type PolicyCondition ¶
type PolicyDocument ¶
type PolicyDocument struct { Version string Statement []PolicyStatement }
type PolicyStatement ¶
type PolicyStatement struct { Effect string Action []string Principal map[string]interface{} `json:",omitempty"` Resource *string `json:",omitempty"` Condition *PolicyCondition `json:",omitempty"` }
Click to show internal directories.
Click to hide internal directories.