Documentation ¶
Index ¶
- type MockAccessClient
- func (m MockAccessClient) CreateAccessKey(ctx context.Context, input *iam.CreateAccessKeyInput, ...) (*iam.CreateAccessKeyOutput, error)
- func (m MockAccessClient) DeleteAccessKey(ctx context.Context, input *iam.DeleteAccessKeyInput, ...) (*iam.DeleteAccessKeyOutput, error)
- func (m MockAccessClient) ListAccessKeys(ctx context.Context, input *iam.ListAccessKeysInput, ...) (*iam.ListAccessKeysOutput, error)
- func (m MockAccessClient) UpdateAccessKey(ctx context.Context, input *iam.UpdateAccessKeyInput, ...) (*iam.UpdateAccessKeyOutput, error)
- type MockGroupClient
- func (m *MockGroupClient) CreateGroup(ctx context.Context, input *iam.CreateGroupInput, opts ...func(*iam.Options)) (*iam.CreateGroupOutput, error)
- func (m *MockGroupClient) DeleteGroup(ctx context.Context, input *iam.DeleteGroupInput, opts ...func(*iam.Options)) (*iam.DeleteGroupOutput, error)
- func (m *MockGroupClient) GetGroup(ctx context.Context, input *iam.GetGroupInput, opts ...func(*iam.Options)) (*iam.GetGroupOutput, error)
- func (m *MockGroupClient) UpdateGroup(ctx context.Context, input *iam.UpdateGroupInput, opts ...func(*iam.Options)) (*iam.UpdateGroupOutput, error)
- type MockGroupPolicyAttachmentClient
- func (m *MockGroupPolicyAttachmentClient) AttachGroupPolicy(ctx context.Context, input *iam.AttachGroupPolicyInput, ...) (*iam.AttachGroupPolicyOutput, error)
- func (m *MockGroupPolicyAttachmentClient) DetachGroupPolicy(ctx context.Context, input *iam.DetachGroupPolicyInput, ...) (*iam.DetachGroupPolicyOutput, error)
- func (m *MockGroupPolicyAttachmentClient) ListAttachedGroupPolicies(ctx context.Context, input *iam.ListAttachedGroupPoliciesInput, ...) (*iam.ListAttachedGroupPoliciesOutput, error)
- type MockGroupUserMembershipClient
- func (m *MockGroupUserMembershipClient) AddUserToGroup(ctx context.Context, input *iam.AddUserToGroupInput, ...) (*iam.AddUserToGroupOutput, error)
- func (m *MockGroupUserMembershipClient) ListGroupsForUser(ctx context.Context, input *iam.ListGroupsForUserInput, ...) (*iam.ListGroupsForUserOutput, error)
- func (m *MockGroupUserMembershipClient) RemoveUserFromGroup(ctx context.Context, input *iam.RemoveUserFromGroupInput, ...) (*iam.RemoveUserFromGroupOutput, error)
- type MockOpenIDConnectProviderClient
- func (m *MockOpenIDConnectProviderClient) AddClientIDToOpenIDConnectProvider(ctx context.Context, input *iam.AddClientIDToOpenIDConnectProviderInput, ...) (*iam.AddClientIDToOpenIDConnectProviderOutput, error)
- func (m *MockOpenIDConnectProviderClient) CreateOpenIDConnectProvider(ctx context.Context, input *iam.CreateOpenIDConnectProviderInput, ...) (*iam.CreateOpenIDConnectProviderOutput, error)
- func (m *MockOpenIDConnectProviderClient) DeleteOpenIDConnectProvider(ctx context.Context, input *iam.DeleteOpenIDConnectProviderInput, ...) (*iam.DeleteOpenIDConnectProviderOutput, error)
- func (m *MockOpenIDConnectProviderClient) GetOpenIDConnectProvider(ctx context.Context, input *iam.GetOpenIDConnectProviderInput, ...) (*iam.GetOpenIDConnectProviderOutput, error)
- func (m *MockOpenIDConnectProviderClient) RemoveClientIDFromOpenIDConnectProvider(ctx context.Context, input *iam.RemoveClientIDFromOpenIDConnectProviderInput, ...) (*iam.RemoveClientIDFromOpenIDConnectProviderOutput, error)
- func (m *MockOpenIDConnectProviderClient) TagOpenIDConnectProvider(ctx context.Context, input *iam.TagOpenIDConnectProviderInput, ...) (*iam.TagOpenIDConnectProviderOutput, error)
- func (m *MockOpenIDConnectProviderClient) UntagOpenIDConnectProvider(ctx context.Context, input *iam.UntagOpenIDConnectProviderInput, ...) (*iam.UntagOpenIDConnectProviderOutput, error)
- func (m *MockOpenIDConnectProviderClient) UpdateOpenIDConnectProviderThumbprint(ctx context.Context, input *iam.UpdateOpenIDConnectProviderThumbprintInput, ...) (*iam.UpdateOpenIDConnectProviderThumbprintOutput, error)
- type MockOpenIDConnectProviderInput
- type MockPolicyClient
- func (m *MockPolicyClient) CreatePolicy(ctx context.Context, input *iam.CreatePolicyInput, opts ...func(*iam.Options)) (*iam.CreatePolicyOutput, error)
- func (m *MockPolicyClient) CreatePolicyVersion(ctx context.Context, input *iam.CreatePolicyVersionInput, ...) (*iam.CreatePolicyVersionOutput, error)
- func (m *MockPolicyClient) DeletePolicy(ctx context.Context, input *iam.DeletePolicyInput, opts ...func(*iam.Options)) (*iam.DeletePolicyOutput, error)
- func (m *MockPolicyClient) DeletePolicyVersion(ctx context.Context, input *iam.DeletePolicyVersionInput, ...) (*iam.DeletePolicyVersionOutput, error)
- func (m *MockPolicyClient) GetPolicy(ctx context.Context, input *iam.GetPolicyInput, opts ...func(*iam.Options)) (*iam.GetPolicyOutput, error)
- func (m *MockPolicyClient) GetPolicyVersion(ctx context.Context, input *iam.GetPolicyVersionInput, ...) (*iam.GetPolicyVersionOutput, error)
- func (m *MockPolicyClient) ListPolicyVersions(ctx context.Context, input *iam.ListPolicyVersionsInput, ...) (*iam.ListPolicyVersionsOutput, error)
- func (m *MockPolicyClient) TagPolicy(ctx context.Context, input *iam.TagPolicyInput, opts ...func(*iam.Options)) (*iam.TagPolicyOutput, error)
- func (m *MockPolicyClient) UntagPolicy(ctx context.Context, input *iam.UntagPolicyInput, opts ...func(*iam.Options)) (*iam.UntagPolicyOutput, error)
- type MockPolicyInput
- type MockRoleClient
- func (m *MockRoleClient) CreateRole(ctx context.Context, input *iam.CreateRoleInput, opts ...func(*iam.Options)) (*iam.CreateRoleOutput, error)
- func (m *MockRoleClient) DeleteRole(ctx context.Context, input *iam.DeleteRoleInput, opts ...func(*iam.Options)) (*iam.DeleteRoleOutput, error)
- func (m *MockRoleClient) GetRole(ctx context.Context, input *iam.GetRoleInput, opts ...func(*iam.Options)) (*iam.GetRoleOutput, error)
- func (m *MockRoleClient) TagRole(ctx context.Context, input *iam.TagRoleInput, opts ...func(*iam.Options)) (*iam.TagRoleOutput, error)
- func (m *MockRoleClient) UntagRole(ctx context.Context, input *iam.UntagRoleInput, opts ...func(*iam.Options)) (*iam.UntagRoleOutput, error)
- func (m *MockRoleClient) UpdateAssumeRolePolicy(ctx context.Context, input *iam.UpdateAssumeRolePolicyInput, ...) (*iam.UpdateAssumeRolePolicyOutput, error)
- func (m *MockRoleClient) UpdateRole(ctx context.Context, input *iam.UpdateRoleInput, opts ...func(*iam.Options)) (*iam.UpdateRoleOutput, error)
- type MockRolePolicyAttachmentClient
- func (m *MockRolePolicyAttachmentClient) AttachRolePolicy(ctx context.Context, input *iam.AttachRolePolicyInput, ...) (*iam.AttachRolePolicyOutput, error)
- func (m *MockRolePolicyAttachmentClient) DetachRolePolicy(ctx context.Context, input *iam.DetachRolePolicyInput, ...) (*iam.DetachRolePolicyOutput, error)
- func (m *MockRolePolicyAttachmentClient) ListAttachedRolePolicies(ctx context.Context, input *iam.ListAttachedRolePoliciesInput, ...) (*iam.ListAttachedRolePoliciesOutput, error)
- type MockSTSClient
- type MockUserClient
- func (m *MockUserClient) CreateUser(ctx context.Context, input *iam.CreateUserInput, opts ...func(*iam.Options)) (*iam.CreateUserOutput, error)
- func (m *MockUserClient) DeleteUser(ctx context.Context, input *iam.DeleteUserInput, opts ...func(*iam.Options)) (*iam.DeleteUserOutput, error)
- func (m *MockUserClient) GetUser(ctx context.Context, input *iam.GetUserInput, opts ...func(*iam.Options)) (*iam.GetUserOutput, error)
- func (m *MockUserClient) TagUser(ctx context.Context, input *iam.TagUserInput, opts ...func(*iam.Options)) (*iam.TagUserOutput, error)
- func (m *MockUserClient) UntagUser(ctx context.Context, input *iam.UntagUserInput, opts ...func(*iam.Options)) (*iam.UntagUserOutput, error)
- func (m *MockUserClient) UpdateUser(ctx context.Context, input *iam.UpdateUserInput, opts ...func(*iam.Options)) (*iam.UpdateUserOutput, error)
- type MockUserInput
- type MockUserPolicyAttachmentClient
- func (m *MockUserPolicyAttachmentClient) AttachUserPolicy(ctx context.Context, input *iam.AttachUserPolicyInput, ...) (*iam.AttachUserPolicyOutput, error)
- func (m *MockUserPolicyAttachmentClient) DetachUserPolicy(ctx context.Context, input *iam.DetachUserPolicyInput, ...) (*iam.DetachUserPolicyOutput, error)
- func (m *MockUserPolicyAttachmentClient) ListAttachedUserPolicies(ctx context.Context, input *iam.ListAttachedUserPoliciesInput, ...) (*iam.ListAttachedUserPoliciesOutput, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAccessClient ¶
type MockAccessClient struct { MockCreateAccessKey func(ctx context.Context, input *iam.CreateAccessKeyInput, opts []func(*iam.Options)) (*iam.CreateAccessKeyOutput, error) MockDeleteAccessKey func(ctx context.Context, input *iam.DeleteAccessKeyInput, opts []func(*iam.Options)) (*iam.DeleteAccessKeyOutput, error) MockListAccessKeys func(ctx context.Context, input *iam.ListAccessKeysInput, opts []func(*iam.Options)) (*iam.ListAccessKeysOutput, error) MockUpdateAccessKey func(ctx context.Context, input *iam.UpdateAccessKeyInput, opts []func(*iam.Options)) (*iam.UpdateAccessKeyOutput, error) }
MockAccessClient is a type that implements all the methods for AccessClient interface
func (MockAccessClient) CreateAccessKey ¶
func (m MockAccessClient) CreateAccessKey(ctx context.Context, input *iam.CreateAccessKeyInput, opts ...func(*iam.Options)) (*iam.CreateAccessKeyOutput, error)
CreateAccessKey mocks CreateAccessKey method
func (MockAccessClient) DeleteAccessKey ¶
func (m MockAccessClient) DeleteAccessKey(ctx context.Context, input *iam.DeleteAccessKeyInput, opts ...func(*iam.Options)) (*iam.DeleteAccessKeyOutput, error)
DeleteAccessKey mocks DeleteAccessKey method
func (MockAccessClient) ListAccessKeys ¶
func (m MockAccessClient) ListAccessKeys(ctx context.Context, input *iam.ListAccessKeysInput, opts ...func(*iam.Options)) (*iam.ListAccessKeysOutput, error)
ListAccessKeys mocks ListAccessKeys method
func (MockAccessClient) UpdateAccessKey ¶
func (m MockAccessClient) UpdateAccessKey(ctx context.Context, input *iam.UpdateAccessKeyInput, opts ...func(*iam.Options)) (*iam.UpdateAccessKeyOutput, error)
UpdateAccessKey mocks UpdateAccessKey method
type MockGroupClient ¶
type MockGroupClient struct { MockGetGroup func(ctx context.Context, input *iam.GetGroupInput, opts []func(*iam.Options)) (*iam.GetGroupOutput, error) MockCreateGroup func(ctx context.Context, input *iam.CreateGroupInput, opts []func(*iam.Options)) (*iam.CreateGroupOutput, error) MockDeleteGroup func(ctx context.Context, input *iam.DeleteGroupInput, opts []func(*iam.Options)) (*iam.DeleteGroupOutput, error) MockUpdateGroup func(ctx context.Context, input *iam.UpdateGroupInput, opts []func(*iam.Options)) (*iam.UpdateGroupOutput, error) }
MockGroupClient is a type that implements all the methods for RoleClient interface
func (*MockGroupClient) CreateGroup ¶
func (m *MockGroupClient) CreateGroup(ctx context.Context, input *iam.CreateGroupInput, opts ...func(*iam.Options)) (*iam.CreateGroupOutput, error)
CreateGroup mocks CreateGroup method
func (*MockGroupClient) DeleteGroup ¶
func (m *MockGroupClient) DeleteGroup(ctx context.Context, input *iam.DeleteGroupInput, opts ...func(*iam.Options)) (*iam.DeleteGroupOutput, error)
DeleteGroup mocks DeleteGroup method
func (*MockGroupClient) GetGroup ¶
func (m *MockGroupClient) GetGroup(ctx context.Context, input *iam.GetGroupInput, opts ...func(*iam.Options)) (*iam.GetGroupOutput, error)
GetGroup mocks GetGroup method
func (*MockGroupClient) UpdateGroup ¶
func (m *MockGroupClient) UpdateGroup(ctx context.Context, input *iam.UpdateGroupInput, opts ...func(*iam.Options)) (*iam.UpdateGroupOutput, error)
UpdateGroup mocks UpdateGroup method
type MockGroupPolicyAttachmentClient ¶
type MockGroupPolicyAttachmentClient struct { MockAttachGroupPolicy func(ctx context.Context, input *iam.AttachGroupPolicyInput, opts []func(*iam.Options)) (*iam.AttachGroupPolicyOutput, error) MockListAttachedGroupPolicies func(ctx context.Context, input *iam.ListAttachedGroupPoliciesInput, opts []func(*iam.Options)) (*iam.ListAttachedGroupPoliciesOutput, error) MockDetachGroupPolicy func(ctx context.Context, input *iam.DetachGroupPolicyInput, opts []func(*iam.Options)) (*iam.DetachGroupPolicyOutput, error) }
MockGroupPolicyAttachmentClient is a type that implements all the methods for GroupPolicyAttachmentClient interface
func (*MockGroupPolicyAttachmentClient) AttachGroupPolicy ¶
func (m *MockGroupPolicyAttachmentClient) AttachGroupPolicy(ctx context.Context, input *iam.AttachGroupPolicyInput, opts ...func(*iam.Options)) (*iam.AttachGroupPolicyOutput, error)
AttachGroupPolicy mocks AttachGroupPolicy method
func (*MockGroupPolicyAttachmentClient) DetachGroupPolicy ¶
func (m *MockGroupPolicyAttachmentClient) DetachGroupPolicy(ctx context.Context, input *iam.DetachGroupPolicyInput, opts ...func(*iam.Options)) (*iam.DetachGroupPolicyOutput, error)
DetachGroupPolicy mocks DetachGroupPolicy method
func (*MockGroupPolicyAttachmentClient) ListAttachedGroupPolicies ¶
func (m *MockGroupPolicyAttachmentClient) ListAttachedGroupPolicies(ctx context.Context, input *iam.ListAttachedGroupPoliciesInput, opts ...func(*iam.Options)) (*iam.ListAttachedGroupPoliciesOutput, error)
ListAttachedGroupPolicies mocks ListAttachedGroupPolicies method
type MockGroupUserMembershipClient ¶
type MockGroupUserMembershipClient struct { MockAddUserToGroup func(ctx context.Context, input *iam.AddUserToGroupInput, opts []func(*iam.Options)) (*iam.AddUserToGroupOutput, error) MockRemoveUserFromGroup func(ctx context.Context, input *iam.RemoveUserFromGroupInput, opts []func(*iam.Options)) (*iam.RemoveUserFromGroupOutput, error) MockListGroupsForUser func(ctx context.Context, input *iam.ListGroupsForUserInput, opts []func(*iam.Options)) (*iam.ListGroupsForUserOutput, error) }
MockGroupUserMembershipClient is a type that implements all the methods for GroupUserMembershipClient interface
func (*MockGroupUserMembershipClient) AddUserToGroup ¶
func (m *MockGroupUserMembershipClient) AddUserToGroup(ctx context.Context, input *iam.AddUserToGroupInput, opts ...func(*iam.Options)) (*iam.AddUserToGroupOutput, error)
AddUserToGroup mocks AddUserToGroup method
func (*MockGroupUserMembershipClient) ListGroupsForUser ¶
func (m *MockGroupUserMembershipClient) ListGroupsForUser(ctx context.Context, input *iam.ListGroupsForUserInput, opts ...func(*iam.Options)) (*iam.ListGroupsForUserOutput, error)
ListGroupsForUser mocks ListGroupsForUser method
func (*MockGroupUserMembershipClient) RemoveUserFromGroup ¶
func (m *MockGroupUserMembershipClient) RemoveUserFromGroup(ctx context.Context, input *iam.RemoveUserFromGroupInput, opts ...func(*iam.Options)) (*iam.RemoveUserFromGroupOutput, error)
RemoveUserFromGroup mocks RemoveUserFromGroup method
type MockOpenIDConnectProviderClient ¶
type MockOpenIDConnectProviderClient struct { MockOpenIDConnectProviderInput MockOpenIDConnectProviderInput MockGetOpenIDConnectProvider func(ctx context.Context, input *iam.GetOpenIDConnectProviderInput, opts []func(*iam.Options)) (*iam.GetOpenIDConnectProviderOutput, error) MockCreateOpenIDConnectProvider func(ctx context.Context, input *iam.CreateOpenIDConnectProviderInput, opts []func(*iam.Options)) (*iam.CreateOpenIDConnectProviderOutput, error) MockAddClientIDToOpenIDConnectProvider func(ctx context.Context, input *iam.AddClientIDToOpenIDConnectProviderInput, opts []func(*iam.Options)) (*iam.AddClientIDToOpenIDConnectProviderOutput, error) MockRemoveClientIDFromOpenIDConnectProvider func(ctx context.Context, input *iam.RemoveClientIDFromOpenIDConnectProviderInput, opts []func(*iam.Options)) (*iam.RemoveClientIDFromOpenIDConnectProviderOutput, error) MockUpdateOpenIDConnectProviderThumbprint func(ctx context.Context, input *iam.UpdateOpenIDConnectProviderThumbprintInput, opts []func(*iam.Options)) (*iam.UpdateOpenIDConnectProviderThumbprintOutput, error) MockDeleteOpenIDConnectProvider func(ctx context.Context, input *iam.DeleteOpenIDConnectProviderInput, opts []func(*iam.Options)) (*iam.DeleteOpenIDConnectProviderOutput, error) MockTagOpenIDConnectProvider func(ctx context.Context, input *iam.TagOpenIDConnectProviderInput, opts []func(*iam.Options)) (*iam.TagOpenIDConnectProviderOutput, error) MockUntagOpenIDConnectProvider func(ctx context.Context, input *iam.UntagOpenIDConnectProviderInput, opts []func(*iam.Options)) (*iam.UntagOpenIDConnectProviderOutput, error) }
MockOpenIDConnectProviderClient is a type that implements all the methods for OpenIDConnectProviderClient interface
func (*MockOpenIDConnectProviderClient) AddClientIDToOpenIDConnectProvider ¶
func (m *MockOpenIDConnectProviderClient) AddClientIDToOpenIDConnectProvider(ctx context.Context, input *iam.AddClientIDToOpenIDConnectProviderInput, opts ...func(*iam.Options)) (*iam.AddClientIDToOpenIDConnectProviderOutput, error)
AddClientIDToOpenIDConnectProvider mocks client call.
func (*MockOpenIDConnectProviderClient) CreateOpenIDConnectProvider ¶
func (m *MockOpenIDConnectProviderClient) CreateOpenIDConnectProvider(ctx context.Context, input *iam.CreateOpenIDConnectProviderInput, opts ...func(*iam.Options)) (*iam.CreateOpenIDConnectProviderOutput, error)
CreateOpenIDConnectProvider mocks client call.
func (*MockOpenIDConnectProviderClient) DeleteOpenIDConnectProvider ¶
func (m *MockOpenIDConnectProviderClient) DeleteOpenIDConnectProvider(ctx context.Context, input *iam.DeleteOpenIDConnectProviderInput, opts ...func(*iam.Options)) (*iam.DeleteOpenIDConnectProviderOutput, error)
DeleteOpenIDConnectProvider mocks client call.
func (*MockOpenIDConnectProviderClient) GetOpenIDConnectProvider ¶
func (m *MockOpenIDConnectProviderClient) GetOpenIDConnectProvider(ctx context.Context, input *iam.GetOpenIDConnectProviderInput, opts ...func(*iam.Options)) (*iam.GetOpenIDConnectProviderOutput, error)
GetOpenIDConnectProvider mocks client call.
func (*MockOpenIDConnectProviderClient) RemoveClientIDFromOpenIDConnectProvider ¶
func (m *MockOpenIDConnectProviderClient) RemoveClientIDFromOpenIDConnectProvider(ctx context.Context, input *iam.RemoveClientIDFromOpenIDConnectProviderInput, opts ...func(*iam.Options)) (*iam.RemoveClientIDFromOpenIDConnectProviderOutput, error)
RemoveClientIDFromOpenIDConnectProvider mocks client call.
func (*MockOpenIDConnectProviderClient) TagOpenIDConnectProvider ¶
func (m *MockOpenIDConnectProviderClient) TagOpenIDConnectProvider(ctx context.Context, input *iam.TagOpenIDConnectProviderInput, opts ...func(*iam.Options)) (*iam.TagOpenIDConnectProviderOutput, error)
TagOpenIDConnectProvider mocks client call
func (*MockOpenIDConnectProviderClient) UntagOpenIDConnectProvider ¶
func (m *MockOpenIDConnectProviderClient) UntagOpenIDConnectProvider(ctx context.Context, input *iam.UntagOpenIDConnectProviderInput, opts ...func(*iam.Options)) (*iam.UntagOpenIDConnectProviderOutput, error)
UntagOpenIDConnectProvider mocks client call
func (*MockOpenIDConnectProviderClient) UpdateOpenIDConnectProviderThumbprint ¶
func (m *MockOpenIDConnectProviderClient) UpdateOpenIDConnectProviderThumbprint(ctx context.Context, input *iam.UpdateOpenIDConnectProviderThumbprintInput, opts ...func(*iam.Options)) (*iam.UpdateOpenIDConnectProviderThumbprintOutput, error)
UpdateOpenIDConnectProviderThumbprint mocks client call.
type MockOpenIDConnectProviderInput ¶
type MockOpenIDConnectProviderInput struct { CreateOIDCProviderInput *iam.CreateOpenIDConnectProviderInput TagOpenIDConnectProviderInput *iam.TagOpenIDConnectProviderInput UntagOpenIDConnectProviderInput *iam.UntagOpenIDConnectProviderInput }
MockOpenIDConnectProviderInput holds the input structures for future inspections
type MockPolicyClient ¶
type MockPolicyClient struct { MockPolicyInput MockPolicyInput MockGetPolicy func(ctx context.Context, input *iam.GetPolicyInput, opts []func(*iam.Options)) (*iam.GetPolicyOutput, error) MockCreatePolicy func(ctx context.Context, input *iam.CreatePolicyInput, opts []func(*iam.Options)) (*iam.CreatePolicyOutput, error) MockDeletePolicy func(ctx context.Context, input *iam.DeletePolicyInput, opts []func(*iam.Options)) (*iam.DeletePolicyOutput, error) MockGetPolicyVersion func(ctx context.Context, input *iam.GetPolicyVersionInput, opts []func(*iam.Options)) (*iam.GetPolicyVersionOutput, error) MockCreatePolicyVersion func(ctx context.Context, input *iam.CreatePolicyVersionInput, opts []func(*iam.Options)) (*iam.CreatePolicyVersionOutput, error) MockListPolicyVersions func(ctx context.Context, input *iam.ListPolicyVersionsInput, opts []func(*iam.Options)) (*iam.ListPolicyVersionsOutput, error) MockDeletePolicyVersion func(ctx context.Context, input *iam.DeletePolicyVersionInput, opts []func(*iam.Options)) (*iam.DeletePolicyVersionOutput, error) MockTagPolicy func(ctx context.Context, input *iam.TagPolicyInput, opts []func(*iam.Options)) (*iam.TagPolicyOutput, error) MockUntagPolicy func(ctx context.Context, input *iam.UntagPolicyInput, opts []func(*iam.Options)) (*iam.UntagPolicyOutput, error) }
MockPolicyClient is a type that implements all the methods for PolicyClient interface
func (*MockPolicyClient) CreatePolicy ¶
func (m *MockPolicyClient) CreatePolicy(ctx context.Context, input *iam.CreatePolicyInput, opts ...func(*iam.Options)) (*iam.CreatePolicyOutput, error)
CreatePolicy mocks CreatePolicy method
func (*MockPolicyClient) CreatePolicyVersion ¶
func (m *MockPolicyClient) CreatePolicyVersion(ctx context.Context, input *iam.CreatePolicyVersionInput, opts ...func(*iam.Options)) (*iam.CreatePolicyVersionOutput, error)
CreatePolicyVersion mocks CreatePolicyVersion method
func (*MockPolicyClient) DeletePolicy ¶
func (m *MockPolicyClient) DeletePolicy(ctx context.Context, input *iam.DeletePolicyInput, opts ...func(*iam.Options)) (*iam.DeletePolicyOutput, error)
DeletePolicy mocks DeletePolicy method
func (*MockPolicyClient) DeletePolicyVersion ¶
func (m *MockPolicyClient) DeletePolicyVersion(ctx context.Context, input *iam.DeletePolicyVersionInput, opts ...func(*iam.Options)) (*iam.DeletePolicyVersionOutput, error)
DeletePolicyVersion mocks DeletePolicyVersion method
func (*MockPolicyClient) GetPolicy ¶
func (m *MockPolicyClient) GetPolicy(ctx context.Context, input *iam.GetPolicyInput, opts ...func(*iam.Options)) (*iam.GetPolicyOutput, error)
GetPolicy mocks GetPolicy method
func (*MockPolicyClient) GetPolicyVersion ¶
func (m *MockPolicyClient) GetPolicyVersion(ctx context.Context, input *iam.GetPolicyVersionInput, opts ...func(*iam.Options)) (*iam.GetPolicyVersionOutput, error)
GetPolicyVersion mocks GetPolicyVersion method
func (*MockPolicyClient) ListPolicyVersions ¶
func (m *MockPolicyClient) ListPolicyVersions(ctx context.Context, input *iam.ListPolicyVersionsInput, opts ...func(*iam.Options)) (*iam.ListPolicyVersionsOutput, error)
ListPolicyVersions mocks ListPolicyVersions method
func (*MockPolicyClient) TagPolicy ¶
func (m *MockPolicyClient) TagPolicy(ctx context.Context, input *iam.TagPolicyInput, opts ...func(*iam.Options)) (*iam.TagPolicyOutput, error)
TagPolicy mocks TagPolicy method
func (*MockPolicyClient) UntagPolicy ¶
func (m *MockPolicyClient) UntagPolicy(ctx context.Context, input *iam.UntagPolicyInput, opts ...func(*iam.Options)) (*iam.UntagPolicyOutput, error)
UntagPolicy mocks UnTagPolicy method
type MockPolicyInput ¶
type MockPolicyInput struct { CreatePolicyInput *iam.CreatePolicyInput TagPolicyInput *iam.TagPolicyInput UntagPolicyInput *iam.UntagPolicyInput }
MockPolicyInput holds the input structures for future inspections
type MockRoleClient ¶
type MockRoleClient struct { MockGetRole func(ctx context.Context, input *iam.GetRoleInput, opts []func(*iam.Options)) (*iam.GetRoleOutput, error) MockCreateRole func(ctx context.Context, input *iam.CreateRoleInput, opts []func(*iam.Options)) (*iam.CreateRoleOutput, error) MockDeleteRole func(ctx context.Context, input *iam.DeleteRoleInput, opts []func(*iam.Options)) (*iam.DeleteRoleOutput, error) MockUpdateRole func(ctx context.Context, input *iam.UpdateRoleInput, opts []func(*iam.Options)) (*iam.UpdateRoleOutput, error) MockUpdateAssumeRolePolicy func(ctx context.Context, input *iam.UpdateAssumeRolePolicyInput, opts []func(*iam.Options)) (*iam.UpdateAssumeRolePolicyOutput, error) MockTagRole func(ctx context.Context, input *iam.TagRoleInput, opts []func(*iam.Options)) (*iam.TagRoleOutput, error) MockUntagRole func(ctx context.Context, input *iam.UntagRoleInput, opts []func(*iam.Options)) (*iam.UntagRoleOutput, error) }
MockRoleClient is a type that implements all the methods for RoleClient interface
func (*MockRoleClient) CreateRole ¶
func (m *MockRoleClient) CreateRole(ctx context.Context, input *iam.CreateRoleInput, opts ...func(*iam.Options)) (*iam.CreateRoleOutput, error)
CreateRole mocks CreateRole method
func (*MockRoleClient) DeleteRole ¶
func (m *MockRoleClient) DeleteRole(ctx context.Context, input *iam.DeleteRoleInput, opts ...func(*iam.Options)) (*iam.DeleteRoleOutput, error)
DeleteRole mocks DeleteRole method
func (*MockRoleClient) GetRole ¶
func (m *MockRoleClient) GetRole(ctx context.Context, input *iam.GetRoleInput, opts ...func(*iam.Options)) (*iam.GetRoleOutput, error)
GetRole mocks GetRole method
func (*MockRoleClient) TagRole ¶
func (m *MockRoleClient) TagRole(ctx context.Context, input *iam.TagRoleInput, opts ...func(*iam.Options)) (*iam.TagRoleOutput, error)
TagRole mocks TagRole method
func (*MockRoleClient) UntagRole ¶
func (m *MockRoleClient) UntagRole(ctx context.Context, input *iam.UntagRoleInput, opts ...func(*iam.Options)) (*iam.UntagRoleOutput, error)
UntagRole mocks UntagRole method
func (*MockRoleClient) UpdateAssumeRolePolicy ¶
func (m *MockRoleClient) UpdateAssumeRolePolicy(ctx context.Context, input *iam.UpdateAssumeRolePolicyInput, opts ...func(*iam.Options)) (*iam.UpdateAssumeRolePolicyOutput, error)
UpdateAssumeRolePolicy mocks UpdateAssumeRolePolicy method
func (*MockRoleClient) UpdateRole ¶
func (m *MockRoleClient) UpdateRole(ctx context.Context, input *iam.UpdateRoleInput, opts ...func(*iam.Options)) (*iam.UpdateRoleOutput, error)
UpdateRole mocks UpdateRole method
type MockRolePolicyAttachmentClient ¶
type MockRolePolicyAttachmentClient struct { MockAttachRolePolicy func(ctx context.Context, input *iam.AttachRolePolicyInput, opts []func(*iam.Options)) (*iam.AttachRolePolicyOutput, error) MockListAttachedRolePolicies func(ctx context.Context, input *iam.ListAttachedRolePoliciesInput, opts []func(*iam.Options)) (*iam.ListAttachedRolePoliciesOutput, error) MockDetachRolePolicy func(ctx context.Context, input *iam.DetachRolePolicyInput, opts []func(*iam.Options)) (*iam.DetachRolePolicyOutput, error) }
MockRolePolicyAttachmentClient is a type that implements all the methods for RolePolicyAttachmentClient interface
func (*MockRolePolicyAttachmentClient) AttachRolePolicy ¶
func (m *MockRolePolicyAttachmentClient) AttachRolePolicy(ctx context.Context, input *iam.AttachRolePolicyInput, opts ...func(*iam.Options)) (*iam.AttachRolePolicyOutput, error)
AttachRolePolicy mocks AttachRolePolicy method
func (*MockRolePolicyAttachmentClient) DetachRolePolicy ¶
func (m *MockRolePolicyAttachmentClient) DetachRolePolicy(ctx context.Context, input *iam.DetachRolePolicyInput, opts ...func(*iam.Options)) (*iam.DetachRolePolicyOutput, error)
DetachRolePolicy mocks DetachRolePolicy method
func (*MockRolePolicyAttachmentClient) ListAttachedRolePolicies ¶
func (m *MockRolePolicyAttachmentClient) ListAttachedRolePolicies(ctx context.Context, input *iam.ListAttachedRolePoliciesInput, opts ...func(*iam.Options)) (*iam.ListAttachedRolePoliciesOutput, error)
ListAttachedRolePolicies mocks ListAttachedRolePolicies method
type MockSTSClient ¶
type MockSTSClient struct {
MockGetCallerIdentity func(ctx context.Context, input *sts.GetCallerIdentityInput, opts []func(*sts.Options)) (*sts.GetCallerIdentityOutput, error)
}
MockSTSClient mock sts client
func (*MockSTSClient) GetCallerIdentity ¶
func (c *MockSTSClient) GetCallerIdentity(ctx context.Context, input *sts.GetCallerIdentityInput, opts ...func(*sts.Options)) (*sts.GetCallerIdentityOutput, error)
GetCallerIdentity calls the underlying MockGetCallerIdentity method.
type MockUserClient ¶
type MockUserClient struct { MockUserInput MockUserInput MockGetUser func(ctx context.Context, input *iam.GetUserInput, opts []func(*iam.Options)) (*iam.GetUserOutput, error) MockCreateUser func(ctx context.Context, input *iam.CreateUserInput, opts []func(*iam.Options)) (*iam.CreateUserOutput, error) MockDeleteUser func(ctx context.Context, input *iam.DeleteUserInput, opts []func(*iam.Options)) (*iam.DeleteUserOutput, error) MockUpdateUser func(ctx context.Context, input *iam.UpdateUserInput, opts []func(*iam.Options)) (*iam.UpdateUserOutput, error) MockTagUser func(ctx context.Context, input *iam.TagUserInput, opt []func(*iam.Options)) (*iam.TagUserOutput, error) MockUntagUser func(ctx context.Context, input *iam.UntagUserInput, opts []func(*iam.Options)) (*iam.UntagUserOutput, error) }
MockUserClient is a type that implements all the methods for RoleClient interface
func (*MockUserClient) CreateUser ¶
func (m *MockUserClient) CreateUser(ctx context.Context, input *iam.CreateUserInput, opts ...func(*iam.Options)) (*iam.CreateUserOutput, error)
CreateUser mocks CreateUser method
func (*MockUserClient) DeleteUser ¶
func (m *MockUserClient) DeleteUser(ctx context.Context, input *iam.DeleteUserInput, opts ...func(*iam.Options)) (*iam.DeleteUserOutput, error)
DeleteUser mocks DeleteUser method
func (*MockUserClient) GetUser ¶
func (m *MockUserClient) GetUser(ctx context.Context, input *iam.GetUserInput, opts ...func(*iam.Options)) (*iam.GetUserOutput, error)
GetUser mocks GetUser method
func (*MockUserClient) TagUser ¶
func (m *MockUserClient) TagUser(ctx context.Context, input *iam.TagUserInput, opts ...func(*iam.Options)) (*iam.TagUserOutput, error)
TagUser mocks TagUser method
func (*MockUserClient) UntagUser ¶
func (m *MockUserClient) UntagUser(ctx context.Context, input *iam.UntagUserInput, opts ...func(*iam.Options)) (*iam.UntagUserOutput, error)
UntagUser mocks UntagUser method
func (*MockUserClient) UpdateUser ¶
func (m *MockUserClient) UpdateUser(ctx context.Context, input *iam.UpdateUserInput, opts ...func(*iam.Options)) (*iam.UpdateUserOutput, error)
UpdateUser mocks UpdateUser method
type MockUserInput ¶
type MockUserInput struct { TagUserInput *iam.TagUserInput UntagUserInput *iam.UntagUserInput }
MockUserInput holds the input structures for test inspections
type MockUserPolicyAttachmentClient ¶
type MockUserPolicyAttachmentClient struct { MockAttachUserPolicy func(ctx context.Context, input *iam.AttachUserPolicyInput, opts []func(*iam.Options)) (*iam.AttachUserPolicyOutput, error) MockListAttachedUserPolicies func(ctx context.Context, input *iam.ListAttachedUserPoliciesInput, opts []func(*iam.Options)) (*iam.ListAttachedUserPoliciesOutput, error) MockDetachUserPolicy func(ctx context.Context, input *iam.DetachUserPolicyInput, opts []func(*iam.Options)) (*iam.DetachUserPolicyOutput, error) }
MockUserPolicyAttachmentClient is a type that implements all the methods for UserPolicyAttachmentClient interface
func (*MockUserPolicyAttachmentClient) AttachUserPolicy ¶
func (m *MockUserPolicyAttachmentClient) AttachUserPolicy(ctx context.Context, input *iam.AttachUserPolicyInput, opts ...func(*iam.Options)) (*iam.AttachUserPolicyOutput, error)
AttachUserPolicy mocks AttachUserPolicy method
func (*MockUserPolicyAttachmentClient) DetachUserPolicy ¶
func (m *MockUserPolicyAttachmentClient) DetachUserPolicy(ctx context.Context, input *iam.DetachUserPolicyInput, opts ...func(*iam.Options)) (*iam.DetachUserPolicyOutput, error)
DetachUserPolicy mocks DetachUserPolicy method
func (*MockUserPolicyAttachmentClient) ListAttachedUserPolicies ¶
func (m *MockUserPolicyAttachmentClient) ListAttachedUserPolicies(ctx context.Context, input *iam.ListAttachedUserPoliciesInput, opts ...func(*iam.Options)) (*iam.ListAttachedUserPoliciesOutput, error)
ListAttachedUserPolicies mocks ListAttachedUserPolicies method