...
AWS SDK for Go API Reference
import "github.com/aws/aws-sdk-go/service/iam"
Overview
Constants
Examples

Overview ▾

Package iam provides the client and types for making API requests to AWS Identity and Access Management.

AWS Identity and Access Management (IAM) is a web service that you can use to manage users and user permissions under your AWS account. This guide provides descriptions of IAM actions that you can call programmatically. For general information about IAM, see AWS Identity and Access Management (IAM) (http://aws.amazon.com/iam/). For the user guide for IAM, see Using IAM (http://docs.aws.amazon.com/IAM/latest/UserGuide/).

AWS provides SDKs that consist of libraries and sample code for various programming languages and platforms (Java, Ruby, .NET, iOS, Android, etc.). The SDKs provide a convenient way to create programmatic access to IAM and AWS. For example, the SDKs take care of tasks such as cryptographically signing requests (see below), managing errors, and retrying requests automatically. For information about the AWS SDKs, including how to download and install them, see the Tools for Amazon Web Services (http://aws.amazon.com/tools/) page.

We recommend that you use the AWS SDKs to make programmatic API calls to IAM. However, you can also use the IAM Query API to make direct calls to the IAM web service. To learn more about the IAM Query API, see Making Query Requests (http://docs.aws.amazon.com/IAM/latest/UserGuide/IAM_UsingQueryAPI.html) in the Using IAM guide. IAM supports GET and POST requests for all actions. That is, the API does not require you to use GET for some actions and POST for others. However, GET requests are subject to the limitation size of a URL. Therefore, for operations that require larger sizes, use a POST request.

Signing Requests

Requests must be signed using an access key ID and a secret access key. We strongly recommend that you do not use your AWS account access key ID and secret access key for everyday work with IAM. You can use the access key ID and secret access key for an IAM user or you can use the AWS Security Token Service to generate temporary security credentials and use those to sign requests.

To sign requests, we recommend that you use Signature Version 4 (http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html). If you have an existing application that uses Signature Version 2, you do not have to update it to use Signature Version 4. However, some operations now require Signature Version 4. The documentation for operations that require version 4 indicate this requirement.

Additional Resources

For more information, see the following:

* AWS Security Credentials (http://docs.aws.amazon.com/general/latest/gr/aws-security-credentials.html).
This topic provides general information about the types of credentials
used for accessing AWS.

* IAM Best Practices (http://docs.aws.amazon.com/IAM/latest/UserGuide/IAMBestPractices.html).
This topic presents a list of suggestions for using the IAM service to
help secure your AWS resources.

* Signing AWS API Requests (http://docs.aws.amazon.com/general/latest/gr/signing_aws_api_requests.html).
This set of topics walk you through the process of signing a request using
an access key ID and secret access key.

See https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08 for more information on this service.

See iam package documentation for more information. https://docs.aws.amazon.com/sdk-for-go/api/service/iam/

Using the Client

To AWS Identity and Access Management with the SDK use the New function to create a new service client. With that client you can make API requests to the service. These clients are safe to use concurrently.

See the SDK's documentation for more information on how to use the SDK. https://docs.aws.amazon.com/sdk-for-go/api/

See aws.Config documentation for more information on configuring SDK clients. https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config

See the AWS Identity and Access Management client IAM for more information on creating client for this service. https://docs.aws.amazon.com/sdk-for-go/api/service/iam/#New

The stub package, iamiface, can be used to provide alternative implementations of service clients, such as mocking the client for testing.

Operations ▾

func New(p client.ConfigProvider, cfgs ...*aws.Config) *IAM
    AddClientIDToOpenIDConnectProvider
    AddClientIDToOpenIDConnectProviderRequest
    AddClientIDToOpenIDConnectProviderWithContext
    AddRoleToInstanceProfile
    AddRoleToInstanceProfileRequest
    AddRoleToInstanceProfileWithContext
    AddUserToGroup
    AddUserToGroupRequest
    AddUserToGroupWithContext
    AttachGroupPolicy
    AttachGroupPolicyRequest
    AttachGroupPolicyWithContext
    AttachRolePolicy
    AttachRolePolicyRequest
    AttachRolePolicyWithContext
    AttachUserPolicy
    AttachUserPolicyRequest
    AttachUserPolicyWithContext
    ChangePassword
    ChangePasswordRequest
    ChangePasswordWithContext
    CreateAccessKey
    CreateAccessKeyRequest
    CreateAccessKeyWithContext
    CreateAccountAlias
    CreateAccountAliasRequest
    CreateAccountAliasWithContext
    CreateGroup
    CreateGroupRequest
    CreateGroupWithContext
    CreateInstanceProfile
    CreateInstanceProfileRequest
    CreateInstanceProfileWithContext
    CreateLoginProfile
    CreateLoginProfileRequest
    CreateLoginProfileWithContext
    CreateOpenIDConnectProvider
    CreateOpenIDConnectProviderRequest
    CreateOpenIDConnectProviderWithContext
    CreatePolicy
    CreatePolicyRequest
    CreatePolicyVersion
    CreatePolicyVersionRequest
    CreatePolicyVersionWithContext
    CreatePolicyWithContext
    CreateRole
    CreateRoleRequest
    CreateRoleWithContext
    CreateSAMLProvider
    CreateSAMLProviderRequest
    CreateSAMLProviderWithContext
    CreateServiceLinkedRole
    CreateServiceLinkedRoleRequest
    CreateServiceLinkedRoleWithContext
    CreateServiceSpecificCredential
    CreateServiceSpecificCredentialRequest
    CreateServiceSpecificCredentialWithContext
    CreateUser
    CreateUserRequest
    CreateUserWithContext
    CreateVirtualMFADevice
    CreateVirtualMFADeviceRequest
    CreateVirtualMFADeviceWithContext
    DeactivateMFADevice
    DeactivateMFADeviceRequest
    DeactivateMFADeviceWithContext
    DeleteAccessKey
    DeleteAccessKeyRequest
    DeleteAccessKeyWithContext
    DeleteAccountAlias
    DeleteAccountAliasRequest
    DeleteAccountAliasWithContext
    DeleteAccountPasswordPolicy
    DeleteAccountPasswordPolicyRequest
    DeleteAccountPasswordPolicyWithContext
    DeleteGroup
    DeleteGroupPolicy
    DeleteGroupPolicyRequest
    DeleteGroupPolicyWithContext
    DeleteGroupRequest
    DeleteGroupWithContext
    DeleteInstanceProfile
    DeleteInstanceProfileRequest
    DeleteInstanceProfileWithContext
    DeleteLoginProfile
    DeleteLoginProfileRequest
    DeleteLoginProfileWithContext
    DeleteOpenIDConnectProvider
    DeleteOpenIDConnectProviderRequest
    DeleteOpenIDConnectProviderWithContext
    DeletePolicy
    DeletePolicyRequest
    DeletePolicyVersion
    DeletePolicyVersionRequest
    DeletePolicyVersionWithContext
    DeletePolicyWithContext
    DeleteRole
    DeleteRolePolicy
    DeleteRolePolicyRequest
    DeleteRolePolicyWithContext
    DeleteRoleRequest
    DeleteRoleWithContext
    DeleteSAMLProvider
    DeleteSAMLProviderRequest
    DeleteSAMLProviderWithContext
    DeleteSSHPublicKey
    DeleteSSHPublicKeyRequest
    DeleteSSHPublicKeyWithContext
    DeleteServerCertificate
    DeleteServerCertificateRequest
    DeleteServerCertificateWithContext
    DeleteServiceLinkedRole
    DeleteServiceLinkedRoleRequest
    DeleteServiceLinkedRoleWithContext
    DeleteServiceSpecificCredential
    DeleteServiceSpecificCredentialRequest
    DeleteServiceSpecificCredentialWithContext
    DeleteSigningCertificate
    DeleteSigningCertificateRequest
    DeleteSigningCertificateWithContext
    DeleteUser
    DeleteUserPolicy
    DeleteUserPolicyRequest
    DeleteUserPolicyWithContext
    DeleteUserRequest
    DeleteUserWithContext
    DeleteVirtualMFADevice
    DeleteVirtualMFADeviceRequest
    DeleteVirtualMFADeviceWithContext
    DetachGroupPolicy
    DetachGroupPolicyRequest
    DetachGroupPolicyWithContext
    DetachRolePolicy
    DetachRolePolicyRequest
    DetachRolePolicyWithContext
    DetachUserPolicy
    DetachUserPolicyRequest
    DetachUserPolicyWithContext
    EnableMFADevice
    EnableMFADeviceRequest
    EnableMFADeviceWithContext
    GenerateCredentialReport
    GenerateCredentialReportRequest
    GenerateCredentialReportWithContext
    GetAccessKeyLastUsed
    GetAccessKeyLastUsedRequest
    GetAccessKeyLastUsedWithContext
    GetAccountAuthorizationDetails
    GetAccountAuthorizationDetailsPagesWithContext
    GetAccountAuthorizationDetailsRequest
    GetAccountAuthorizationDetailsWithContext
    GetAccountPasswordPolicy
    GetAccountPasswordPolicyRequest
    GetAccountPasswordPolicyWithContext
    GetAccountSummary
    GetAccountSummaryRequest
    GetAccountSummaryWithContext
    GetContextKeysForCustomPolicy
    GetContextKeysForCustomPolicyRequest
    GetContextKeysForCustomPolicyWithContext
    GetContextKeysForPrincipalPolicy
    GetContextKeysForPrincipalPolicyRequest
    GetContextKeysForPrincipalPolicyWithContext
    GetCredentialReport
    GetCredentialReportRequest
    GetCredentialReportWithContext
    GetGroup
    GetGroupPagesWithContext
    GetGroupPolicy
    GetGroupPolicyRequest
    GetGroupPolicyWithContext
    GetGroupRequest
    GetGroupWithContext
    GetInstanceProfile
    GetInstanceProfileRequest
    GetInstanceProfileWithContext
    GetLoginProfile
    GetLoginProfileRequest
    GetLoginProfileWithContext
    GetOpenIDConnectProvider
    GetOpenIDConnectProviderRequest
    GetOpenIDConnectProviderWithContext
    GetPolicy
    GetPolicyRequest
    GetPolicyVersion
    GetPolicyVersionRequest
    GetPolicyVersionWithContext
    GetPolicyWithContext
    GetRole
    GetRolePolicy
    GetRolePolicyRequest
    GetRolePolicyWithContext
    GetRoleRequest
    GetRoleWithContext
    GetSAMLProvider
    GetSAMLProviderRequest
    GetSAMLProviderWithContext
    GetSSHPublicKey
    GetSSHPublicKeyRequest
    GetSSHPublicKeyWithContext
    GetServerCertificate
    GetServerCertificateRequest
    GetServerCertificateWithContext
    GetServiceLinkedRoleDeletionStatus
    GetServiceLinkedRoleDeletionStatusRequest
    GetServiceLinkedRoleDeletionStatusWithContext
    GetUser
    GetUserPolicy
    GetUserPolicyRequest
    GetUserPolicyWithContext
    GetUserRequest
    GetUserWithContext
    ListAccessKeys
    ListAccessKeysPagesWithContext
    ListAccessKeysRequest
    ListAccessKeysWithContext
    ListAccountAliases
    ListAccountAliasesPagesWithContext
    ListAccountAliasesRequest
    ListAccountAliasesWithContext
    ListAttachedGroupPolicies
    ListAttachedGroupPoliciesPagesWithContext
    ListAttachedGroupPoliciesRequest
    ListAttachedGroupPoliciesWithContext
    ListAttachedRolePolicies
    ListAttachedRolePoliciesPagesWithContext
    ListAttachedRolePoliciesRequest
    ListAttachedRolePoliciesWithContext
    ListAttachedUserPolicies
    ListAttachedUserPoliciesPagesWithContext
    ListAttachedUserPoliciesRequest
    ListAttachedUserPoliciesWithContext
    ListEntitiesForPolicy
    ListEntitiesForPolicyPagesWithContext
    ListEntitiesForPolicyRequest
    ListEntitiesForPolicyWithContext
    ListGroupPolicies
    ListGroupPoliciesPagesWithContext
    ListGroupPoliciesRequest
    ListGroupPoliciesWithContext
    ListGroups
    ListGroupsForUser
    ListGroupsForUserPagesWithContext
    ListGroupsForUserRequest
    ListGroupsForUserWithContext
    ListGroupsPagesWithContext
    ListGroupsRequest
    ListGroupsWithContext
    ListInstanceProfiles
    ListInstanceProfilesForRole
    ListInstanceProfilesForRolePagesWithContext
    ListInstanceProfilesForRoleRequest
    ListInstanceProfilesForRoleWithContext
    ListInstanceProfilesPagesWithContext
    ListInstanceProfilesRequest
    ListInstanceProfilesWithContext
    ListMFADevices
    ListMFADevicesPagesWithContext
    ListMFADevicesRequest
    ListMFADevicesWithContext
    ListOpenIDConnectProviders
    ListOpenIDConnectProvidersRequest
    ListOpenIDConnectProvidersWithContext
    ListPolicies
    ListPoliciesPagesWithContext
    ListPoliciesRequest
    ListPoliciesWithContext
    ListPolicyVersions
    ListPolicyVersionsPagesWithContext
    ListPolicyVersionsRequest
    ListPolicyVersionsWithContext
    ListRolePolicies
    ListRolePoliciesPagesWithContext
    ListRolePoliciesRequest
    ListRolePoliciesWithContext
    ListRoles
    ListRolesPagesWithContext
    ListRolesRequest
    ListRolesWithContext
    ListSAMLProviders
    ListSAMLProvidersRequest
    ListSAMLProvidersWithContext
    ListSSHPublicKeys
    ListSSHPublicKeysPagesWithContext
    ListSSHPublicKeysRequest
    ListSSHPublicKeysWithContext
    ListServerCertificates
    ListServerCertificatesPagesWithContext
    ListServerCertificatesRequest
    ListServerCertificatesWithContext
    ListServiceSpecificCredentials
    ListServiceSpecificCredentialsRequest
    ListServiceSpecificCredentialsWithContext
    ListSigningCertificates
    ListSigningCertificatesPagesWithContext
    ListSigningCertificatesRequest
    ListSigningCertificatesWithContext
    ListUserPolicies
    ListUserPoliciesPagesWithContext
    ListUserPoliciesRequest
    ListUserPoliciesWithContext
    ListUsers
    ListUsersPagesWithContext
    ListUsersRequest
    ListUsersWithContext
    ListVirtualMFADevices
    ListVirtualMFADevicesPagesWithContext
    ListVirtualMFADevicesRequest
    ListVirtualMFADevicesWithContext
    PutGroupPolicy
    PutGroupPolicyRequest
    PutGroupPolicyWithContext
    PutRolePolicy
    PutRolePolicyRequest
    PutRolePolicyWithContext
    PutUserPolicy
    PutUserPolicyRequest
    PutUserPolicyWithContext
    RemoveClientIDFromOpenIDConnectProvider
    RemoveClientIDFromOpenIDConnectProviderRequest
    RemoveClientIDFromOpenIDConnectProviderWithContext
    RemoveRoleFromInstanceProfile
    RemoveRoleFromInstanceProfileRequest
    RemoveRoleFromInstanceProfileWithContext
    RemoveUserFromGroup
    RemoveUserFromGroupRequest
    RemoveUserFromGroupWithContext
    ResetServiceSpecificCredential
    ResetServiceSpecificCredentialRequest
    ResetServiceSpecificCredentialWithContext
    ResyncMFADevice
    ResyncMFADeviceRequest
    ResyncMFADeviceWithContext
    SimulateCustomPolicy
    SimulateCustomPolicyPagesWithContext
    SimulateCustomPolicyRequest
    SimulateCustomPolicyWithContext
    SimulatePrincipalPolicy
    SimulatePrincipalPolicyPagesWithContext
    SimulatePrincipalPolicyRequest
    SimulatePrincipalPolicyWithContext
    UpdateAccessKey
    UpdateAccessKeyRequest
    UpdateAccessKeyWithContext
    UpdateAccountPasswordPolicy
    UpdateAccountPasswordPolicyRequest
    UpdateAccountPasswordPolicyWithContext
    UpdateAssumeRolePolicy
    UpdateAssumeRolePolicyRequest
    UpdateAssumeRolePolicyWithContext
    UpdateGroup
    UpdateGroupRequest
    UpdateGroupWithContext
    UpdateLoginProfile
    UpdateLoginProfileRequest
    UpdateLoginProfileWithContext
    UpdateOpenIDConnectProviderThumbprint
    UpdateOpenIDConnectProviderThumbprintRequest
    UpdateOpenIDConnectProviderThumbprintWithContext
    UpdateRoleDescription
    UpdateRoleDescriptionRequest
    UpdateRoleDescriptionWithContext
    UpdateSAMLProvider
    UpdateSAMLProviderRequest
    UpdateSAMLProviderWithContext
    UpdateSSHPublicKey
    UpdateSSHPublicKeyRequest
    UpdateSSHPublicKeyWithContext
    UpdateServerCertificate
    UpdateServerCertificateRequest
    UpdateServerCertificateWithContext
    UpdateServiceSpecificCredential
    UpdateServiceSpecificCredentialRequest
    UpdateServiceSpecificCredentialWithContext
    UpdateSigningCertificate
    UpdateSigningCertificateRequest
    UpdateSigningCertificateWithContext
    UpdateUser
    UpdateUserRequest
    UpdateUserWithContext
    UploadSSHPublicKey
    UploadSSHPublicKeyRequest
    UploadSSHPublicKeyWithContext
    UploadServerCertificate
    UploadServerCertificateRequest
    UploadServerCertificateWithContext
    UploadSigningCertificate
    UploadSigningCertificateRequest
    UploadSigningCertificateWithContext
    WaitUntilInstanceProfileExists
    WaitUntilInstanceProfileExistsWithContext
    WaitUntilUserExists
    WaitUntilUserExistsWithContext

Paginators ▾

func (c *IAM) GetAccountAuthorizationDetailsPages(input *GetAccountAuthorizationDetailsInput, fn func(*GetAccountAuthorizationDetailsOutput, bool) bool) error
func (c *IAM) GetGroupPages(input *GetGroupInput, fn func(*GetGroupOutput, bool) bool) error
func (c *IAM) ListAccessKeysPages(input *ListAccessKeysInput, fn func(*ListAccessKeysOutput, bool) bool) error
func (c *IAM) ListAccountAliasesPages(input *ListAccountAliasesInput, fn func(*ListAccountAliasesOutput, bool) bool) error
func (c *IAM) ListAttachedGroupPoliciesPages(input *ListAttachedGroupPoliciesInput, fn func(*ListAttachedGroupPoliciesOutput, bool) bool) error
func (c *IAM) ListAttachedRolePoliciesPages(input *ListAttachedRolePoliciesInput, fn func(*ListAttachedRolePoliciesOutput, bool) bool) error
func (c *IAM) ListAttachedUserPoliciesPages(input *ListAttachedUserPoliciesInput, fn func(*ListAttachedUserPoliciesOutput, bool) bool) error
func (c *IAM) ListEntitiesForPolicyPages(input *ListEntitiesForPolicyInput, fn func(*ListEntitiesForPolicyOutput, bool) bool) error
func (c *IAM) ListGroupPoliciesPages(input *ListGroupPoliciesInput, fn func(*ListGroupPoliciesOutput, bool) bool) error
func (c *IAM) ListGroupsForUserPages(input *ListGroupsForUserInput, fn func(*ListGroupsForUserOutput, bool) bool) error
func (c *IAM) ListGroupsPages(input *ListGroupsInput, fn func(*ListGroupsOutput, bool) bool) error
func (c *IAM) ListInstanceProfilesForRolePages(input *ListInstanceProfilesForRoleInput, fn func(*ListInstanceProfilesForRoleOutput, bool) bool) error
func (c *IAM) ListInstanceProfilesPages(input *ListInstanceProfilesInput, fn func(*ListInstanceProfilesOutput, bool) bool) error
func (c *IAM) ListMFADevicesPages(input *ListMFADevicesInput, fn func(*ListMFADevicesOutput, bool) bool) error
func (c *IAM) ListPoliciesPages(input *ListPoliciesInput, fn func(*ListPoliciesOutput, bool) bool) error
func (c *IAM) ListPolicyVersionsPages(input *ListPolicyVersionsInput, fn func(*ListPolicyVersionsOutput, bool) bool) error
func (c *IAM) ListRolePoliciesPages(input *ListRolePoliciesInput, fn func(*ListRolePoliciesOutput, bool) bool) error
func (c *IAM) ListRolesPages(input *ListRolesInput, fn func(*ListRolesOutput, bool) bool) error
func (c *IAM) ListSSHPublicKeysPages(input *ListSSHPublicKeysInput, fn func(*ListSSHPublicKeysOutput, bool) bool) error
func (c *IAM) ListServerCertificatesPages(input *ListServerCertificatesInput, fn func(*ListServerCertificatesOutput, bool) bool) error
func (c *IAM) ListSigningCertificatesPages(input *ListSigningCertificatesInput, fn func(*ListSigningCertificatesOutput, bool) bool) error
func (c *IAM) ListUserPoliciesPages(input *ListUserPoliciesInput, fn func(*ListUserPoliciesOutput, bool) bool) error
func (c *IAM) ListUsersPages(input *ListUsersInput, fn func(*ListUsersOutput, bool) bool) error
func (c *IAM) ListVirtualMFADevicesPages(input *ListVirtualMFADevicesInput, fn func(*ListVirtualMFADevicesOutput, bool) bool) error
func (c *IAM) SimulateCustomPolicyPages(input *SimulateCustomPolicyInput, fn func(*SimulatePolicyResponse, bool) bool) error
func (c *IAM) SimulatePrincipalPolicyPages(input *SimulatePrincipalPolicyInput, fn func(*SimulatePolicyResponse, bool) bool) error

Types ▾

type AccessKey
func (s *AccessKey) SetAccessKeyId(v string) *AccessKey
func (s *AccessKey) SetCreateDate(v time.Time) *AccessKey
func (s *AccessKey) SetSecretAccessKey(v string) *AccessKey
func (s *AccessKey) SetStatus(v string) *AccessKey
func (s *AccessKey) SetUserName(v string) *AccessKey
type AccessKeyLastUsed
func (s *AccessKeyLastUsed) SetLastUsedDate(v time.Time) *AccessKeyLastUsed
func (s *AccessKeyLastUsed) SetRegion(v string) *AccessKeyLastUsed
func (s *AccessKeyLastUsed) SetServiceName(v string) *AccessKeyLastUsed
type AccessKeyMetadata
func (s *AccessKeyMetadata) SetAccessKeyId(v string) *AccessKeyMetadata
func (s *AccessKeyMetadata) SetCreateDate(v time.Time) *AccessKeyMetadata
func (s *AccessKeyMetadata) SetStatus(v string) *AccessKeyMetadata
func (s *AccessKeyMetadata) SetUserName(v string) *AccessKeyMetadata
type AddClientIDToOpenIDConnectProviderInput
func (s *AddClientIDToOpenIDConnectProviderInput) SetClientID(v string) *AddClientIDToOpenIDConnectProviderInput
func (s *AddClientIDToOpenIDConnectProviderInput) SetOpenIDConnectProviderArn(v string) *AddClientIDToOpenIDConnectProviderInput
type AddClientIDToOpenIDConnectProviderOutput
type AddRoleToInstanceProfileInput
func (s *AddRoleToInstanceProfileInput) SetInstanceProfileName(v string) *AddRoleToInstanceProfileInput
func (s *AddRoleToInstanceProfileInput) SetRoleName(v string) *AddRoleToInstanceProfileInput
type AddRoleToInstanceProfileOutput
type AddUserToGroupInput
func (s *AddUserToGroupInput) SetGroupName(v string) *AddUserToGroupInput
func (s *AddUserToGroupInput) SetUserName(v string) *AddUserToGroupInput
type AddUserToGroupOutput
type AttachGroupPolicyInput
func (s *AttachGroupPolicyInput) SetGroupName(v string) *AttachGroupPolicyInput
func (s *AttachGroupPolicyInput) SetPolicyArn(v string) *AttachGroupPolicyInput
type AttachGroupPolicyOutput
type AttachRolePolicyInput
func (s *AttachRolePolicyInput) SetPolicyArn(v string) *AttachRolePolicyInput
func (s *AttachRolePolicyInput) SetRoleName(v string) *AttachRolePolicyInput
type AttachRolePolicyOutput
type AttachUserPolicyInput
func (s *AttachUserPolicyInput) SetPolicyArn(v string) *AttachUserPolicyInput
func (s *AttachUserPolicyInput) SetUserName(v string) *AttachUserPolicyInput
type AttachUserPolicyOutput
type AttachedPolicy
func (s *AttachedPolicy) SetPolicyArn(v string) *AttachedPolicy
func (s *AttachedPolicy) SetPolicyName(v string) *AttachedPolicy
type ChangePasswordInput
func (s *ChangePasswordInput) SetNewPassword(v string) *ChangePasswordInput
func (s *ChangePasswordInput) SetOldPassword(v string) *ChangePasswordInput
type ChangePasswordOutput
type ContextEntry
func (s *ContextEntry) SetContextKeyName(v string) *ContextEntry
func (s *ContextEntry) SetContextKeyType(v string) *ContextEntry
func (s *ContextEntry) SetContextKeyValues(v []*string) *ContextEntry
type CreateAccessKeyInput
func (s *CreateAccessKeyInput) SetUserName(v string) *CreateAccessKeyInput
type CreateAccessKeyOutput
func (s *CreateAccessKeyOutput) SetAccessKey(v *AccessKey) *CreateAccessKeyOutput
type CreateAccountAliasInput
func (s *CreateAccountAliasInput) SetAccountAlias(v string) *CreateAccountAliasInput
type CreateAccountAliasOutput
type CreateGroupInput
func (s *CreateGroupInput) SetGroupName(v string) *CreateGroupInput
func (s *CreateGroupInput) SetPath(v string) *CreateGroupInput
type CreateGroupOutput
func (s *CreateGroupOutput) SetGroup(v *Group) *CreateGroupOutput
type CreateInstanceProfileInput
func (s *CreateInstanceProfileInput) SetInstanceProfileName(v string) *CreateInstanceProfileInput
func (s *CreateInstanceProfileInput) SetPath(v string) *CreateInstanceProfileInput
type CreateInstanceProfileOutput
func (s *CreateInstanceProfileOutput) SetInstanceProfile(v *InstanceProfile) *CreateInstanceProfileOutput
type CreateLoginProfileInput
func (s *CreateLoginProfileInput) SetPassword(v string) *CreateLoginProfileInput
func (s *CreateLoginProfileInput) SetPasswordResetRequired(v bool) *CreateLoginProfileInput
func (s *CreateLoginProfileInput) SetUserName(v string) *CreateLoginProfileInput
type CreateLoginProfileOutput
func (s *CreateLoginProfileOutput) SetLoginProfile(v *LoginProfile) *CreateLoginProfileOutput
type CreateOpenIDConnectProviderInput
func (s *CreateOpenIDConnectProviderInput) SetClientIDList(v []*string) *CreateOpenIDConnectProviderInput
func (s *CreateOpenIDConnectProviderInput) SetThumbprintList(v []*string) *CreateOpenIDConnectProviderInput
func (s *CreateOpenIDConnectProviderInput) SetUrl(v string) *CreateOpenIDConnectProviderInput
type CreateOpenIDConnectProviderOutput
func (s *CreateOpenIDConnectProviderOutput) SetOpenIDConnectProviderArn(v string) *CreateOpenIDConnectProviderOutput
type CreatePolicyInput
func (s *CreatePolicyInput) SetDescription(v string) *CreatePolicyInput
func (s *CreatePolicyInput) SetPath(v string) *CreatePolicyInput
func (s *CreatePolicyInput) SetPolicyDocument(v string) *CreatePolicyInput
func (s *CreatePolicyInput) SetPolicyName(v string) *CreatePolicyInput
type CreatePolicyOutput
func (s *CreatePolicyOutput) SetPolicy(v *Policy) *CreatePolicyOutput
type CreatePolicyVersionInput
func (s *CreatePolicyVersionInput) SetPolicyArn(v string) *CreatePolicyVersionInput
func (s *CreatePolicyVersionInput) SetPolicyDocument(v string) *CreatePolicyVersionInput
func (s *CreatePolicyVersionInput) SetSetAsDefault(v bool) *CreatePolicyVersionInput
type CreatePolicyVersionOutput
func (s *CreatePolicyVersionOutput) SetPolicyVersion(v *PolicyVersion) *CreatePolicyVersionOutput
type CreateRoleInput
func (s *CreateRoleInput) SetAssumeRolePolicyDocument(v string) *CreateRoleInput
func (s *CreateRoleInput) SetDescription(v string) *CreateRoleInput
func (s *CreateRoleInput) SetPath(v string) *CreateRoleInput
func (s *CreateRoleInput) SetRoleName(v string) *CreateRoleInput
type CreateRoleOutput
func (s *CreateRoleOutput) SetRole(v *Role) *CreateRoleOutput
type CreateSAMLProviderInput
func (s *CreateSAMLProviderInput) SetName(v string) *CreateSAMLProviderInput
func (s *CreateSAMLProviderInput) SetSAMLMetadataDocument(v string) *CreateSAMLProviderInput
type CreateSAMLProviderOutput
func (s *CreateSAMLProviderOutput) SetSAMLProviderArn(v string) *CreateSAMLProviderOutput
type CreateServiceLinkedRoleInput
func (s *CreateServiceLinkedRoleInput) SetAWSServiceName(v string) *CreateServiceLinkedRoleInput
func (s *CreateServiceLinkedRoleInput) SetCustomSuffix(v string) *CreateServiceLinkedRoleInput
func (s *CreateServiceLinkedRoleInput) SetDescription(v string) *CreateServiceLinkedRoleInput
type CreateServiceLinkedRoleOutput
func (s *CreateServiceLinkedRoleOutput) SetRole(v *Role) *CreateServiceLinkedRoleOutput
type CreateServiceSpecificCredentialInput
func (s *CreateServiceSpecificCredentialInput) SetServiceName(v string) *CreateServiceSpecificCredentialInput
func (s *CreateServiceSpecificCredentialInput) SetUserName(v string) *CreateServiceSpecificCredentialInput
type CreateServiceSpecificCredentialOutput
func (s *CreateServiceSpecificCredentialOutput) SetServiceSpecificCredential(v *ServiceSpecificCredential) *CreateServiceSpecificCredentialOutput
type CreateUserInput
func (s *CreateUserInput) SetPath(v string) *CreateUserInput
func (s *CreateUserInput) SetUserName(v string) *CreateUserInput
type CreateUserOutput
func (s *CreateUserOutput) SetUser(v *User) *CreateUserOutput
type CreateVirtualMFADeviceInput
func (s *CreateVirtualMFADeviceInput) SetPath(v string) *CreateVirtualMFADeviceInput
func (s *CreateVirtualMFADeviceInput) SetVirtualMFADeviceName(v string) *CreateVirtualMFADeviceInput
type CreateVirtualMFADeviceOutput
func (s *CreateVirtualMFADeviceOutput) SetVirtualMFADevice(v *VirtualMFADevice) *CreateVirtualMFADeviceOutput
type DeactivateMFADeviceInput
func (s *DeactivateMFADeviceInput) SetSerialNumber(v string) *DeactivateMFADeviceInput
func (s *DeactivateMFADeviceInput) SetUserName(v string) *DeactivateMFADeviceInput
type DeactivateMFADeviceOutput
type DeleteAccessKeyInput
func (s *DeleteAccessKeyInput) SetAccessKeyId(v string) *DeleteAccessKeyInput
func (s *DeleteAccessKeyInput) SetUserName(v string) *DeleteAccessKeyInput
type DeleteAccessKeyOutput
type DeleteAccountAliasInput
func (s *DeleteAccountAliasInput) SetAccountAlias(v string) *DeleteAccountAliasInput
type DeleteAccountAliasOutput
type DeleteAccountPasswordPolicyInput
type DeleteAccountPasswordPolicyOutput
type DeleteGroupInput
func (s *DeleteGroupInput) SetGroupName(v string) *DeleteGroupInput
type DeleteGroupOutput
type DeleteGroupPolicyInput
func (s *DeleteGroupPolicyInput) SetGroupName(v string) *DeleteGroupPolicyInput
func (s *DeleteGroupPolicyInput) SetPolicyName(v string) *DeleteGroupPolicyInput
type DeleteGroupPolicyOutput
type DeleteInstanceProfileInput
func (s *DeleteInstanceProfileInput) SetInstanceProfileName(v string) *DeleteInstanceProfileInput
type DeleteInstanceProfileOutput
type DeleteLoginProfileInput
func (s *DeleteLoginProfileInput) SetUserName(v string) *DeleteLoginProfileInput
type DeleteLoginProfileOutput
type DeleteOpenIDConnectProviderInput
func (s *DeleteOpenIDConnectProviderInput) SetOpenIDConnectProviderArn(v string) *DeleteOpenIDConnectProviderInput
type DeleteOpenIDConnectProviderOutput
type DeletePolicyInput
func (s *DeletePolicyInput) SetPolicyArn(v string) *DeletePolicyInput
type DeletePolicyOutput
type DeletePolicyVersionInput
func (s *DeletePolicyVersionInput) SetPolicyArn(v string) *DeletePolicyVersionInput
func (s *DeletePolicyVersionInput) SetVersionId(v string) *DeletePolicyVersionInput
type DeletePolicyVersionOutput
type DeleteRoleInput
func (s *DeleteRoleInput) SetRoleName(v string) *DeleteRoleInput
type DeleteRoleOutput
type DeleteRolePolicyInput
func (s *DeleteRolePolicyInput) SetPolicyName(v string) *DeleteRolePolicyInput
func (s *DeleteRolePolicyInput) SetRoleName(v string) *DeleteRolePolicyInput
type DeleteRolePolicyOutput
type DeleteSAMLProviderInput
func (s *DeleteSAMLProviderInput) SetSAMLProviderArn(v string) *DeleteSAMLProviderInput
type DeleteSAMLProviderOutput
type DeleteSSHPublicKeyInput
func (s *DeleteSSHPublicKeyInput) SetSSHPublicKeyId(v string) *DeleteSSHPublicKeyInput
func (s *DeleteSSHPublicKeyInput) SetUserName(v string) *DeleteSSHPublicKeyInput
type DeleteSSHPublicKeyOutput
type DeleteServerCertificateInput
func (s *DeleteServerCertificateInput) SetServerCertificateName(v string) *DeleteServerCertificateInput
type DeleteServerCertificateOutput
type DeleteServiceLinkedRoleInput
func (s *DeleteServiceLinkedRoleInput) SetRoleName(v string) *DeleteServiceLinkedRoleInput
type DeleteServiceLinkedRoleOutput
func (s *DeleteServiceLinkedRoleOutput) SetDeletionTaskId(v string) *DeleteServiceLinkedRoleOutput
type DeleteServiceSpecificCredentialInput
func (s *DeleteServiceSpecificCredentialInput) SetServiceSpecificCredentialId(v string) *DeleteServiceSpecificCredentialInput
func (s *DeleteServiceSpecificCredentialInput) SetUserName(v string) *DeleteServiceSpecificCredentialInput
type DeleteServiceSpecificCredentialOutput
type DeleteSigningCertificateInput
func (s *DeleteSigningCertificateInput) SetCertificateId(v string) *DeleteSigningCertificateInput
func (s *DeleteSigningCertificateInput) SetUserName(v string) *DeleteSigningCertificateInput
type DeleteSigningCertificateOutput
type DeleteUserInput
func (s *DeleteUserInput) SetUserName(v string) *DeleteUserInput
type DeleteUserOutput
type DeleteUserPolicyInput
func (s *DeleteUserPolicyInput) SetPolicyName(v string) *DeleteUserPolicyInput
func (s *DeleteUserPolicyInput) SetUserName(v string) *DeleteUserPolicyInput
type DeleteUserPolicyOutput
type DeleteVirtualMFADeviceInput
func (s *DeleteVirtualMFADeviceInput) SetSerialNumber(v string) *DeleteVirtualMFADeviceInput
type DeleteVirtualMFADeviceOutput
type DeletionTaskFailureReasonType
func (s *DeletionTaskFailureReasonType) SetReason(v string) *DeletionTaskFailureReasonType
func (s *DeletionTaskFailureReasonType) SetRoleUsageList(v []*RoleUsageType) *DeletionTaskFailureReasonType
type DetachGroupPolicyInput
func (s *DetachGroupPolicyInput) SetGroupName(v string) *DetachGroupPolicyInput
func (s *DetachGroupPolicyInput) SetPolicyArn(v string) *DetachGroupPolicyInput
type DetachGroupPolicyOutput
type DetachRolePolicyInput
func (s *DetachRolePolicyInput) SetPolicyArn(v string) *DetachRolePolicyInput
func (s *DetachRolePolicyInput) SetRoleName(v string) *DetachRolePolicyInput
type DetachRolePolicyOutput
type DetachUserPolicyInput
func (s *DetachUserPolicyInput) SetPolicyArn(v string) *DetachUserPolicyInput
func (s *DetachUserPolicyInput) SetUserName(v string) *DetachUserPolicyInput
type DetachUserPolicyOutput
type EnableMFADeviceInput
func (s *EnableMFADeviceInput) SetAuthenticationCode1(v string) *EnableMFADeviceInput
func (s *EnableMFADeviceInput) SetAuthenticationCode2(v string) *EnableMFADeviceInput
func (s *EnableMFADeviceInput) SetSerialNumber(v string) *EnableMFADeviceInput
func (s *EnableMFADeviceInput) SetUserName(v string) *EnableMFADeviceInput
type EnableMFADeviceOutput
type EvaluationResult
func (s *EvaluationResult) SetEvalActionName(v string) *EvaluationResult
func (s *EvaluationResult) SetEvalDecision(v string) *EvaluationResult
func (s *EvaluationResult) SetEvalDecisionDetails(v map[string]*string) *EvaluationResult
func (s *EvaluationResult) SetEvalResourceName(v string) *EvaluationResult
func (s *EvaluationResult) SetMatchedStatements(v []*Statement) *EvaluationResult
func (s *EvaluationResult) SetMissingContextValues(v []*string) *EvaluationResult
func (s *EvaluationResult) SetOrganizationsDecisionDetail(v *OrganizationsDecisionDetail) *EvaluationResult
func (s *EvaluationResult) SetResourceSpecificResults(v []*ResourceSpecificResult) *EvaluationResult
type GenerateCredentialReportInput
type GenerateCredentialReportOutput
func (s *GenerateCredentialReportOutput) SetDescription(v string) *GenerateCredentialReportOutput
func (s *GenerateCredentialReportOutput) SetState(v string) *GenerateCredentialReportOutput
type GetAccessKeyLastUsedInput
func (s *GetAccessKeyLastUsedInput) SetAccessKeyId(v string) *GetAccessKeyLastUsedInput
type GetAccessKeyLastUsedOutput
func (s *GetAccessKeyLastUsedOutput) SetAccessKeyLastUsed(v *AccessKeyLastUsed) *GetAccessKeyLastUsedOutput
func (s *GetAccessKeyLastUsedOutput) SetUserName(v string) *GetAccessKeyLastUsedOutput
type GetAccountAuthorizationDetailsInput
func (s *GetAccountAuthorizationDetailsInput) SetFilter(v []*string) *GetAccountAuthorizationDetailsInput
func (s *GetAccountAuthorizationDetailsInput) SetMarker(v string) *GetAccountAuthorizationDetailsInput
func (s *GetAccountAuthorizationDetailsInput) SetMaxItems(v int64) *GetAccountAuthorizationDetailsInput
type GetAccountAuthorizationDetailsOutput
func (s *GetAccountAuthorizationDetailsOutput) SetGroupDetailList(v []*GroupDetail) *GetAccountAuthorizationDetailsOutput
func (s *GetAccountAuthorizationDetailsOutput) SetIsTruncated(v bool) *GetAccountAuthorizationDetailsOutput
func (s *GetAccountAuthorizationDetailsOutput) SetMarker(v string) *GetAccountAuthorizationDetailsOutput
func (s *GetAccountAuthorizationDetailsOutput) SetPolicies(v []*ManagedPolicyDetail) *GetAccountAuthorizationDetailsOutput
func (s *GetAccountAuthorizationDetailsOutput) SetRoleDetailList(v []*RoleDetail) *GetAccountAuthorizationDetailsOutput
func (s *GetAccountAuthorizationDetailsOutput) SetUserDetailList(v []*UserDetail) *GetAccountAuthorizationDetailsOutput
type GetAccountPasswordPolicyInput
type GetAccountPasswordPolicyOutput
func (s *GetAccountPasswordPolicyOutput) SetPasswordPolicy(v *PasswordPolicy) *GetAccountPasswordPolicyOutput
type GetAccountSummaryInput
type GetAccountSummaryOutput
func (s *GetAccountSummaryOutput) SetSummaryMap(v map[string]*int64) *GetAccountSummaryOutput
type GetContextKeysForCustomPolicyInput
func (s *GetContextKeysForCustomPolicyInput) SetPolicyInputList(v []*string) *GetContextKeysForCustomPolicyInput
type GetContextKeysForPolicyResponse
func (s *GetContextKeysForPolicyResponse) SetContextKeyNames(v []*string) *GetContextKeysForPolicyResponse
type GetContextKeysForPrincipalPolicyInput
func (s *GetContextKeysForPrincipalPolicyInput) SetPolicyInputList(v []*string) *GetContextKeysForPrincipalPolicyInput
func (s *GetContextKeysForPrincipalPolicyInput) SetPolicySourceArn(v string) *GetContextKeysForPrincipalPolicyInput
type GetCredentialReportInput
type GetCredentialReportOutput
func (s *GetCredentialReportOutput) SetContent(v []byte) *GetCredentialReportOutput
func (s *GetCredentialReportOutput) SetGeneratedTime(v time.Time) *GetCredentialReportOutput
func (s *GetCredentialReportOutput) SetReportFormat(v string) *GetCredentialReportOutput
type GetGroupInput
func (s *GetGroupInput) SetGroupName(v string) *GetGroupInput
func (s *GetGroupInput) SetMarker(v string) *GetGroupInput
func (s *GetGroupInput) SetMaxItems(v int64) *GetGroupInput
type GetGroupOutput
func (s *GetGroupOutput) SetGroup(v *Group) *GetGroupOutput
func (s *GetGroupOutput) SetIsTruncated(v bool) *GetGroupOutput
func (s *GetGroupOutput) SetMarker(v string) *GetGroupOutput
func (s *GetGroupOutput) SetUsers(v []*User) *GetGroupOutput
type GetGroupPolicyInput
func (s *GetGroupPolicyInput) SetGroupName(v string) *GetGroupPolicyInput
func (s *GetGroupPolicyInput) SetPolicyName(v string) *GetGroupPolicyInput
type GetGroupPolicyOutput
func (s *GetGroupPolicyOutput) SetGroupName(v string) *GetGroupPolicyOutput
func (s *GetGroupPolicyOutput) SetPolicyDocument(v string) *GetGroupPolicyOutput
func (s *GetGroupPolicyOutput) SetPolicyName(v string) *GetGroupPolicyOutput
type GetInstanceProfileInput
func (s *GetInstanceProfileInput) SetInstanceProfileName(v string) *GetInstanceProfileInput
type GetInstanceProfileOutput
func (s *GetInstanceProfileOutput) SetInstanceProfile(v *InstanceProfile) *GetInstanceProfileOutput
type GetLoginProfileInput
func (s *GetLoginProfileInput) SetUserName(v string) *GetLoginProfileInput
type GetLoginProfileOutput
func (s *GetLoginProfileOutput) SetLoginProfile(v *LoginProfile) *GetLoginProfileOutput
type GetOpenIDConnectProviderInput
func (s *GetOpenIDConnectProviderInput) SetOpenIDConnectProviderArn(v string) *GetOpenIDConnectProviderInput
type GetOpenIDConnectProviderOutput
func (s *GetOpenIDConnectProviderOutput) SetClientIDList(v []*string) *GetOpenIDConnectProviderOutput
func (s *GetOpenIDConnectProviderOutput) SetCreateDate(v time.Time) *GetOpenIDConnectProviderOutput
func (s *GetOpenIDConnectProviderOutput) SetThumbprintList(v []*string) *GetOpenIDConnectProviderOutput
func (s *GetOpenIDConnectProviderOutput) SetUrl(v string) *GetOpenIDConnectProviderOutput
type GetPolicyInput
func (s *GetPolicyInput) SetPolicyArn(v string) *GetPolicyInput
type GetPolicyOutput
func (s *GetPolicyOutput) SetPolicy(v *Policy) *GetPolicyOutput
type GetPolicyVersionInput
func (s *GetPolicyVersionInput) SetPolicyArn(v string) *GetPolicyVersionInput
func (s *GetPolicyVersionInput) SetVersionId(v string) *GetPolicyVersionInput
type GetPolicyVersionOutput
func (s *GetPolicyVersionOutput) SetPolicyVersion(v *PolicyVersion) *GetPolicyVersionOutput
type GetRoleInput
func (s *GetRoleInput) SetRoleName(v string) *GetRoleInput
type GetRoleOutput
func (s *GetRoleOutput) SetRole(v *Role) *GetRoleOutput
type GetRolePolicyInput
func (s *GetRolePolicyInput) SetPolicyName(v string) *GetRolePolicyInput
func (s *GetRolePolicyInput) SetRoleName(v string) *GetRolePolicyInput
type GetRolePolicyOutput
func (s *GetRolePolicyOutput) SetPolicyDocument(v string) *GetRolePolicyOutput
func (s *GetRolePolicyOutput) SetPolicyName(v string) *GetRolePolicyOutput
func (s *GetRolePolicyOutput) SetRoleName(v string) *GetRolePolicyOutput
type GetSAMLProviderInput
func (s *GetSAMLProviderInput) SetSAMLProviderArn(v string) *GetSAMLProviderInput
type GetSAMLProviderOutput
func (s *GetSAMLProviderOutput) SetCreateDate(v time.Time) *GetSAMLProviderOutput
func (s *GetSAMLProviderOutput) SetSAMLMetadataDocument(v string) *GetSAMLProviderOutput
func (s *GetSAMLProviderOutput) SetValidUntil(v time.Time) *GetSAMLProviderOutput
type GetSSHPublicKeyInput
func (s *GetSSHPublicKeyInput) SetEncoding(v string) *GetSSHPublicKeyInput
func (s *GetSSHPublicKeyInput) SetSSHPublicKeyId(v string) *GetSSHPublicKeyInput
func (s *GetSSHPublicKeyInput) SetUserName(v string) *GetSSHPublicKeyInput
type GetSSHPublicKeyOutput
func (s *GetSSHPublicKeyOutput) SetSSHPublicKey(v *SSHPublicKey) *GetSSHPublicKeyOutput
type GetServerCertificateInput
func (s *GetServerCertificateInput) SetServerCertificateName(v string) *GetServerCertificateInput
type GetServerCertificateOutput
func (s *GetServerCertificateOutput) SetServerCertificate(v *ServerCertificate) *GetServerCertificateOutput
type GetServiceLinkedRoleDeletionStatusInput
func (s *GetServiceLinkedRoleDeletionStatusInput) SetDeletionTaskId(v string) *GetServiceLinkedRoleDeletionStatusInput
type GetServiceLinkedRoleDeletionStatusOutput
func (s *GetServiceLinkedRoleDeletionStatusOutput) SetReason(v *DeletionTaskFailureReasonType) *GetServiceLinkedRoleDeletionStatusOutput
func (s *GetServiceLinkedRoleDeletionStatusOutput) SetStatus(v string) *GetServiceLinkedRoleDeletionStatusOutput
type GetUserInput
func (s *GetUserInput) SetUserName(v string) *GetUserInput
type GetUserOutput
func (s *GetUserOutput) SetUser(v *User) *GetUserOutput
type GetUserPolicyInput
func (s *GetUserPolicyInput) SetPolicyName(v string) *GetUserPolicyInput
func (s *GetUserPolicyInput) SetUserName(v string) *GetUserPolicyInput
type GetUserPolicyOutput
func (s *GetUserPolicyOutput) SetPolicyDocument(v string) *GetUserPolicyOutput
func (s *GetUserPolicyOutput) SetPolicyName(v string) *GetUserPolicyOutput
func (s *GetUserPolicyOutput) SetUserName(v string) *GetUserPolicyOutput
type Group
func (s *Group) SetArn(v string) *Group
func (s *Group) SetCreateDate(v time.Time) *Group
func (s *Group) SetGroupId(v string) *Group
func (s *Group) SetGroupName(v string) *Group
func (s *Group) SetPath(v string) *Group
type GroupDetail
func (s *GroupDetail) SetArn(v string) *GroupDetail
func (s *GroupDetail) SetAttachedManagedPolicies(v []*AttachedPolicy) *GroupDetail
func (s *GroupDetail) SetCreateDate(v time.Time) *GroupDetail
func (s *GroupDetail) SetGroupId(v string) *GroupDetail
func (s *GroupDetail) SetGroupName(v string) *GroupDetail
func (s *GroupDetail) SetGroupPolicyList(v []*PolicyDetail) *GroupDetail
func (s *GroupDetail) SetPath(v string) *GroupDetail
type IAM
func (c *IAM) SetDefaultPolicyVersion(input *SetDefaultPolicyVersionInput) (*SetDefaultPolicyVersionOutput, error)
func (c *IAM) SetDefaultPolicyVersionRequest(input *SetDefaultPolicyVersionInput) (req *request.Request, output *SetDefaultPolicyVersionOutput)
func (c *IAM) SetDefaultPolicyVersionWithContext(ctx aws.Context, input *SetDefaultPolicyVersionInput, opts ...request.Option) (*SetDefaultPolicyVersionOutput, error)
type InstanceProfile
func (s *InstanceProfile) SetArn(v string) *InstanceProfile
func (s *InstanceProfile) SetCreateDate(v time.Time) *InstanceProfile
func (s *InstanceProfile) SetInstanceProfileId(v string) *InstanceProfile
func (s *InstanceProfile) SetInstanceProfileName(v string) *InstanceProfile
func (s *InstanceProfile) SetPath(v string) *InstanceProfile
func (s *InstanceProfile) SetRoles(v []*Role) *InstanceProfile
type ListAccessKeysInput
func (s *ListAccessKeysInput) SetMarker(v string) *ListAccessKeysInput
func (s *ListAccessKeysInput) SetMaxItems(v int64) *ListAccessKeysInput
func (s *ListAccessKeysInput) SetUserName(v string) *ListAccessKeysInput
type ListAccessKeysOutput
func (s *ListAccessKeysOutput) SetAccessKeyMetadata(v []*AccessKeyMetadata) *ListAccessKeysOutput
func (s *ListAccessKeysOutput) SetIsTruncated(v bool) *ListAccessKeysOutput
func (s *ListAccessKeysOutput) SetMarker(v string) *ListAccessKeysOutput
type ListAccountAliasesInput
func (s *ListAccountAliasesInput) SetMarker(v string) *ListAccountAliasesInput
func (s *ListAccountAliasesInput) SetMaxItems(v int64) *ListAccountAliasesInput
type ListAccountAliasesOutput
func (s *ListAccountAliasesOutput) SetAccountAliases(v []*string) *ListAccountAliasesOutput
func (s *ListAccountAliasesOutput) SetIsTruncated(v bool) *ListAccountAliasesOutput
func (s *ListAccountAliasesOutput) SetMarker(v string) *ListAccountAliasesOutput
type ListAttachedGroupPoliciesInput
func (s *ListAttachedGroupPoliciesInput) SetGroupName(v string) *ListAttachedGroupPoliciesInput
func (s *ListAttachedGroupPoliciesInput) SetMarker(v string) *ListAttachedGroupPoliciesInput
func (s *ListAttachedGroupPoliciesInput) SetMaxItems(v int64) *ListAttachedGroupPoliciesInput
func (s *ListAttachedGroupPoliciesInput) SetPathPrefix(v string) *ListAttachedGroupPoliciesInput
type ListAttachedGroupPoliciesOutput
func (s *ListAttachedGroupPoliciesOutput) SetAttachedPolicies(v []*AttachedPolicy) *ListAttachedGroupPoliciesOutput
func (s *ListAttachedGroupPoliciesOutput) SetIsTruncated(v bool) *ListAttachedGroupPoliciesOutput
func (s *ListAttachedGroupPoliciesOutput) SetMarker(v string) *ListAttachedGroupPoliciesOutput
type ListAttachedRolePoliciesInput
func (s *ListAttachedRolePoliciesInput) SetMarker(v string) *ListAttachedRolePoliciesInput
func (s *ListAttachedRolePoliciesInput) SetMaxItems(v int64) *ListAttachedRolePoliciesInput
func (s *ListAttachedRolePoliciesInput) SetPathPrefix(v string) *ListAttachedRolePoliciesInput
func (s *ListAttachedRolePoliciesInput) SetRoleName(v string) *ListAttachedRolePoliciesInput
type ListAttachedRolePoliciesOutput
func (s *ListAttachedRolePoliciesOutput) SetAttachedPolicies(v []*AttachedPolicy) *ListAttachedRolePoliciesOutput
func (s *ListAttachedRolePoliciesOutput) SetIsTruncated(v bool) *ListAttachedRolePoliciesOutput
func (s *ListAttachedRolePoliciesOutput) SetMarker(v string) *ListAttachedRolePoliciesOutput
type ListAttachedUserPoliciesInput
func (s *ListAttachedUserPoliciesInput) SetMarker(v string) *ListAttachedUserPoliciesInput
func (s *ListAttachedUserPoliciesInput) SetMaxItems(v int64) *ListAttachedUserPoliciesInput
func (s *ListAttachedUserPoliciesInput) SetPathPrefix(v string) *ListAttachedUserPoliciesInput
func (s *ListAttachedUserPoliciesInput) SetUserName(v string) *ListAttachedUserPoliciesInput
type ListAttachedUserPoliciesOutput
func (s *ListAttachedUserPoliciesOutput) SetAttachedPolicies(v []*AttachedPolicy) *ListAttachedUserPoliciesOutput
func (s *ListAttachedUserPoliciesOutput) SetIsTruncated(v bool) *ListAttachedUserPoliciesOutput
func (s *ListAttachedUserPoliciesOutput) SetMarker(v string) *ListAttachedUserPoliciesOutput
type ListEntitiesForPolicyInput
func (s *ListEntitiesForPolicyInput) SetEntityFilter(v string) *ListEntitiesForPolicyInput
func (s *ListEntitiesForPolicyInput) SetMarker(v string) *ListEntitiesForPolicyInput
func (s *ListEntitiesForPolicyInput) SetMaxItems(v int64) *ListEntitiesForPolicyInput
func (s *ListEntitiesForPolicyInput) SetPathPrefix(v string) *ListEntitiesForPolicyInput
func (s *ListEntitiesForPolicyInput) SetPolicyArn(v string) *ListEntitiesForPolicyInput
type ListEntitiesForPolicyOutput
func (s *ListEntitiesForPolicyOutput) SetIsTruncated(v bool) *ListEntitiesForPolicyOutput
func (s *ListEntitiesForPolicyOutput) SetMarker(v string) *ListEntitiesForPolicyOutput
func (s *ListEntitiesForPolicyOutput) SetPolicyGroups(v []*PolicyGroup) *ListEntitiesForPolicyOutput
func (s *ListEntitiesForPolicyOutput) SetPolicyRoles(v []*PolicyRole) *ListEntitiesForPolicyOutput
func (s *ListEntitiesForPolicyOutput) SetPolicyUsers(v []*PolicyUser) *ListEntitiesForPolicyOutput
type ListGroupPoliciesInput
func (s *ListGroupPoliciesInput) SetGroupName(v string) *ListGroupPoliciesInput
func (s *ListGroupPoliciesInput) SetMarker(v string) *ListGroupPoliciesInput
func (s *ListGroupPoliciesInput) SetMaxItems(v int64) *ListGroupPoliciesInput
type ListGroupPoliciesOutput
func (s *ListGroupPoliciesOutput) SetIsTruncated(v bool) *ListGroupPoliciesOutput
func (s *ListGroupPoliciesOutput) SetMarker(v string) *ListGroupPoliciesOutput
func (s *ListGroupPoliciesOutput) SetPolicyNames(v []*string) *ListGroupPoliciesOutput
type ListGroupsForUserInput
func (s *ListGroupsForUserInput) SetMarker(v string) *ListGroupsForUserInput
func (s *ListGroupsForUserInput) SetMaxItems(v int64) *ListGroupsForUserInput
func (s *ListGroupsForUserInput) SetUserName(v string) *ListGroupsForUserInput
type ListGroupsForUserOutput
func (s *ListGroupsForUserOutput) SetGroups(v []*Group) *ListGroupsForUserOutput
func (s *ListGroupsForUserOutput) SetIsTruncated(v bool) *ListGroupsForUserOutput
func (s *ListGroupsForUserOutput) SetMarker(v string) *ListGroupsForUserOutput
type ListGroupsInput
func (s *ListGroupsInput) SetMarker(v string) *ListGroupsInput
func (s *ListGroupsInput) SetMaxItems(v int64) *ListGroupsInput
func (s *ListGroupsInput) SetPathPrefix(v string) *ListGroupsInput
type ListGroupsOutput
func (s *ListGroupsOutput) SetGroups(v []*Group) *ListGroupsOutput
func (s *ListGroupsOutput) SetIsTruncated(v bool) *ListGroupsOutput
func (s *ListGroupsOutput) SetMarker(v string) *ListGroupsOutput
type ListInstanceProfilesForRoleInput
func (s *ListInstanceProfilesForRoleInput) SetMarker(v string) *ListInstanceProfilesForRoleInput
func (s *ListInstanceProfilesForRoleInput) SetMaxItems(v int64) *ListInstanceProfilesForRoleInput
func (s *ListInstanceProfilesForRoleInput) SetRoleName(v string) *ListInstanceProfilesForRoleInput
type ListInstanceProfilesForRoleOutput
func (s *ListInstanceProfilesForRoleOutput) SetInstanceProfiles(v []*InstanceProfile) *ListInstanceProfilesForRoleOutput
func (s *ListInstanceProfilesForRoleOutput) SetIsTruncated(v bool) *ListInstanceProfilesForRoleOutput
func (s *ListInstanceProfilesForRoleOutput) SetMarker(v string) *ListInstanceProfilesForRoleOutput
type ListInstanceProfilesInput
func (s *ListInstanceProfilesInput) SetMarker(v string) *ListInstanceProfilesInput
func (s *ListInstanceProfilesInput) SetMaxItems(v int64) *ListInstanceProfilesInput
func (s *ListInstanceProfilesInput) SetPathPrefix(v string) *ListInstanceProfilesInput
type ListInstanceProfilesOutput
func (s *ListInstanceProfilesOutput) SetInstanceProfiles(v []*InstanceProfile) *ListInstanceProfilesOutput
func (s *ListInstanceProfilesOutput) SetIsTruncated(v bool) *ListInstanceProfilesOutput
func (s *ListInstanceProfilesOutput) SetMarker(v string) *ListInstanceProfilesOutput
type ListMFADevicesInput
func (s *ListMFADevicesInput) SetMarker(v string) *ListMFADevicesInput
func (s *ListMFADevicesInput) SetMaxItems(v int64) *ListMFADevicesInput
func (s *ListMFADevicesInput) SetUserName(v string) *ListMFADevicesInput
type ListMFADevicesOutput
func (s *ListMFADevicesOutput) SetIsTruncated(v bool) *ListMFADevicesOutput
func (s *ListMFADevicesOutput) SetMFADevices(v []*MFADevice) *ListMFADevicesOutput
func (s *ListMFADevicesOutput) SetMarker(v string) *ListMFADevicesOutput
type ListOpenIDConnectProvidersInput
type ListOpenIDConnectProvidersOutput
func (s *ListOpenIDConnectProvidersOutput) SetOpenIDConnectProviderList(v []*OpenIDConnectProviderListEntry) *ListOpenIDConnectProvidersOutput
type ListPoliciesInput
func (s *ListPoliciesInput) SetMarker(v string) *ListPoliciesInput
func (s *ListPoliciesInput) SetMaxItems(v int64) *ListPoliciesInput
func (s *ListPoliciesInput) SetOnlyAttached(v bool) *ListPoliciesInput
func (s *ListPoliciesInput) SetPathPrefix(v string) *ListPoliciesInput
func (s *ListPoliciesInput) SetScope(v string) *ListPoliciesInput
type ListPoliciesOutput
func (s *ListPoliciesOutput) SetIsTruncated(v bool) *ListPoliciesOutput
func (s *ListPoliciesOutput) SetMarker(v string) *ListPoliciesOutput
func (s *ListPoliciesOutput) SetPolicies(v []*Policy) *ListPoliciesOutput
type ListPolicyVersionsInput
func (s *ListPolicyVersionsInput) SetMarker(v string) *ListPolicyVersionsInput
func (s *ListPolicyVersionsInput) SetMaxItems(v int64) *ListPolicyVersionsInput
func (s *ListPolicyVersionsInput) SetPolicyArn(v string) *ListPolicyVersionsInput
type ListPolicyVersionsOutput
func (s *ListPolicyVersionsOutput) SetIsTruncated(v bool) *ListPolicyVersionsOutput
func (s *ListPolicyVersionsOutput) SetMarker(v string) *ListPolicyVersionsOutput
func (s *ListPolicyVersionsOutput) SetVersions(v []*PolicyVersion) *ListPolicyVersionsOutput
type ListRolePoliciesInput
func (s *ListRolePoliciesInput) SetMarker(v string) *ListRolePoliciesInput
func (s *ListRolePoliciesInput) SetMaxItems(v int64) *ListRolePoliciesInput
func (s *ListRolePoliciesInput) SetRoleName(v string) *ListRolePoliciesInput
type ListRolePoliciesOutput
func (s *ListRolePoliciesOutput) SetIsTruncated(v bool) *ListRolePoliciesOutput
func (s *ListRolePoliciesOutput) SetMarker(v string) *ListRolePoliciesOutput
func (s *ListRolePoliciesOutput) SetPolicyNames(v []*string) *ListRolePoliciesOutput
type ListRolesInput
func (s *ListRolesInput) SetMarker(v string) *ListRolesInput
func (s *ListRolesInput) SetMaxItems(v int64) *ListRolesInput
func (s *ListRolesInput) SetPathPrefix(v string) *ListRolesInput
type ListRolesOutput
func (s *ListRolesOutput) SetIsTruncated(v bool) *ListRolesOutput
func (s *ListRolesOutput) SetMarker(v string) *ListRolesOutput
func (s *ListRolesOutput) SetRoles(v []*Role) *ListRolesOutput
type ListSAMLProvidersInput
type ListSAMLProvidersOutput
func (s *ListSAMLProvidersOutput) SetSAMLProviderList(v []*SAMLProviderListEntry) *ListSAMLProvidersOutput
type ListSSHPublicKeysInput
func (s *ListSSHPublicKeysInput) SetMarker(v string) *ListSSHPublicKeysInput
func (s *ListSSHPublicKeysInput) SetMaxItems(v int64) *ListSSHPublicKeysInput
func (s *ListSSHPublicKeysInput) SetUserName(v string) *ListSSHPublicKeysInput
type ListSSHPublicKeysOutput
func (s *ListSSHPublicKeysOutput) SetIsTruncated(v bool) *ListSSHPublicKeysOutput
func (s *ListSSHPublicKeysOutput) SetMarker(v string) *ListSSHPublicKeysOutput
func (s *ListSSHPublicKeysOutput) SetSSHPublicKeys(v []*SSHPublicKeyMetadata) *ListSSHPublicKeysOutput
type ListServerCertificatesInput
func (s *ListServerCertificatesInput) SetMarker(v string) *ListServerCertificatesInput
func (s *ListServerCertificatesInput) SetMaxItems(v int64) *ListServerCertificatesInput
func (s *ListServerCertificatesInput) SetPathPrefix(v string) *ListServerCertificatesInput
type ListServerCertificatesOutput
func (s *ListServerCertificatesOutput) SetIsTruncated(v bool) *ListServerCertificatesOutput
func (s *ListServerCertificatesOutput) SetMarker(v string) *ListServerCertificatesOutput
func (s *ListServerCertificatesOutput) SetServerCertificateMetadataList(v []*ServerCertificateMetadata) *ListServerCertificatesOutput
type ListServiceSpecificCredentialsInput
func (s *ListServiceSpecificCredentialsInput) SetServiceName(v string) *ListServiceSpecificCredentialsInput
func (s *ListServiceSpecificCredentialsInput) SetUserName(v string) *ListServiceSpecificCredentialsInput
type ListServiceSpecificCredentialsOutput
func (s *ListServiceSpecificCredentialsOutput) SetServiceSpecificCredentials(v []*ServiceSpecificCredentialMetadata) *ListServiceSpecificCredentialsOutput
type ListSigningCertificatesInput
func (s *ListSigningCertificatesInput) SetMarker(v string) *ListSigningCertificatesInput
func (s *ListSigningCertificatesInput) SetMaxItems(v int64) *ListSigningCertificatesInput
func (s *ListSigningCertificatesInput) SetUserName(v string) *ListSigningCertificatesInput
type ListSigningCertificatesOutput
func (s *ListSigningCertificatesOutput) SetCertificates(v []*SigningCertificate) *ListSigningCertificatesOutput
func (s *ListSigningCertificatesOutput) SetIsTruncated(v bool) *ListSigningCertificatesOutput
func (s *ListSigningCertificatesOutput) SetMarker(v string) *ListSigningCertificatesOutput
type ListUserPoliciesInput
func (s *ListUserPoliciesInput) SetMarker(v string) *ListUserPoliciesInput
func (s *ListUserPoliciesInput) SetMaxItems(v int64) *ListUserPoliciesInput
func (s *ListUserPoliciesInput) SetUserName(v string) *ListUserPoliciesInput
type ListUserPoliciesOutput
func (s *ListUserPoliciesOutput) SetIsTruncated(v bool) *ListUserPoliciesOutput
func (s *ListUserPoliciesOutput) SetMarker(v string) *ListUserPoliciesOutput
func (s *ListUserPoliciesOutput) SetPolicyNames(v []*string) *ListUserPoliciesOutput
type ListUsersInput
func (s *ListUsersInput) SetMarker(v string) *ListUsersInput
func (s *ListUsersInput) SetMaxItems(v int64) *ListUsersInput
func (s *ListUsersInput) SetPathPrefix(v string) *ListUsersInput
type ListUsersOutput
func (s *ListUsersOutput) SetIsTruncated(v bool) *ListUsersOutput
func (s *ListUsersOutput) SetMarker(v string) *ListUsersOutput
func (s *ListUsersOutput) SetUsers(v []*User) *ListUsersOutput
type ListVirtualMFADevicesInput
func (s *ListVirtualMFADevicesInput) SetAssignmentStatus(v string) *ListVirtualMFADevicesInput
func (s *ListVirtualMFADevicesInput) SetMarker(v string) *ListVirtualMFADevicesInput
func (s *ListVirtualMFADevicesInput) SetMaxItems(v int64) *ListVirtualMFADevicesInput
type ListVirtualMFADevicesOutput
func (s *ListVirtualMFADevicesOutput) SetIsTruncated(v bool) *ListVirtualMFADevicesOutput
func (s *ListVirtualMFADevicesOutput) SetMarker(v string) *ListVirtualMFADevicesOutput
func (s *ListVirtualMFADevicesOutput) SetVirtualMFADevices(v []*VirtualMFADevice) *ListVirtualMFADevicesOutput
type LoginProfile
func (s *LoginProfile) SetCreateDate(v time.Time) *LoginProfile
func (s *LoginProfile) SetPasswordResetRequired(v bool) *LoginProfile
func (s *LoginProfile) SetUserName(v string) *LoginProfile
type MFADevice
func (s *MFADevice) SetEnableDate(v time.Time) *MFADevice
func (s *MFADevice) SetSerialNumber(v string) *MFADevice
func (s *MFADevice) SetUserName(v string) *MFADevice
type ManagedPolicyDetail
func (s *ManagedPolicyDetail) SetArn(v string) *ManagedPolicyDetail
func (s *ManagedPolicyDetail) SetAttachmentCount(v int64) *ManagedPolicyDetail
func (s *ManagedPolicyDetail) SetCreateDate(v time.Time) *ManagedPolicyDetail
func (s *ManagedPolicyDetail) SetDefaultVersionId(v string) *ManagedPolicyDetail
func (s *ManagedPolicyDetail) SetDescription(v string) *ManagedPolicyDetail
func (s *ManagedPolicyDetail) SetIsAttachable(v bool) *ManagedPolicyDetail
func (s *ManagedPolicyDetail) SetPath(v string) *ManagedPolicyDetail
func (s *ManagedPolicyDetail) SetPolicyId(v string) *ManagedPolicyDetail
func (s *ManagedPolicyDetail) SetPolicyName(v string) *ManagedPolicyDetail
func (s *ManagedPolicyDetail) SetPolicyVersionList(v []*PolicyVersion) *ManagedPolicyDetail
func (s *ManagedPolicyDetail) SetUpdateDate(v time.Time) *ManagedPolicyDetail
type OpenIDConnectProviderListEntry
func (s *OpenIDConnectProviderListEntry) SetArn(v string) *OpenIDConnectProviderListEntry
type OrganizationsDecisionDetail
func (s *OrganizationsDecisionDetail) SetAllowedByOrganizations(v bool) *OrganizationsDecisionDetail
type PasswordPolicy
func (s *PasswordPolicy) SetAllowUsersToChangePassword(v bool) *PasswordPolicy
func (s *PasswordPolicy) SetExpirePasswords(v bool) *PasswordPolicy
func (s *PasswordPolicy) SetHardExpiry(v bool) *PasswordPolicy
func (s *PasswordPolicy) SetMaxPasswordAge(v int64) *PasswordPolicy
func (s *PasswordPolicy) SetMinimumPasswordLength(v int64) *PasswordPolicy
func (s *PasswordPolicy) SetPasswordReusePrevention(v int64) *PasswordPolicy
func (s *PasswordPolicy) SetRequireLowercaseCharacters(v bool) *PasswordPolicy
func (s *PasswordPolicy) SetRequireNumbers(v bool) *PasswordPolicy
func (s *PasswordPolicy) SetRequireSymbols(v bool) *PasswordPolicy
func (s *PasswordPolicy) SetRequireUppercaseCharacters(v bool) *PasswordPolicy
type Policy
func (s *Policy) SetArn(v string) *Policy
func (s *Policy) SetAttachmentCount(v int64) *Policy
func (s *Policy) SetCreateDate(v time.Time) *Policy
func (s *Policy) SetDefaultVersionId(v string) *Policy
func (s *Policy) SetDescription(v string) *Policy
func (s *Policy) SetIsAttachable(v bool) *Policy
func (s *Policy) SetPath(v string) *Policy
func (s *Policy) SetPolicyId(v string) *Policy
func (s *Policy) SetPolicyName(v string) *Policy
func (s *Policy) SetUpdateDate(v time.Time) *Policy
type PolicyDetail
func (s *PolicyDetail) SetPolicyDocument(v string) *PolicyDetail
func (s *PolicyDetail) SetPolicyName(v string) *PolicyDetail
type PolicyGroup
func (s *PolicyGroup) SetGroupId(v string) *PolicyGroup
func (s *PolicyGroup) SetGroupName(v string) *PolicyGroup
type PolicyRole
func (s *PolicyRole) SetRoleId(v string) *PolicyRole
func (s *PolicyRole) SetRoleName(v string) *PolicyRole
type PolicyUser
func (s *PolicyUser) SetUserId(v string) *PolicyUser
func (s *PolicyUser) SetUserName(v string) *PolicyUser
type PolicyVersion
func (s *PolicyVersion) SetCreateDate(v time.Time) *PolicyVersion
func (s *PolicyVersion) SetDocument(v string) *PolicyVersion
func (s *PolicyVersion) SetIsDefaultVersion(v bool) *PolicyVersion
func (s *PolicyVersion) SetVersionId(v string) *PolicyVersion
type Position
func (s *Position) SetColumn(v int64) *Position
func (s *Position) SetLine(v int64) *Position
type PutGroupPolicyInput
func (s *PutGroupPolicyInput) SetGroupName(v string) *PutGroupPolicyInput
func (s *PutGroupPolicyInput) SetPolicyDocument(v string) *PutGroupPolicyInput
func (s *PutGroupPolicyInput) SetPolicyName(v string) *PutGroupPolicyInput
type PutGroupPolicyOutput
type PutRolePolicyInput
func (s *PutRolePolicyInput) SetPolicyDocument(v string) *PutRolePolicyInput
func (s *PutRolePolicyInput) SetPolicyName(v string) *PutRolePolicyInput
func (s *PutRolePolicyInput) SetRoleName(v string) *PutRolePolicyInput
type PutRolePolicyOutput
type PutUserPolicyInput
func (s *PutUserPolicyInput) SetPolicyDocument(v string) *PutUserPolicyInput
func (s *PutUserPolicyInput) SetPolicyName(v string) *PutUserPolicyInput
func (s *PutUserPolicyInput) SetUserName(v string) *PutUserPolicyInput
type PutUserPolicyOutput
type RemoveClientIDFromOpenIDConnectProviderInput
func (s *RemoveClientIDFromOpenIDConnectProviderInput) SetClientID(v string) *RemoveClientIDFromOpenIDConnectProviderInput
func (s *RemoveClientIDFromOpenIDConnectProviderInput) SetOpenIDConnectProviderArn(v string) *RemoveClientIDFromOpenIDConnectProviderInput
type RemoveClientIDFromOpenIDConnectProviderOutput
type RemoveRoleFromInstanceProfileInput
func (s *RemoveRoleFromInstanceProfileInput) SetInstanceProfileName(v string) *RemoveRoleFromInstanceProfileInput
func (s *RemoveRoleFromInstanceProfileInput) SetRoleName(v string) *RemoveRoleFromInstanceProfileInput
type RemoveRoleFromInstanceProfileOutput
type RemoveUserFromGroupInput
func (s *RemoveUserFromGroupInput) SetGroupName(v string) *RemoveUserFromGroupInput
func (s *RemoveUserFromGroupInput) SetUserName(v string) *RemoveUserFromGroupInput
type RemoveUserFromGroupOutput
type ResetServiceSpecificCredentialInput
func (s *ResetServiceSpecificCredentialInput) SetServiceSpecificCredentialId(v string) *ResetServiceSpecificCredentialInput
func (s *ResetServiceSpecificCredentialInput) SetUserName(v string) *ResetServiceSpecificCredentialInput
type ResetServiceSpecificCredentialOutput
func (s *ResetServiceSpecificCredentialOutput) SetServiceSpecificCredential(v *ServiceSpecificCredential) *ResetServiceSpecificCredentialOutput
type ResourceSpecificResult
func (s *ResourceSpecificResult) SetEvalDecisionDetails(v map[string]*string) *ResourceSpecificResult
func (s *ResourceSpecificResult) SetEvalResourceDecision(v string) *ResourceSpecificResult
func (s *ResourceSpecificResult) SetEvalResourceName(v string) *ResourceSpecificResult
func (s *ResourceSpecificResult) SetMatchedStatements(v []*Statement) *ResourceSpecificResult
func (s *ResourceSpecificResult) SetMissingContextValues(v []*string) *ResourceSpecificResult
type ResyncMFADeviceInput
func (s *ResyncMFADeviceInput) SetAuthenticationCode1(v string) *ResyncMFADeviceInput
func (s *ResyncMFADeviceInput) SetAuthenticationCode2(v string) *ResyncMFADeviceInput
func (s *ResyncMFADeviceInput) SetSerialNumber(v string) *ResyncMFADeviceInput
func (s *ResyncMFADeviceInput) SetUserName(v string) *ResyncMFADeviceInput
type ResyncMFADeviceOutput
type Role
func (s *Role) SetArn(v string) *Role
func (s *Role) SetAssumeRolePolicyDocument(v string) *Role
func (s *Role) SetCreateDate(v time.Time) *Role
func (s *Role) SetDescription(v string) *Role
func (s *Role) SetPath(v string) *Role
func (s *Role) SetRoleId(v string) *Role
func (s *Role) SetRoleName(v string) *Role
type RoleDetail
func (s *RoleDetail) SetArn(v string) *RoleDetail
func (s *RoleDetail) SetAssumeRolePolicyDocument(v string) *RoleDetail
func (s *RoleDetail) SetAttachedManagedPolicies(v []*AttachedPolicy) *RoleDetail
func (s *RoleDetail) SetCreateDate(v time.Time) *RoleDetail
func (s *RoleDetail) SetInstanceProfileList(v []*InstanceProfile) *RoleDetail
func (s *RoleDetail) SetPath(v string) *RoleDetail
func (s *RoleDetail) SetRoleId(v string) *RoleDetail
func (s *RoleDetail) SetRoleName(v string) *RoleDetail
func (s *RoleDetail) SetRolePolicyList(v []*PolicyDetail) *RoleDetail
type RoleUsageType
func (s *RoleUsageType) SetRegion(v string) *RoleUsageType
func (s *RoleUsageType) SetResources(v []*string) *RoleUsageType
type SAMLProviderListEntry
func (s *SAMLProviderListEntry) SetArn(v string) *SAMLProviderListEntry
func (s *SAMLProviderListEntry) SetCreateDate(v time.Time) *SAMLProviderListEntry
func (s *SAMLProviderListEntry) SetValidUntil(v time.Time) *SAMLProviderListEntry
type SSHPublicKey
func (s *SSHPublicKey) SetFingerprint(v string) *SSHPublicKey
func (s *SSHPublicKey) SetSSHPublicKeyBody(v string) *SSHPublicKey
func (s *SSHPublicKey) SetSSHPublicKeyId(v string) *SSHPublicKey
func (s *SSHPublicKey) SetStatus(v string) *SSHPublicKey
func (s *SSHPublicKey) SetUploadDate(v time.Time) *SSHPublicKey
func (s *SSHPublicKey) SetUserName(v string) *SSHPublicKey
type SSHPublicKeyMetadata
func (s *SSHPublicKeyMetadata) SetSSHPublicKeyId(v string) *SSHPublicKeyMetadata
func (s *SSHPublicKeyMetadata) SetStatus(v string) *SSHPublicKeyMetadata
func (s *SSHPublicKeyMetadata) SetUploadDate(v time.Time) *SSHPublicKeyMetadata
func (s *SSHPublicKeyMetadata) SetUserName(v string) *SSHPublicKeyMetadata
type ServerCertificate
func (s *ServerCertificate) SetCertificateBody(v string) *ServerCertificate
func (s *ServerCertificate) SetCertificateChain(v string) *ServerCertificate
func (s *ServerCertificate) SetServerCertificateMetadata(v *ServerCertificateMetadata) *ServerCertificate
type ServerCertificateMetadata
func (s *ServerCertificateMetadata) SetArn(v string) *ServerCertificateMetadata
func (s *ServerCertificateMetadata) SetExpiration(v time.Time) *ServerCertificateMetadata
func (s *ServerCertificateMetadata) SetPath(v string) *ServerCertificateMetadata
func (s *ServerCertificateMetadata) SetServerCertificateId(v string) *ServerCertificateMetadata
func (s *ServerCertificateMetadata) SetServerCertificateName(v string) *ServerCertificateMetadata
func (s *ServerCertificateMetadata) SetUploadDate(v time.Time) *ServerCertificateMetadata
type ServiceSpecificCredential
func (s *ServiceSpecificCredential) SetCreateDate(v time.Time) *ServiceSpecificCredential
func (s *ServiceSpecificCredential) SetServiceName(v string) *ServiceSpecificCredential
func (s *ServiceSpecificCredential) SetServicePassword(v string) *ServiceSpecificCredential
func (s *ServiceSpecificCredential) SetServiceSpecificCredentialId(v string) *ServiceSpecificCredential
func (s *ServiceSpecificCredential) SetServiceUserName(v string) *ServiceSpecificCredential
func (s *ServiceSpecificCredential) SetStatus(v string) *ServiceSpecificCredential
func (s *ServiceSpecificCredential) SetUserName(v string) *ServiceSpecificCredential
type ServiceSpecificCredentialMetadata
func (s *ServiceSpecificCredentialMetadata) SetCreateDate(v time.Time) *ServiceSpecificCredentialMetadata
func (s *ServiceSpecificCredentialMetadata) SetServiceName(v string) *ServiceSpecificCredentialMetadata
func (s *ServiceSpecificCredentialMetadata) SetServiceSpecificCredentialId(v string) *ServiceSpecificCredentialMetadata
func (s *ServiceSpecificCredentialMetadata) SetServiceUserName(v string) *ServiceSpecificCredentialMetadata
func (s *ServiceSpecificCredentialMetadata) SetStatus(v string) *ServiceSpecificCredentialMetadata
func (s *ServiceSpecificCredentialMetadata) SetUserName(v string) *ServiceSpecificCredentialMetadata
type SetDefaultPolicyVersionInput
func (s *SetDefaultPolicyVersionInput) SetPolicyArn(v string) *SetDefaultPolicyVersionInput
func (s *SetDefaultPolicyVersionInput) SetVersionId(v string) *SetDefaultPolicyVersionInput
type SetDefaultPolicyVersionOutput
type SigningCertificate
func (s *SigningCertificate) SetCertificateBody(v string) *SigningCertificate
func (s *SigningCertificate) SetCertificateId(v string) *SigningCertificate
func (s *SigningCertificate) SetStatus(v string) *SigningCertificate
func (s *SigningCertificate) SetUploadDate(v time.Time) *SigningCertificate
func (s *SigningCertificate) SetUserName(v string) *SigningCertificate
type SimulateCustomPolicyInput
func (s *SimulateCustomPolicyInput) SetActionNames(v []*string) *SimulateCustomPolicyInput
func (s *SimulateCustomPolicyInput) SetCallerArn(v string) *SimulateCustomPolicyInput
func (s *SimulateCustomPolicyInput) SetContextEntries(v []*ContextEntry) *SimulateCustomPolicyInput
func (s *SimulateCustomPolicyInput) SetMarker(v string) *SimulateCustomPolicyInput
func (s *SimulateCustomPolicyInput) SetMaxItems(v int64) *SimulateCustomPolicyInput
func (s *SimulateCustomPolicyInput) SetPolicyInputList(v []*string) *SimulateCustomPolicyInput
func (s *SimulateCustomPolicyInput) SetResourceArns(v []*string) *SimulateCustomPolicyInput
func (s *SimulateCustomPolicyInput) SetResourceHandlingOption(v string) *SimulateCustomPolicyInput
func (s *SimulateCustomPolicyInput) SetResourceOwner(v string) *SimulateCustomPolicyInput
func (s *SimulateCustomPolicyInput) SetResourcePolicy(v string) *SimulateCustomPolicyInput
type SimulatePolicyResponse
func (s *SimulatePolicyResponse) SetEvaluationResults(v []*EvaluationResult) *SimulatePolicyResponse
func (s *SimulatePolicyResponse) SetIsTruncated(v bool) *SimulatePolicyResponse
func (s *SimulatePolicyResponse) SetMarker(v string) *SimulatePolicyResponse
type SimulatePrincipalPolicyInput
func (s *SimulatePrincipalPolicyInput) SetActionNames(v []*string) *SimulatePrincipalPolicyInput
func (s *SimulatePrincipalPolicyInput) SetCallerArn(v string) *SimulatePrincipalPolicyInput
func (s *SimulatePrincipalPolicyInput) SetContextEntries(v []*ContextEntry) *SimulatePrincipalPolicyInput
func (s *SimulatePrincipalPolicyInput) SetMarker(v string) *SimulatePrincipalPolicyInput
func (s *SimulatePrincipalPolicyInput) SetMaxItems(v int64) *SimulatePrincipalPolicyInput
func (s *SimulatePrincipalPolicyInput) SetPolicyInputList(v []*string) *SimulatePrincipalPolicyInput
func (s *SimulatePrincipalPolicyInput) SetPolicySourceArn(v string) *SimulatePrincipalPolicyInput
func (s *SimulatePrincipalPolicyInput) SetResourceArns(v []*string) *SimulatePrincipalPolicyInput
func (s *SimulatePrincipalPolicyInput) SetResourceHandlingOption(v string) *SimulatePrincipalPolicyInput
func (s *SimulatePrincipalPolicyInput) SetResourceOwner(v string) *SimulatePrincipalPolicyInput
func (s *SimulatePrincipalPolicyInput) SetResourcePolicy(v string) *SimulatePrincipalPolicyInput
type Statement
func (s *Statement) SetEndPosition(v *Position) *Statement
func (s *Statement) SetSourcePolicyId(v string) *Statement
func (s *Statement) SetSourcePolicyType(v string) *Statement
func (s *Statement) SetStartPosition(v *Position) *Statement
type UpdateAccessKeyInput
func (s *UpdateAccessKeyInput) SetAccessKeyId(v string) *UpdateAccessKeyInput
func (s *UpdateAccessKeyInput) SetStatus(v string) *UpdateAccessKeyInput
func (s *UpdateAccessKeyInput) SetUserName(v string) *UpdateAccessKeyInput
type UpdateAccessKeyOutput
type UpdateAccountPasswordPolicyInput
func (s *UpdateAccountPasswordPolicyInput) SetAllowUsersToChangePassword(v bool) *UpdateAccountPasswordPolicyInput
func (s *UpdateAccountPasswordPolicyInput) SetHardExpiry(v bool) *UpdateAccountPasswordPolicyInput
func (s *UpdateAccountPasswordPolicyInput) SetMaxPasswordAge(v int64) *UpdateAccountPasswordPolicyInput
func (s *UpdateAccountPasswordPolicyInput) SetMinimumPasswordLength(v int64) *UpdateAccountPasswordPolicyInput
func (s *UpdateAccountPasswordPolicyInput) SetPasswordReusePrevention(v int64) *UpdateAccountPasswordPolicyInput
func (s *UpdateAccountPasswordPolicyInput) SetRequireLowercaseCharacters(v bool) *UpdateAccountPasswordPolicyInput
func (s *UpdateAccountPasswordPolicyInput) SetRequireNumbers(v bool) *UpdateAccountPasswordPolicyInput
func (s *UpdateAccountPasswordPolicyInput) SetRequireSymbols(v bool) *UpdateAccountPasswordPolicyInput
func (s *UpdateAccountPasswordPolicyInput) SetRequireUppercaseCharacters(v bool) *UpdateAccountPasswordPolicyInput
type UpdateAccountPasswordPolicyOutput
type UpdateAssumeRolePolicyInput
func (s *UpdateAssumeRolePolicyInput) SetPolicyDocument(v string) *UpdateAssumeRolePolicyInput
func (s *UpdateAssumeRolePolicyInput) SetRoleName(v string) *UpdateAssumeRolePolicyInput
type UpdateAssumeRolePolicyOutput
type UpdateGroupInput
func (s *UpdateGroupInput) SetGroupName(v string) *UpdateGroupInput
func (s *UpdateGroupInput) SetNewGroupName(v string) *UpdateGroupInput
func (s *UpdateGroupInput) SetNewPath(v string) *UpdateGroupInput
type UpdateGroupOutput
type UpdateLoginProfileInput
func (s *UpdateLoginProfileInput) SetPassword(v string) *UpdateLoginProfileInput
func (s *UpdateLoginProfileInput) SetPasswordResetRequired(v bool) *UpdateLoginProfileInput
func (s *UpdateLoginProfileInput) SetUserName(v string) *UpdateLoginProfileInput
type UpdateLoginProfileOutput
type UpdateOpenIDConnectProviderThumbprintInput
func (s *UpdateOpenIDConnectProviderThumbprintInput) SetOpenIDConnectProviderArn(v string) *UpdateOpenIDConnectProviderThumbprintInput
func (s *UpdateOpenIDConnectProviderThumbprintInput) SetThumbprintList(v []*string) *UpdateOpenIDConnectProviderThumbprintInput
type UpdateOpenIDConnectProviderThumbprintOutput
type UpdateRoleDescriptionInput
func (s *UpdateRoleDescriptionInput) SetDescription(v string) *UpdateRoleDescriptionInput
func (s *UpdateRoleDescriptionInput) SetRoleName(v string) *UpdateRoleDescriptionInput
type UpdateRoleDescriptionOutput
func (s *UpdateRoleDescriptionOutput) SetRole(v *Role) *UpdateRoleDescriptionOutput
type UpdateSAMLProviderInput
func (s *UpdateSAMLProviderInput) SetSAMLMetadataDocument(v string) *UpdateSAMLProviderInput
func (s *UpdateSAMLProviderInput) SetSAMLProviderArn(v string) *UpdateSAMLProviderInput
type UpdateSAMLProviderOutput
func (s *UpdateSAMLProviderOutput) SetSAMLProviderArn(v string) *UpdateSAMLProviderOutput
type UpdateSSHPublicKeyInput
func (s *UpdateSSHPublicKeyInput) SetSSHPublicKeyId(v string) *UpdateSSHPublicKeyInput
func (s *UpdateSSHPublicKeyInput) SetStatus(v string) *UpdateSSHPublicKeyInput
func (s *UpdateSSHPublicKeyInput) SetUserName(v string) *UpdateSSHPublicKeyInput
type UpdateSSHPublicKeyOutput
type UpdateServerCertificateInput
func (s *UpdateServerCertificateInput) SetNewPath(v string) *UpdateServerCertificateInput
func (s *UpdateServerCertificateInput) SetNewServerCertificateName(v string) *UpdateServerCertificateInput
func (s *UpdateServerCertificateInput) SetServerCertificateName(v string) *UpdateServerCertificateInput
type UpdateServerCertificateOutput
type UpdateServiceSpecificCredentialInput
func (s *UpdateServiceSpecificCredentialInput) SetServiceSpecificCredentialId(v string) *UpdateServiceSpecificCredentialInput
func (s *UpdateServiceSpecificCredentialInput) SetStatus(v string) *UpdateServiceSpecificCredentialInput
func (s *UpdateServiceSpecificCredentialInput) SetUserName(v string) *UpdateServiceSpecificCredentialInput
type UpdateServiceSpecificCredentialOutput
type UpdateSigningCertificateInput
func (s *UpdateSigningCertificateInput) SetCertificateId(v string) *UpdateSigningCertificateInput
func (s *UpdateSigningCertificateInput) SetStatus(v string) *UpdateSigningCertificateInput
func (s *UpdateSigningCertificateInput) SetUserName(v string) *UpdateSigningCertificateInput
type UpdateSigningCertificateOutput
type UpdateUserInput
func (s *UpdateUserInput) SetNewPath(v string) *UpdateUserInput
func (s *UpdateUserInput) SetNewUserName(v string) *UpdateUserInput
func (s *UpdateUserInput) SetUserName(v string) *UpdateUserInput
type UpdateUserOutput
type UploadSSHPublicKeyInput
func (s *UploadSSHPublicKeyInput) SetSSHPublicKeyBody(v string) *UploadSSHPublicKeyInput
func (s *UploadSSHPublicKeyInput) SetUserName(v string) *UploadSSHPublicKeyInput
type UploadSSHPublicKeyOutput
func (s *UploadSSHPublicKeyOutput) SetSSHPublicKey(v *SSHPublicKey) *UploadSSHPublicKeyOutput
type UploadServerCertificateInput
func (s *UploadServerCertificateInput) SetCertificateBody(v string) *UploadServerCertificateInput
func (s *UploadServerCertificateInput) SetCertificateChain(v string) *UploadServerCertificateInput
func (s *UploadServerCertificateInput) SetPath(v string) *UploadServerCertificateInput
func (s *UploadServerCertificateInput) SetPrivateKey(v string) *UploadServerCertificateInput
func (s *UploadServerCertificateInput) SetServerCertificateName(v string) *UploadServerCertificateInput
type UploadServerCertificateOutput
func (s *UploadServerCertificateOutput) SetServerCertificateMetadata(v *ServerCertificateMetadata) *UploadServerCertificateOutput
type UploadSigningCertificateInput
func (s *UploadSigningCertificateInput) SetCertificateBody(v string) *UploadSigningCertificateInput
func (s *UploadSigningCertificateInput) SetUserName(v string) *UploadSigningCertificateInput
type UploadSigningCertificateOutput
func (s *UploadSigningCertificateOutput) SetCertificate(v *SigningCertificate) *UploadSigningCertificateOutput
type User
func (s *User) SetArn(v string) *User
func (s *User) SetCreateDate(v time.Time) *User
func (s *User) SetPasswordLastUsed(v time.Time) *User
func (s *User) SetPath(v string) *User
func (s *User) SetUserId(v string) *User
func (s *User) SetUserName(v string) *User
type UserDetail
func (s *UserDetail) SetArn(v string) *UserDetail
func (s *UserDetail) SetAttachedManagedPolicies(v []*AttachedPolicy) *UserDetail
func (s *UserDetail) SetCreateDate(v time.Time) *UserDetail
func (s *UserDetail) SetGroupList(v []*string) *UserDetail
func (s *UserDetail) SetPath(v string) *UserDetail
func (s *UserDetail) SetUserId(v string) *UserDetail
func (s *UserDetail) SetUserName(v string) *UserDetail
func (s *UserDetail) SetUserPolicyList(v []*PolicyDetail) *UserDetail
type VirtualMFADevice
func (s *VirtualMFADevice) SetBase32StringSeed(v []byte) *VirtualMFADevice
func (s *VirtualMFADevice) SetEnableDate(v time.Time) *VirtualMFADevice
func (s *VirtualMFADevice) SetQRCodePNG(v []byte) *VirtualMFADevice
func (s *VirtualMFADevice) SetSerialNumber(v string) *VirtualMFADevice
func (s *VirtualMFADevice) SetUser(v *User) *VirtualMFADevice

Examples ▾

IAM.AddClientIDToOpenIDConnectProvider (Shared00)
IAM.AddRoleToInstanceProfile (Shared00)
IAM.AddUserToGroup (Shared00)
IAM.AttachGroupPolicy (Shared00)
IAM.AttachRolePolicy (Shared00)
IAM.AttachUserPolicy (Shared00)
IAM.ChangePassword (Shared00)
IAM.CreateAccessKey (Shared00)
IAM.CreateAccountAlias (Shared00)
IAM.CreateGroup (Shared00)
IAM.CreateInstanceProfile (Shared00)
IAM.CreateLoginProfile (Shared00)
IAM.CreateOpenIDConnectProvider (Shared00)
IAM.CreateRole (Shared00)
IAM.CreateUser (Shared00)
IAM.DeleteAccessKey (Shared00)
IAM.DeleteAccountAlias (Shared00)
IAM.DeleteAccountPasswordPolicy (Shared00)
IAM.DeleteGroupPolicy (Shared00)
IAM.DeleteInstanceProfile (Shared00)
IAM.DeleteLoginProfile (Shared00)
IAM.DeleteRolePolicy (Shared00)
IAM.DeleteRole (Shared00)
IAM.DeleteSigningCertificate (Shared00)
IAM.DeleteUserPolicy (Shared00)
IAM.DeleteUser (Shared00)
IAM.DeleteVirtualMFADevice (Shared00)
IAM.GetAccountPasswordPolicy (Shared00)
IAM.GetAccountSummary (Shared00)
IAM.GetInstanceProfile (Shared00)
IAM.GetLoginProfile (Shared00)
IAM.GetRole (Shared00)
IAM.GetUser (Shared00)
IAM.ListAccessKeys (Shared00)
IAM.ListAccountAliases (Shared00)
IAM.ListGroupPolicies (Shared00)
IAM.ListGroupsForUser (Shared00)
IAM.ListGroups (Shared00)
IAM.ListSigningCertificates (Shared00)
IAM.ListUsers (Shared00)
IAM.ListVirtualMFADevices (Shared00)
IAM.PutGroupPolicy (Shared00)
IAM.PutRolePolicy (Shared00)
IAM.PutUserPolicy (Shared00)
IAM.RemoveRoleFromInstanceProfile (Shared00)
IAM.RemoveUserFromGroup (Shared00)
IAM.UpdateAccessKey (Shared00)
IAM.UpdateAccountPasswordPolicy (Shared00)
IAM.UpdateAssumeRolePolicy (Shared00)
IAM.UpdateGroup (Shared00)
IAM.UpdateLoginProfile (Shared00)
IAM.UpdateSigningCertificate (Shared00)
IAM.UpdateUser (Shared00)
IAM.UploadServerCertificate (Shared00)
IAM.UploadSigningCertificate (Shared00)

Constants ▾

const (
    // ContextKeyTypeEnumString is a ContextKeyTypeEnum enum value
    ContextKeyTypeEnumString = "string"

    // ContextKeyTypeEnumStringList is a ContextKeyTypeEnum enum value
    ContextKeyTypeEnumStringList = "stringList"

    // ContextKeyTypeEnumNumeric is a ContextKeyTypeEnum enum value
    ContextKeyTypeEnumNumeric = "numeric"

    // ContextKeyTypeEnumNumericList is a ContextKeyTypeEnum enum value
    ContextKeyTypeEnumNumericList = "numericList"

    // ContextKeyTypeEnumBoolean is a ContextKeyTypeEnum enum value
    ContextKeyTypeEnumBoolean = "boolean"

    // ContextKeyTypeEnumBooleanList is a ContextKeyTypeEnum enum value
    ContextKeyTypeEnumBooleanList = "booleanList"

    // ContextKeyTypeEnumIp is a ContextKeyTypeEnum enum value
    ContextKeyTypeEnumIp = "ip"

    // ContextKeyTypeEnumIpList is a ContextKeyTypeEnum enum value
    ContextKeyTypeEnumIpList = "ipList"

    // ContextKeyTypeEnumBinary is a ContextKeyTypeEnum enum value
    ContextKeyTypeEnumBinary = "binary"

    // ContextKeyTypeEnumBinaryList is a ContextKeyTypeEnum enum value
    ContextKeyTypeEnumBinaryList = "binaryList"

    // ContextKeyTypeEnumDate is a ContextKeyTypeEnum enum value
    ContextKeyTypeEnumDate = "date"

    // ContextKeyTypeEnumDateList is a ContextKeyTypeEnum enum value
    ContextKeyTypeEnumDateList = "dateList"
)
const (
    // DeletionTaskStatusTypeSucceeded is a DeletionTaskStatusType enum value
    DeletionTaskStatusTypeSucceeded = "SUCCEEDED"

    // DeletionTaskStatusTypeInProgress is a DeletionTaskStatusType enum value
    DeletionTaskStatusTypeInProgress = "IN_PROGRESS"

    // DeletionTaskStatusTypeFailed is a DeletionTaskStatusType enum value
    DeletionTaskStatusTypeFailed = "FAILED"

    // DeletionTaskStatusTypeNotStarted is a DeletionTaskStatusType enum value
    DeletionTaskStatusTypeNotStarted = "NOT_STARTED"
)
const (
    // EntityTypeUser is a EntityType enum value
    EntityTypeUser = "User"

    // EntityTypeRole is a EntityType enum value
    EntityTypeRole = "Role"

    // EntityTypeGroup is a EntityType enum value
    EntityTypeGroup = "Group"

    // EntityTypeLocalManagedPolicy is a EntityType enum value
    EntityTypeLocalManagedPolicy = "LocalManagedPolicy"

    // EntityTypeAwsmanagedPolicy is a EntityType enum value
    EntityTypeAwsmanagedPolicy = "AWSManagedPolicy"
)
const (
    // PolicyEvaluationDecisionTypeAllowed is a PolicyEvaluationDecisionType enum value
    PolicyEvaluationDecisionTypeAllowed = "allowed"

    // PolicyEvaluationDecisionTypeExplicitDeny is a PolicyEvaluationDecisionType enum value
    PolicyEvaluationDecisionTypeExplicitDeny = "explicitDeny"

    // PolicyEvaluationDecisionTypeImplicitDeny is a PolicyEvaluationDecisionType enum value
    PolicyEvaluationDecisionTypeImplicitDeny = "implicitDeny"
)
const (
    // PolicySourceTypeUser is a PolicySourceType enum value
    PolicySourceTypeUser = "user"

    // PolicySourceTypeGroup is a PolicySourceType enum value
    PolicySourceTypeGroup = "group"

    // PolicySourceTypeRole is a PolicySourceType enum value
    PolicySourceTypeRole = "role"

    // PolicySourceTypeAwsManaged is a PolicySourceType enum value
    PolicySourceTypeAwsManaged = "aws-managed"

    // PolicySourceTypeUserManaged is a PolicySourceType enum value
    PolicySourceTypeUserManaged = "user-managed"

    // PolicySourceTypeResource is a PolicySourceType enum value
    PolicySourceTypeResource = "resource"

    // PolicySourceTypeNone is a PolicySourceType enum value
    PolicySourceTypeNone = "none"
)
const (
    // ReportStateTypeStarted is a ReportStateType enum value
    ReportStateTypeStarted = "STARTED"

    // ReportStateTypeInprogress is a ReportStateType enum value
    ReportStateTypeInprogress = "INPROGRESS"

    // ReportStateTypeComplete is a ReportStateType enum value
    ReportStateTypeComplete = "COMPLETE"
)
const (
    // AssignmentStatusTypeAssigned is a assignmentStatusType enum value
    AssignmentStatusTypeAssigned = "Assigned"

    // AssignmentStatusTypeUnassigned is a assignmentStatusType enum value
    AssignmentStatusTypeUnassigned = "Unassigned"

    // AssignmentStatusTypeAny is a assignmentStatusType enum value
    AssignmentStatusTypeAny = "Any"
)
const (
    // EncodingTypeSsh is a encodingType enum value
    EncodingTypeSsh = "SSH"

    // EncodingTypePem is a encodingType enum value
    EncodingTypePem = "PEM"
)
const (
    // PolicyScopeTypeAll is a policyScopeType enum value
    PolicyScopeTypeAll = "All"

    // PolicyScopeTypeAws is a policyScopeType enum value
    PolicyScopeTypeAws = "AWS"

    // PolicyScopeTypeLocal is a policyScopeType enum value
    PolicyScopeTypeLocal = "Local"
)
const (
    // StatusTypeActive is a statusType enum value
    StatusTypeActive = "Active"

    // StatusTypeInactive is a statusType enum value
    StatusTypeInactive = "Inactive"
)
const (
    // SummaryKeyTypeUsers is a summaryKeyType enum value
    SummaryKeyTypeUsers = "Users"

    // SummaryKeyTypeUsersQuota is a summaryKeyType enum value
    SummaryKeyTypeUsersQuota = "UsersQuota"

    // SummaryKeyTypeGroups is a summaryKeyType enum value
    SummaryKeyTypeGroups = "Groups"

    // SummaryKeyTypeGroupsQuota is a summaryKeyType enum value
    SummaryKeyTypeGroupsQuota = "GroupsQuota"

    // SummaryKeyTypeServerCertificates is a summaryKeyType enum value
    SummaryKeyTypeServerCertificates = "ServerCertificates"

    // SummaryKeyTypeServerCertificatesQuota is a summaryKeyType enum value
    SummaryKeyTypeServerCertificatesQuota = "ServerCertificatesQuota"

    // SummaryKeyTypeUserPolicySizeQuota is a summaryKeyType enum value
    SummaryKeyTypeUserPolicySizeQuota = "UserPolicySizeQuota"

    // SummaryKeyTypeGroupPolicySizeQuota is a summaryKeyType enum value
    SummaryKeyTypeGroupPolicySizeQuota = "GroupPolicySizeQuota"

    // SummaryKeyTypeGroupsPerUserQuota is a summaryKeyType enum value
    SummaryKeyTypeGroupsPerUserQuota = "GroupsPerUserQuota"

    // SummaryKeyTypeSigningCertificatesPerUserQuota is a summaryKeyType enum value
    SummaryKeyTypeSigningCertificatesPerUserQuota = "SigningCertificatesPerUserQuota"

    // SummaryKeyTypeAccessKeysPerUserQuota is a summaryKeyType enum value
    SummaryKeyTypeAccessKeysPerUserQuota = "AccessKeysPerUserQuota"

    // SummaryKeyTypeMfadevices is a summaryKeyType enum value
    SummaryKeyTypeMfadevices = "MFADevices"

    // SummaryKeyTypeMfadevicesInUse is a summaryKeyType enum value
    SummaryKeyTypeMfadevicesInUse = "MFADevicesInUse"

    // SummaryKeyTypeAccountMfaenabled is a summaryKeyType enum value
    SummaryKeyTypeAccountMfaenabled = "AccountMFAEnabled"

    // SummaryKeyTypeAccountAccessKeysPresent is a summaryKeyType enum value
    SummaryKeyTypeAccountAccessKeysPresent = "AccountAccessKeysPresent"

    // SummaryKeyTypeAccountSigningCertificatesPresent is a summaryKeyType enum value
    SummaryKeyTypeAccountSigningCertificatesPresent = "AccountSigningCertificatesPresent"

    // SummaryKeyTypeAttachedPoliciesPerGroupQuota is a summaryKeyType enum value
    SummaryKeyTypeAttachedPoliciesPerGroupQuota = "AttachedPoliciesPerGroupQuota"

    // SummaryKeyTypeAttachedPoliciesPerRoleQuota is a summaryKeyType enum value
    SummaryKeyTypeAttachedPoliciesPerRoleQuota = "AttachedPoliciesPerRoleQuota"

    // SummaryKeyTypeAttachedPoliciesPerUserQuota is a summaryKeyType enum value
    SummaryKeyTypeAttachedPoliciesPerUserQuota = "AttachedPoliciesPerUserQuota"

    // SummaryKeyTypePolicies is a summaryKeyType enum value
    SummaryKeyTypePolicies = "Policies"

    // SummaryKeyTypePoliciesQuota is a summaryKeyType enum value
    SummaryKeyTypePoliciesQuota = "PoliciesQuota"

    // SummaryKeyTypePolicySizeQuota is a summaryKeyType enum value
    SummaryKeyTypePolicySizeQuota = "PolicySizeQuota"

    // SummaryKeyTypePolicyVersionsInUse is a summaryKeyType enum value
    SummaryKeyTypePolicyVersionsInUse = "PolicyVersionsInUse"

    // SummaryKeyTypePolicyVersionsInUseQuota is a summaryKeyType enum value
    SummaryKeyTypePolicyVersionsInUseQuota = "PolicyVersionsInUseQuota"

    // SummaryKeyTypeVersionsPerPolicyQuota is a summaryKeyType enum value
    SummaryKeyTypeVersionsPerPolicyQuota = "VersionsPerPolicyQuota"
)
const (

    // ErrCodeCredentialReportExpiredException for service response error code
    // "ReportExpired".
    //
    // The request was rejected because the most recent credential report has expired.
    // To generate a new credential report, use GenerateCredentialReport. For more
    // information about credential report expiration, see Getting Credential Reports
    // (http://docs.aws.amazon.com/IAM/latest/UserGuide/credential-reports.html)
    // in the IAM User Guide.
    ErrCodeCredentialReportExpiredException = "ReportExpired"

    // ErrCodeCredentialReportNotPresentException for service response error code
    // "ReportNotPresent".
    //
    // The request was rejected because the credential report does not exist. To
    // generate a credential report, use GenerateCredentialReport.
    ErrCodeCredentialReportNotPresentException = "ReportNotPresent"

    // ErrCodeCredentialReportNotReadyException for service response error code
    // "ReportInProgress".
    //
    // The request was rejected because the credential report is still being generated.
    ErrCodeCredentialReportNotReadyException = "ReportInProgress"

    // ErrCodeDeleteConflictException for service response error code
    // "DeleteConflict".
    //
    // The request was rejected because it attempted to delete a resource that has
    // attached subordinate entities. The error message describes these entities.
    ErrCodeDeleteConflictException = "DeleteConflict"

    // ErrCodeDuplicateCertificateException for service response error code
    // "DuplicateCertificate".
    //
    // The request was rejected because the same certificate is associated with
    // an IAM user in the account.
    ErrCodeDuplicateCertificateException = "DuplicateCertificate"

    // ErrCodeDuplicateSSHPublicKeyException for service response error code
    // "DuplicateSSHPublicKey".
    //
    // The request was rejected because the SSH public key is already associated
    // with the specified IAM user.
    ErrCodeDuplicateSSHPublicKeyException = "DuplicateSSHPublicKey"

    // ErrCodeEntityAlreadyExistsException for service response error code
    // "EntityAlreadyExists".
    //
    // The request was rejected because it attempted to create a resource that already
    // exists.
    ErrCodeEntityAlreadyExistsException = "EntityAlreadyExists"

    // ErrCodeEntityTemporarilyUnmodifiableException for service response error code
    // "EntityTemporarilyUnmodifiable".
    //
    // The request was rejected because it referenced an entity that is temporarily
    // unmodifiable, such as a user name that was deleted and then recreated. The
    // error indicates that the request is likely to succeed if you try again after
    // waiting several minutes. The error message describes the entity.
    ErrCodeEntityTemporarilyUnmodifiableException = "EntityTemporarilyUnmodifiable"

    // ErrCodeInvalidAuthenticationCodeException for service response error code
    // "InvalidAuthenticationCode".
    //
    // The request was rejected because the authentication code was not recognized.
    // The error message describes the specific error.
    ErrCodeInvalidAuthenticationCodeException = "InvalidAuthenticationCode"

    // ErrCodeInvalidCertificateException for service response error code
    // "InvalidCertificate".
    //
    // The request was rejected because the certificate is invalid.
    ErrCodeInvalidCertificateException = "InvalidCertificate"

    // ErrCodeInvalidInputException for service response error code
    // "InvalidInput".
    //
    // The request was rejected because an invalid or out-of-range value was supplied
    // for an input parameter.
    ErrCodeInvalidInputException = "InvalidInput"

    // ErrCodeInvalidPublicKeyException for service response error code
    // "InvalidPublicKey".
    //
    // The request was rejected because the public key is malformed or otherwise
    // invalid.
    ErrCodeInvalidPublicKeyException = "InvalidPublicKey"

    // ErrCodeInvalidUserTypeException for service response error code
    // "InvalidUserType".
    //
    // The request was rejected because the type of user for the transaction was
    // incorrect.
    ErrCodeInvalidUserTypeException = "InvalidUserType"

    // ErrCodeKeyPairMismatchException for service response error code
    // "KeyPairMismatch".
    //
    // The request was rejected because the public key certificate and the private
    // key do not match.
    ErrCodeKeyPairMismatchException = "KeyPairMismatch"

    // ErrCodeLimitExceededException for service response error code
    // "LimitExceeded".
    //
    // The request was rejected because it attempted to create resources beyond
    // the current AWS account limits. The error message describes the limit exceeded.
    ErrCodeLimitExceededException = "LimitExceeded"

    // ErrCodeMalformedCertificateException for service response error code
    // "MalformedCertificate".
    //
    // The request was rejected because the certificate was malformed or expired.
    // The error message describes the specific error.
    ErrCodeMalformedCertificateException = "MalformedCertificate"

    // ErrCodeMalformedPolicyDocumentException for service response error code
    // "MalformedPolicyDocument".
    //
    // The request was rejected because the policy document was malformed. The error
    // message describes the specific error.
    ErrCodeMalformedPolicyDocumentException = "MalformedPolicyDocument"

    // ErrCodeNoSuchEntityException for service response error code
    // "NoSuchEntity".
    //
    // The request was rejected because it referenced an entity that does not exist.
    // The error message describes the entity.
    ErrCodeNoSuchEntityException = "NoSuchEntity"

    // ErrCodePasswordPolicyViolationException for service response error code
    // "PasswordPolicyViolation".
    //
    // The request was rejected because the provided password did not meet the requirements
    // imposed by the account password policy.
    ErrCodePasswordPolicyViolationException = "PasswordPolicyViolation"

    // ErrCodePolicyEvaluationException for service response error code
    // "PolicyEvaluation".
    //
    // The request failed because a provided policy could not be successfully evaluated.
    // An additional detailed message indicates the source of the failure.
    ErrCodePolicyEvaluationException = "PolicyEvaluation"

    // ErrCodePolicyNotAttachableException for service response error code
    // "PolicyNotAttachable".
    //
    // The request failed because AWS service role policies can only be attached
    // to the service-linked role for that service.
    ErrCodePolicyNotAttachableException = "PolicyNotAttachable"

    // ErrCodeServiceFailureException for service response error code
    // "ServiceFailure".
    //
    // The request processing has failed because of an unknown error, exception
    // or failure.
    ErrCodeServiceFailureException = "ServiceFailure"

    // ErrCodeServiceNotSupportedException for service response error code
    // "NotSupportedService".
    //
    // The specified service does not support service-specific credentials.
    ErrCodeServiceNotSupportedException = "NotSupportedService"

    // ErrCodeUnmodifiableEntityException for service response error code
    // "UnmodifiableEntity".
    //
    // The request was rejected because only the service that depends on the service-linked
    // role can modify or delete the role on your behalf. The error message includes
    // the name of the service that depends on this service-linked role. You must
    // request the change through that service.
    ErrCodeUnmodifiableEntityException = "UnmodifiableEntity"

    // ErrCodeUnrecognizedPublicKeyEncodingException for service response error code
    // "UnrecognizedPublicKeyEncoding".
    //
    // The request was rejected because the public key encoding format is unsupported
    // or unrecognized.
    ErrCodeUnrecognizedPublicKeyEncodingException = "UnrecognizedPublicKeyEncoding"
)
const (
    ServiceName = "iam"       // Service endpoint prefix API calls made to.
    EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
)

Service information constants

const (
    // ReportFormatTypeTextCsv is a ReportFormatType enum value
    ReportFormatTypeTextCsv = "text/csv"
)

type AccessKey

type AccessKey struct {

    // The ID for this access key.
    //
    // AccessKeyId is a required field
    AccessKeyId *string `min:"16" type:"string" required:"true"`

    // The date when the access key was created.
    CreateDate *time.Time `type:"timestamp" timestampFormat:"iso8601"`

    // The secret key used to sign requests.
    //
    // SecretAccessKey is a required field
    SecretAccessKey *string `type:"string" required:"true"`

    // The status of the access key. Active means the key is valid for API calls,
    // while Inactive means it is not.
    //
    // Status is a required field
    Status *string `type:"string" required:"true" enum:"statusType"`

    // The name of the IAM user that the access key is associated with.
    //
    // UserName is a required field
    UserName *string `min:"1" type:"string" required:"true"`
    // contains filtered or unexported fields
}

Contains information about an AWS access key.

This data type is used as a response element in the CreateAccessKey and ListAccessKeys actions.

The SecretAccessKey value is returned only in response to CreateAccessKey. You can get a secret access key only when you first create an access key; you cannot recover the secret access key later. If you lose a secret access key, you must create a new access key. Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/AccessKey

func (AccessKey) GoString

func (s AccessKey) GoString() string

GoString returns the string representation

func (*AccessKey) SetAccessKeyId

func (s *AccessKey) SetAccessKeyId(v string) *AccessKey

SetAccessKeyId sets the AccessKeyId field's value.

func (*AccessKey) SetCreateDate

func (s *AccessKey) SetCreateDate(v time.Time) *AccessKey

SetCreateDate sets the CreateDate field's value.

func (*AccessKey) SetSecretAccessKey

func (s *AccessKey) SetSecretAccessKey(v string) *AccessKey

SetSecretAccessKey sets the SecretAccessKey field's value.

func (*AccessKey) SetStatus

func (s *AccessKey) SetStatus(v string) *AccessKey

SetStatus sets the Status field's value.

func (*AccessKey) SetUserName

func (s *AccessKey) SetUserName(v string) *AccessKey

SetUserName sets the UserName field's value.

func (AccessKey) String

func (s AccessKey) String() string

String returns the string representation

type AccessKeyLastUsed

type AccessKeyLastUsed struct {

    // The date and time, in ISO 8601 date-time format (http://www.iso.org/iso/iso8601),
    // when the access key was most recently used. This field is null when:
    //
    //    * The user does not have an access key.
    //
    //    * An access key exists but has never been used, at least not since IAM
    //    started tracking this information on April 22nd, 2015.
    //
    //    * There is no sign-in data associated with the user
    //
    // LastUsedDate is a required field
    LastUsedDate *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"`

    // The AWS region where this access key was most recently used. This field is
    // displays "N/A" when:
    //
    //    * The user does not have an access key.
    //
    //    * An access key exists but has never been used, at least not since IAM
    //    started tracking this information on April 22nd, 2015.
    //
    //    * There is no sign-in data associated with the user
    //
    // For more information about AWS regions, see Regions and Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html)
    // in the Amazon Web Services General Reference.
    //
    // Region is a required field
    Region *string `type:"string" required:"true"`

    // The name of the AWS service with which this access key was most recently
    // used. This field displays "N/A" when:
    //
    //    * The user does not have an access key.
    //
    //    * An access key exists but has never been used, at least not since IAM
    //    started tracking this information on April 22nd, 2015.
    //
    //    * There is no sign-in data associated with the user
    //
    // ServiceName is a required field
    ServiceName *string `type:"string" required:"true"`
    // contains filtered or unexported fields
}

Contains information about the last time an AWS access key was used.

This data type is used as a response element in the GetAccessKeyLastUsed action. Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/AccessKeyLastUsed

func (AccessKeyLastUsed) GoString

func (s AccessKeyLastUsed) GoString() string

GoString returns the string representation

func (*AccessKeyLastUsed) SetLastUsedDate

func (s *AccessKeyLastUsed) SetLastUsedDate(v time.Time) *AccessKeyLastUsed

SetLastUsedDate sets the LastUsedDate field's value.

func (*AccessKeyLastUsed) SetRegion

func (s *AccessKeyLastUsed) SetRegion(v string) *AccessKeyLastUsed

SetRegion sets the Region field's value.

func (*AccessKeyLastUsed) SetServiceName

func (s *AccessKeyLastUsed) SetServiceName(v string) *AccessKeyLastUsed

SetServiceName sets the ServiceName field's value.

func (AccessKeyLastUsed) String

func (s AccessKeyLastUsed) String() string

String returns the string representation

type AccessKeyMetadata

type AccessKeyMetadata struct {

    // The ID for this access key.
    AccessKeyId *string `min:"16" type:"string"`

    // The date when the access key was created.
    CreateDate *time.Time `type:"timestamp" timestampFormat:"iso8601"`

    // The status of the access key. Active means the key is valid for API calls;
    // Inactive means it is not.
    Status *string `type:"string" enum:"statusType"`

    // The name of the IAM user that the key is associated with.
    UserName *string `min:"1" type:"string"`
    // contains filtered or unexported fields
}

Contains information about an AWS access key, without its secret key.

This data type is used as a response element in the ListAccessKeys action. Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/AccessKeyMetadata

func (AccessKeyMetadata) GoString

func (s AccessKeyMetadata) GoString() string

GoString returns the string representation

func (*AccessKeyMetadata) SetAccessKeyId

func (s *AccessKeyMetadata) SetAccessKeyId(v string) *AccessKeyMetadata

SetAccessKeyId sets the AccessKeyId field's value.

func (*AccessKeyMetadata) SetCreateDate

func (s *AccessKeyMetadata) SetCreateDate(v time.Time) *AccessKeyMetadata

SetCreateDate sets the CreateDate field's value.

func (*AccessKeyMetadata) SetStatus

func (s *AccessKeyMetadata) SetStatus(v string) *AccessKeyMetadata

SetStatus sets the Status field's value.

func (*AccessKeyMetadata) SetUserName

func (s *AccessKeyMetadata) SetUserName(v string) *AccessKeyMetadata

SetUserName sets the UserName field's value.

func (AccessKeyMetadata) String

func (s AccessKeyMetadata) String() string

String returns the string representation

type AddClientIDToOpenIDConnectProviderInput

type AddClientIDToOpenIDConnectProviderInput struct {

    // The client ID (also known as audience) to add to the IAM OpenID Connect provider
    // resource.
    //
    // ClientID is a required field
    ClientID *string `min:"1" type:"string" required:"true"`

    // The Amazon Resource Name (ARN) of the IAM OpenID Connect (OIDC) provider
    // resource to add the client ID to. You can get a list of OIDC provider ARNs
    // by using the ListOpenIDConnectProviders action.
    //
    // OpenIDConnectProviderArn is a required field
    OpenIDConnectProviderArn *string `min:"20" type:"string" required:"true"`
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/AddClientIDToOpenIDConnectProviderRequest

func (AddClientIDToOpenIDConnectProviderInput) GoString

func (s AddClientIDToOpenIDConnectProviderInput) GoString() string

GoString returns the string representation

func (*AddClientIDToOpenIDConnectProviderInput) SetClientID

func (s *AddClientIDToOpenIDConnectProviderInput) SetClientID(v string) *AddClientIDToOpenIDConnectProviderInput

SetClientID sets the ClientID field's value.

func (*AddClientIDToOpenIDConnectProviderInput) SetOpenIDConnectProviderArn

func (s *AddClientIDToOpenIDConnectProviderInput) SetOpenIDConnectProviderArn(v string) *AddClientIDToOpenIDConnectProviderInput

SetOpenIDConnectProviderArn sets the OpenIDConnectProviderArn field's value.

func (AddClientIDToOpenIDConnectProviderInput) String

func (s AddClientIDToOpenIDConnectProviderInput) String() string

String returns the string representation

func (*AddClientIDToOpenIDConnectProviderInput) Validate

func (s *AddClientIDToOpenIDConnectProviderInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type AddClientIDToOpenIDConnectProviderOutput

type AddClientIDToOpenIDConnectProviderOutput struct {
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/AddClientIDToOpenIDConnectProviderOutput

func (AddClientIDToOpenIDConnectProviderOutput) GoString

func (s AddClientIDToOpenIDConnectProviderOutput) GoString() string

GoString returns the string representation

func (AddClientIDToOpenIDConnectProviderOutput) String

func (s AddClientIDToOpenIDConnectProviderOutput) String() string

String returns the string representation

type AddRoleToInstanceProfileInput

type AddRoleToInstanceProfileInput struct {

    // The name of the instance profile to update.
    //
    // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex))
    // a string of characters consisting of upper and lowercase alphanumeric characters
    // with no spaces. You can also include any of the following characters: =,.@-
    //
    // InstanceProfileName is a required field
    InstanceProfileName *string `min:"1" type:"string" required:"true"`

    // The name of the role to add.
    //
    // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex))
    // a string of characters consisting of upper and lowercase alphanumeric characters
    // with no spaces. You can also include any of the following characters: _+=,.@-
    //
    // RoleName is a required field
    RoleName *string `min:"1" type:"string" required:"true"`
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/AddRoleToInstanceProfileRequest

func (AddRoleToInstanceProfileInput) GoString

func (s AddRoleToInstanceProfileInput) GoString() string

GoString returns the string representation

func (*AddRoleToInstanceProfileInput) SetInstanceProfileName

func (s *AddRoleToInstanceProfileInput) SetInstanceProfileName(v string) *AddRoleToInstanceProfileInput

SetInstanceProfileName sets the InstanceProfileName field's value.

func (*AddRoleToInstanceProfileInput) SetRoleName

func (s *AddRoleToInstanceProfileInput) SetRoleName(v string) *AddRoleToInstanceProfileInput

SetRoleName sets the RoleName field's value.

func (AddRoleToInstanceProfileInput) String

func (s AddRoleToInstanceProfileInput) String() string

String returns the string representation

func (*AddRoleToInstanceProfileInput) Validate

func (s *AddRoleToInstanceProfileInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type AddRoleToInstanceProfileOutput

type AddRoleToInstanceProfileOutput struct {
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/AddRoleToInstanceProfileOutput

func (AddRoleToInstanceProfileOutput) GoString

func (s AddRoleToInstanceProfileOutput) GoString() string

GoString returns the string representation

func (AddRoleToInstanceProfileOutput) String

func (s AddRoleToInstanceProfileOutput) String() string

String returns the string representation

type AddUserToGroupInput

type AddUserToGroupInput struct {

    // The name of the group to update.
    //
    // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex))
    // a string of characters consisting of upper and lowercase alphanumeric characters
    // with no spaces. You can also include any of the following characters: =,.@-
    //
    // GroupName is a required field
    GroupName *string `min:"1" type:"string" required:"true"`

    // The name of the user to add.
    //
    // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex))
    // a string of characters consisting of upper and lowercase alphanumeric characters
    // with no spaces. You can also include any of the following characters: =,.@-
    //
    // UserName is a required field
    UserName *string `min:"1" type:"string" required:"true"`
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/AddUserToGroupRequest

func (AddUserToGroupInput) GoString

func (s AddUserToGroupInput) GoString() string

GoString returns the string representation

func (*AddUserToGroupInput) SetGroupName

func (s *AddUserToGroupInput) SetGroupName(v string) *AddUserToGroupInput

SetGroupName sets the GroupName field's value.

func (*AddUserToGroupInput) SetUserName

func (s *AddUserToGroupInput) SetUserName(v string) *AddUserToGroupInput

SetUserName sets the UserName field's value.

func (AddUserToGroupInput) String

func (s AddUserToGroupInput) String() string

String returns the string representation

func (*AddUserToGroupInput) Validate

func (s *AddUserToGroupInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type AddUserToGroupOutput

type AddUserToGroupOutput struct {
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/AddUserToGroupOutput

func (AddUserToGroupOutput) GoString

func (s AddUserToGroupOutput) GoString() string

GoString returns the string representation

func (AddUserToGroupOutput) String

func (s AddUserToGroupOutput) String() string

String returns the string representation

type AttachGroupPolicyInput

type AttachGroupPolicyInput struct {

    // The name (friendly name, not ARN) of the group to attach the policy to.
    //
    // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex))
    // a string of characters consisting of upper and lowercase alphanumeric characters
    // with no spaces. You can also include any of the following characters: =,.@-
    //
    // GroupName is a required field
    GroupName *string `min:"1" type:"string" required:"true"`

    // The Amazon Resource Name (ARN) of the IAM policy you want to attach.
    //
    // For more information about ARNs, see Amazon Resource Names (ARNs) and AWS
    // Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html)
    // in the AWS General Reference.
    //
    // PolicyArn is a required field
    PolicyArn *string `min:"20" type:"string" required:"true"`
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/AttachGroupPolicyRequest

func (AttachGroupPolicyInput) GoString

func (s AttachGroupPolicyInput) GoString() string

GoString returns the string representation

func (*AttachGroupPolicyInput) SetGroupName

func (s *AttachGroupPolicyInput) SetGroupName(v string) *AttachGroupPolicyInput

SetGroupName sets the GroupName field's value.

func (*AttachGroupPolicyInput) SetPolicyArn

func (s *AttachGroupPolicyInput) SetPolicyArn(v string) *AttachGroupPolicyInput

SetPolicyArn sets the PolicyArn field's value.

func (AttachGroupPolicyInput) String

func (s AttachGroupPolicyInput) String() string

String returns the string representation

func (*AttachGroupPolicyInput) Validate

func (s *AttachGroupPolicyInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type AttachGroupPolicyOutput

type AttachGroupPolicyOutput struct {
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/AttachGroupPolicyOutput

func (AttachGroupPolicyOutput) GoString

func (s AttachGroupPolicyOutput) GoString() string

GoString returns the string representation

func (AttachGroupPolicyOutput) String

func (s AttachGroupPolicyOutput) String() string

String returns the string representation

type AttachRolePolicyInput

type AttachRolePolicyInput struct {

    // The Amazon Resource Name (ARN) of the IAM policy you want to attach.
    //
    // For more information about ARNs, see Amazon Resource Names (ARNs) and AWS
    // Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html)
    // in the AWS General Reference.
    //
    // PolicyArn is a required field
    PolicyArn *string `min:"20" type:"string" required:"true"`

    // The name (friendly name, not ARN) of the role to attach the policy to.
    //
    // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex))
    // a string of characters consisting of upper and lowercase alphanumeric characters
    // with no spaces. You can also include any of the following characters: _+=,.@-
    //
    // RoleName is a required field
    RoleName *string `min:"1" type:"string" required:"true"`
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/AttachRolePolicyRequest

func (AttachRolePolicyInput) GoString

func (s AttachRolePolicyInput) GoString() string

GoString returns the string representation

func (*AttachRolePolicyInput) SetPolicyArn

func (s *AttachRolePolicyInput) SetPolicyArn(v string) *AttachRolePolicyInput

SetPolicyArn sets the PolicyArn field's value.

func (*AttachRolePolicyInput) SetRoleName

func (s *AttachRolePolicyInput) SetRoleName(v string) *AttachRolePolicyInput

SetRoleName sets the RoleName field's value.

func (AttachRolePolicyInput) String

func (s AttachRolePolicyInput) String() string

String returns the string representation

func (*AttachRolePolicyInput) Validate

func (s *AttachRolePolicyInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type AttachRolePolicyOutput

type AttachRolePolicyOutput struct {
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/AttachRolePolicyOutput

func (AttachRolePolicyOutput) GoString

func (s AttachRolePolicyOutput) GoString() string

GoString returns the string representation

func (AttachRolePolicyOutput) String

func (s AttachRolePolicyOutput) String() string

String returns the string representation

type AttachUserPolicyInput

type AttachUserPolicyInput struct {

    // The Amazon Resource Name (ARN) of the IAM policy you want to attach.
    //
    // For more information about ARNs, see Amazon Resource Names (ARNs) and AWS
    // Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html)
    // in the AWS General Reference.
    //
    // PolicyArn is a required field
    PolicyArn *string `min:"20" type:"string" required:"true"`

    // The name (friendly name, not ARN) of the IAM user to attach the policy to.
    //
    // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex))
    // a string of characters consisting of upper and lowercase alphanumeric characters
    // with no spaces. You can also include any of the following characters: =,.@-
    //
    // UserName is a required field
    UserName *string `min:"1" type:"string" required:"true"`
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/AttachUserPolicyRequest

func (AttachUserPolicyInput) GoString

func (s AttachUserPolicyInput) GoString() string

GoString returns the string representation

func (*AttachUserPolicyInput) SetPolicyArn

func (s *AttachUserPolicyInput) SetPolicyArn(v string) *AttachUserPolicyInput

SetPolicyArn sets the PolicyArn field's value.

func (*AttachUserPolicyInput) SetUserName

func (s *AttachUserPolicyInput) SetUserName(v string) *AttachUserPolicyInput

SetUserName sets the UserName field's value.

func (AttachUserPolicyInput) String

func (s AttachUserPolicyInput) String() string

String returns the string representation

func (*AttachUserPolicyInput) Validate

func (s *AttachUserPolicyInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type AttachUserPolicyOutput

type AttachUserPolicyOutput struct {
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/AttachUserPolicyOutput

func (AttachUserPolicyOutput) GoString

func (s AttachUserPolicyOutput) GoString() string

GoString returns the string representation

func (AttachUserPolicyOutput) String

func (s AttachUserPolicyOutput) String() string

String returns the string representation

type AttachedPolicy

type AttachedPolicy struct {

    // The Amazon Resource Name (ARN). ARNs are unique identifiers for AWS resources.
    //
    // For more information about ARNs, go to Amazon Resource Names (ARNs) and AWS
    // Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html)
    // in the AWS General Reference.
    PolicyArn *string `min:"20" type:"string"`

    // The friendly name of the attached policy.
    PolicyName *string `min:"1" type:"string"`
    // contains filtered or unexported fields
}

Contains information about an attached policy.

An attached policy is a managed policy that has been attached to a user, group, or role. This data type is used as a response element in the ListAttachedGroupPolicies, ListAttachedRolePolicies, ListAttachedUserPolicies, and GetAccountAuthorizationDetails actions.

For more information about managed policies, refer to Managed Policies and Inline Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) in the Using IAM guide. Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/AttachedPolicy

func (AttachedPolicy) GoString

func (s AttachedPolicy) GoString() string

GoString returns the string representation

func (*AttachedPolicy) SetPolicyArn

func (s *AttachedPolicy) SetPolicyArn(v string) *AttachedPolicy

SetPolicyArn sets the PolicyArn field's value.

func (*AttachedPolicy) SetPolicyName

func (s *AttachedPolicy) SetPolicyName(v string) *AttachedPolicy

SetPolicyName sets the PolicyName field's value.

func (AttachedPolicy) String

func (s AttachedPolicy) String() string

String returns the string representation

type ChangePasswordInput

type ChangePasswordInput struct {

    // The new password. The new password must conform to the AWS account's password
    // policy, if one exists.
    //
    // The regex pattern (http://wikipedia.org/wiki/regex) used to validate this
    // parameter is a string of characters consisting of almost any printable ASCII
    // character from the space (\u0020) through the end of the ASCII character
    // range (\u00FF). You can also include the tab (\u0009), line feed (\u000A),
    // and carriage return (\u000D) characters. Although any of these characters
    // are valid in a password, note that many tools, such as the AWS Management
    // Console, might restrict the ability to enter certain characters because they
    // have special meaning within that tool.
    //
    // NewPassword is a required field
    NewPassword *string `min:"1" type:"string" required:"true"`

    // The IAM user's current password.
    //
    // OldPassword is a required field
    OldPassword *string `min:"1" type:"string" required:"true"`
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ChangePasswordRequest

func (ChangePasswordInput) GoString

func (s ChangePasswordInput) GoString() string

GoString returns the string representation

func (*ChangePasswordInput) SetNewPassword

func (s *ChangePasswordInput) SetNewPassword(v string) *ChangePasswordInput

SetNewPassword sets the NewPassword field's value.

func (*ChangePasswordInput) SetOldPassword

func (s *ChangePasswordInput) SetOldPassword(v string) *ChangePasswordInput

SetOldPassword sets the OldPassword field's value.

func (ChangePasswordInput) String

func (s ChangePasswordInput) String() string

String returns the string representation

func (*ChangePasswordInput) Validate

func (s *ChangePasswordInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ChangePasswordOutput

type ChangePasswordOutput struct {
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ChangePasswordOutput

func (ChangePasswordOutput) GoString

func (s ChangePasswordOutput) GoString() string

GoString returns the string representation

func (ChangePasswordOutput) String

func (s ChangePasswordOutput) String() string

String returns the string representation

type ContextEntry

type ContextEntry struct {

    // The full name of a condition context key, including the service prefix. For
    // example, aws:SourceIp or s3:VersionId.
    ContextKeyName *string `min:"5" type:"string"`

    // The data type of the value (or values) specified in the ContextKeyValues
    // parameter.
    ContextKeyType *string `type:"string" enum:"ContextKeyTypeEnum"`

    // The value (or values, if the condition context key supports multiple values)
    // to provide to the simulation for use when the key is referenced by a Condition
    // element in an input policy.
    ContextKeyValues []*string `type:"list"`
    // contains filtered or unexported fields
}

Contains information about a condition context key. It includes the name of the key and specifies the value (or values, if the context key supports multiple values) to use in the simulation. This information is used when evaluating the Condition elements of the input policies.

This data type is used as an input parameter to SimulateCustomPolicy and SimulateCustomPolicy. Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ContextEntry

func (ContextEntry) GoString

func (s ContextEntry) GoString() string

GoString returns the string representation

func (*ContextEntry) SetContextKeyName

func (s *ContextEntry) SetContextKeyName(v string) *ContextEntry

SetContextKeyName sets the ContextKeyName field's value.

func (*ContextEntry) SetContextKeyType

func (s *ContextEntry) SetContextKeyType(v string) *ContextEntry

SetContextKeyType sets the ContextKeyType field's value.

func (*ContextEntry) SetContextKeyValues

func (s *ContextEntry) SetContextKeyValues(v []*string) *ContextEntry

SetContextKeyValues sets the ContextKeyValues field's value.

func (ContextEntry) String

func (s ContextEntry) String() string

String returns the string representation

func (*ContextEntry) Validate

func (s *ContextEntry) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type CreateAccessKeyInput

type CreateAccessKeyInput struct {

    // The name of the IAM user that the new key will belong to.
    //
    // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex))
    // a string of characters consisting of upper and lowercase alphanumeric characters
    // with no spaces. You can also include any of the following characters: =,.@-
    UserName *string `min:"1" type:"string"`
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateAccessKeyRequest

func (CreateAccessKeyInput) GoString

func (s CreateAccessKeyInput) GoString() string

GoString returns the string representation

func (*CreateAccessKeyInput) SetUserName

func (s *CreateAccessKeyInput) SetUserName(v string) *CreateAccessKeyInput

SetUserName sets the UserName field's value.

func (CreateAccessKeyInput) String

func (s CreateAccessKeyInput) String() string

String returns the string representation

func (*CreateAccessKeyInput) Validate

func (s *CreateAccessKeyInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type CreateAccessKeyOutput

type CreateAccessKeyOutput struct {

    // A structure with details about the access key.
    //
    // AccessKey is a required field
    AccessKey *AccessKey `type:"structure" required:"true"`
    // contains filtered or unexported fields
}

Contains the response to a successful CreateAccessKey request. Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateAccessKeyResponse

func (CreateAccessKeyOutput) GoString

func (s CreateAccessKeyOutput) GoString() string

GoString returns the string representation

func (*CreateAccessKeyOutput) SetAccessKey

func (s *CreateAccessKeyOutput) SetAccessKey(v *AccessKey) *CreateAccessKeyOutput

SetAccessKey sets the AccessKey field's value.

func (CreateAccessKeyOutput) String

func (s CreateAccessKeyOutput) String() string

String returns the string representation

type CreateAccountAliasInput

type CreateAccountAliasInput struct {

    // The account alias to create.
    //
    // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex))
    // a string of characters consisting of lowercase letters, digits, and dashes.
    // You cannot start or finish with a dash, nor can you have two dashes in a
    // row.
    //
    // AccountAlias is a required field
    AccountAlias *string `min:"3" type:"string" required:"true"`
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateAccountAliasRequest

func (CreateAccountAliasInput) GoString

func (s CreateAccountAliasInput) GoString() string

GoString returns the string representation

func (*CreateAccountAliasInput) SetAccountAlias

func (s *CreateAccountAliasInput) SetAccountAlias(v string) *CreateAccountAliasInput

SetAccountAlias sets the AccountAlias field's value.

func (CreateAccountAliasInput) String

func (s CreateAccountAliasInput) String() string

String returns the string representation

func (*CreateAccountAliasInput) Validate

func (s *CreateAccountAliasInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type CreateAccountAliasOutput

type CreateAccountAliasOutput struct {
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateAccountAliasOutput

func (CreateAccountAliasOutput) GoString

func (s CreateAccountAliasOutput) GoString() string

GoString returns the string representation

func (CreateAccountAliasOutput) String

func (s CreateAccountAliasOutput) String() string

String returns the string representation

type CreateGroupInput

type CreateGroupInput struct {

    // The name of the group to create. Do not include the path in this value.
    //
    // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex))
    // a string of characters consisting of upper and lowercase alphanumeric characters
    // with no spaces. You can also include any of the following characters: =,.@-.
    // The group name must be unique within the account. Group names are not distinguished
    // by case. For example, you cannot create groups named both "ADMINS" and "admins".
    //
    // GroupName is a required field
    GroupName *string `min:"1" type:"string" required:"true"`

    // The path to the group. For more information about paths, see IAM Identifiers
    // (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html)
    // in the IAM User Guide.
    //
    // This parameter is optional. If it is not included, it defaults to a slash
    // (/).
    //
    // This paramater allows (per its regex pattern (http://wikipedia.org/wiki/regex))
    // a string of characters consisting of either a forward slash (/) by itself
    // or a string that must begin and end with forward slashes, containing any
    // ASCII character from the ! (\u0021) thru the DEL character (\u007F), including
    // most punctuation characters, digits, and upper and lowercased letters.
    Path *string `min:"1" type:"string"`
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateGroupRequest

func (CreateGroupInput) GoString

func (s CreateGroupInput) GoString() string

GoString returns the string representation

func (*CreateGroupInput) SetGroupName

func (s *CreateGroupInput) SetGroupName(v string) *CreateGroupInput

SetGroupName sets the GroupName field's value.

func (*CreateGroupInput) SetPath

func (s *CreateGroupInput) SetPath(v string) *CreateGroupInput

SetPath sets the Path field's value.

func (CreateGroupInput) String

func (s CreateGroupInput) String() string

String returns the string representation

func (*CreateGroupInput) Validate

func (s *CreateGroupInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type CreateGroupOutput

type CreateGroupOutput struct {

    // A structure containing details about the new group.
    //
    // Group is a required field
    Group *Group `type:"structure" required:"true"`
    // contains filtered or unexported fields
}

Contains the response to a successful CreateGroup request. Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateGroupResponse

func (CreateGroupOutput) GoString

func (s CreateGroupOutput) GoString() string

GoString returns the string representation

func (*CreateGroupOutput) SetGroup

func (s *CreateGroupOutput) SetGroup(v *Group) *CreateGroupOutput

SetGroup sets the Group field's value.

func (CreateGroupOutput) String

func (s CreateGroupOutput) String() string

String returns the string representation

type CreateInstanceProfileInput

type CreateInstanceProfileInput struct {

    // The name of the instance profile to create.
    //
    // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex))
    // a string of characters consisting of upper and lowercase alphanumeric characters
    // with no spaces. You can also include any of the following characters: =,.@-
    //
    // InstanceProfileName is a required field
    InstanceProfileName *string `min:"1" type:"string" required:"true"`

    // The path to the instance profile. For more information about paths, see IAM
    // Identifiers (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html)
    // in the IAM User Guide.
    //
    // This parameter is optional. If it is not included, it defaults to a slash
    // (/).
    //
    // This paramater allows (per its regex pattern (http://wikipedia.org/wiki/regex))
    // a string of characters consisting of either a forward slash (/) by itself
    // or a string that must begin and end with forward slashes, containing any
    // ASCII character from the ! (\u0021) thru the DEL character (\u007F), including
    // most punctuation characters, digits, and upper and lowercased letters.
    Path *string `min:"1" type:"string"`
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateInstanceProfileRequest

func (CreateInstanceProfileInput) GoString

func (s CreateInstanceProfileInput) GoString() string

GoString returns the string representation

func (*CreateInstanceProfileInput) SetInstanceProfileName

func (s *CreateInstanceProfileInput) SetInstanceProfileName(v string) *CreateInstanceProfileInput

SetInstanceProfileName sets the InstanceProfileName field's value.

func (*CreateInstanceProfileInput) SetPath

func (s *CreateInstanceProfileInput) SetPath(v string) *CreateInstanceProfileInput

SetPath sets the Path field's value.

func (CreateInstanceProfileInput) String

func (s CreateInstanceProfileInput) String() string

String returns the string representation

func (*CreateInstanceProfileInput) Validate

func (s *CreateInstanceProfileInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type CreateInstanceProfileOutput

type CreateInstanceProfileOutput struct {

    // A structure containing details about the new instance profile.
    //
    // InstanceProfile is a required field
    InstanceProfile *InstanceProfile `type:"structure" required:"true"`
    // contains filtered or unexported fields
}

Contains the response to a successful CreateInstanceProfile request. Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateInstanceProfileResponse

func (CreateInstanceProfileOutput) GoString

func (s CreateInstanceProfileOutput) GoString() string

GoString returns the string representation

func (*CreateInstanceProfileOutput) SetInstanceProfile

func (s *CreateInstanceProfileOutput) SetInstanceProfile(v *InstanceProfile) *CreateInstanceProfileOutput

SetInstanceProfile sets the InstanceProfile field's value.

func (CreateInstanceProfileOutput) String

func (s CreateInstanceProfileOutput) String() string

String returns the string representation

type CreateLoginProfileInput

type CreateLoginProfileInput struct {

    // The new password for the user.
    //
    // The regex pattern (http://wikipedia.org/wiki/regex) used to validate this
    // parameter is a string of characters consisting of almost any printable ASCII
    // character from the space (\u0020) through the end of the ASCII character
    // range (\u00FF). You can also include the tab (\u0009), line feed (\u000A),
    // and carriage return (\u000D) characters. Although any of these characters
    // are valid in a password, note that many tools, such as the AWS Management
    // Console, might restrict the ability to enter certain characters because they
    // have special meaning within that tool.
    //
    // Password is a required field
    Password *string `min:"1" type:"string" required:"true"`

    // Specifies whether the user is required to set a new password on next sign-in.
    PasswordResetRequired *bool `type:"boolean"`

    // The name of the IAM user to create a password for. The user must already
    // exist.
    //
    // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex))
    // a string of characters consisting of upper and lowercase alphanumeric characters
    // with no spaces. You can also include any of the following characters: =,.@-
    //
    // UserName is a required field
    UserName *string `min:"1" type:"string" required:"true"`
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateLoginProfileRequest

func (CreateLoginProfileInput) GoString

func (s CreateLoginProfileInput) GoString() string

GoString returns the string representation

func (*CreateLoginProfileInput) SetPassword

func (s *CreateLoginProfileInput) SetPassword(v string) *CreateLoginProfileInput

SetPassword sets the Password field's value.

func (*CreateLoginProfileInput) SetPasswordResetRequired

func (s *CreateLoginProfileInput) SetPasswordResetRequired(v bool) *CreateLoginProfileInput

SetPasswordResetRequired sets the PasswordResetRequired field's value.

func (*CreateLoginProfileInput) SetUserName

func (s *CreateLoginProfileInput) SetUserName(v string) *CreateLoginProfileInput

SetUserName sets the UserName field's value.

func (CreateLoginProfileInput) String

func (s CreateLoginProfileInput) String() string

String returns the string representation

func (*CreateLoginProfileInput) Validate

func (s *CreateLoginProfileInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type CreateLoginProfileOutput

type CreateLoginProfileOutput struct {

    // A structure containing the user name and password create date.
    //
    // LoginProfile is a required field
    LoginProfile *LoginProfile `type:"structure" required:"true"`
    // contains filtered or unexported fields
}

Contains the response to a successful CreateLoginProfile request. Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateLoginProfileResponse

func (CreateLoginProfileOutput) GoString

func (s CreateLoginProfileOutput) GoString() string

GoString returns the string representation

func (*CreateLoginProfileOutput) SetLoginProfile

func (s *CreateLoginProfileOutput) SetLoginProfile(v *LoginProfile) *CreateLoginProfileOutput

SetLoginProfile sets the LoginProfile field's value.

func (CreateLoginProfileOutput) String

func (s CreateLoginProfileOutput) String() string

String returns the string representation

type CreateOpenIDConnectProviderInput

type CreateOpenIDConnectProviderInput struct {

    // A list of client IDs (also known as audiences). When a mobile or web app
    // registers with an OpenID Connect provider, they establish a value that identifies
    // the application. (This is the value that's sent as the client_id parameter
    // on OAuth requests.)
    //
    // You can register multiple client IDs with the same provider. For example,
    // you might have multiple applications that use the same OIDC provider. You
    // cannot register more than 100 client IDs with a single IAM OIDC provider.
    //
    // There is no defined format for a client ID. The CreateOpenIDConnectProviderRequest
    // action accepts client IDs up to 255 characters long.
    ClientIDList []*string `type:"list"`

    // A list of server certificate thumbprints for the OpenID Connect (OIDC) identity
    // provider's server certificate(s). Typically this list includes only one entry.
    // However, IAM lets you have up to five thumbprints for an OIDC provider. This
    // lets you maintain multiple thumbprints if the identity provider is rotating
    // certificates.
    //
    // The server certificate thumbprint is the hex-encoded SHA-1 hash value of
    // the X.509 certificate used by the domain where the OpenID Connect provider
    // makes its keys available. It is always a 40-character string.
    //
    // You must provide at least one thumbprint when creating an IAM OIDC provider.
    // For example, if the OIDC provider is server.example.com and the provider
    // stores its keys at "https://keys.server.example.com/openid-connect", the
    // thumbprint string would be the hex-encoded SHA-1 hash value of the certificate
    // used by https://keys.server.example.com.
    //
    // For more information about obtaining the OIDC provider's thumbprint, see
    // Obtaining the Thumbprint for an OpenID Connect Provider (http://docs.aws.amazon.com/IAM/latest/UserGuide/identity-providers-oidc-obtain-thumbprint.html)
    // in the IAM User Guide.
    //
    // ThumbprintList is a required field
    ThumbprintList []*string `type:"list" required:"true"`

    // The URL of the identity provider. The URL must begin with "https://" and
    // should correspond to the iss claim in the provider's OpenID Connect ID tokens.
    // Per the OIDC standard, path components are allowed but query parameters are
    // not. Typically the URL consists of only a host name, like "https://server.example.org"
    // or "https://example.com".
    //
    // You cannot register the same provider multiple times in a single AWS account.
    // If you try to submit a URL that has already been used for an OpenID Connect
    // provider in the AWS account, you will get an error.
    //
    // Url is a required field
    Url *string `min:"1" type:"string" required:"true"`
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateOpenIDConnectProviderRequest

func (CreateOpenIDConnectProviderInput) GoString

func (s CreateOpenIDConnectProviderInput) GoString() string

GoString returns the string representation

func (*CreateOpenIDConnectProviderInput) SetClientIDList

func (s *CreateOpenIDConnectProviderInput) SetClientIDList(v []*string) *CreateOpenIDConnectProviderInput

SetClientIDList sets the ClientIDList field's value.

func (*CreateOpenIDConnectProviderInput) SetThumbprintList

func (s *CreateOpenIDConnectProviderInput) SetThumbprintList(v []*string) *CreateOpenIDConnectProviderInput

SetThumbprintList sets the ThumbprintList field's value.

func (*CreateOpenIDConnectProviderInput) SetUrl

func (s *CreateOpenIDConnectProviderInput) SetUrl(v string) *CreateOpenIDConnectProviderInput

SetUrl sets the Url field's value.

func (CreateOpenIDConnectProviderInput) String

func (s CreateOpenIDConnectProviderInput) String() string

String returns the string representation

func (*CreateOpenIDConnectProviderInput) Validate

func (s *CreateOpenIDConnectProviderInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type CreateOpenIDConnectProviderOutput

type CreateOpenIDConnectProviderOutput struct {

    // The Amazon Resource Name (ARN) of the new IAM OpenID Connect provider that
    // is created. For more information, see OpenIDConnectProviderListEntry.
    OpenIDConnectProviderArn *string `min:"20" type:"string"`
    // contains filtered or unexported fields
}

Contains the response to a successful CreateOpenIDConnectProvider request. Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateOpenIDConnectProviderResponse

func (CreateOpenIDConnectProviderOutput) GoString

func (s CreateOpenIDConnectProviderOutput) GoString() string

GoString returns the string representation

func (*CreateOpenIDConnectProviderOutput) SetOpenIDConnectProviderArn

func (s *CreateOpenIDConnectProviderOutput) SetOpenIDConnectProviderArn(v string) *CreateOpenIDConnectProviderOutput

SetOpenIDConnectProviderArn sets the OpenIDConnectProviderArn field's value.

func (CreateOpenIDConnectProviderOutput) String

func (s CreateOpenIDConnectProviderOutput) String() string

String returns the string representation

type CreatePolicyInput

type CreatePolicyInput struct {

    // A friendly description of the policy.
    //
    // Typically used to store information about the permissions defined in the
    // policy. For example, "Grants access to production DynamoDB tables."
    //
    // The policy description is immutable. After a value is assigned, it cannot
    // be changed.
    Description *string `type:"string"`

    // The path for the policy.
    //
    // For more information about paths, see IAM Identifiers (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html)
    // in the IAM User Guide.
    //
    // This parameter is optional. If it is not included, it defaults to a slash
    // (/).
    //
    // This paramater allows (per its regex pattern (http://wikipedia.org/wiki/regex))
    // a string of characters consisting of either a forward slash (/) by itself
    // or a string that must begin and end with forward slashes, containing any
    // ASCII character from the ! (\u0021) thru the DEL character (\u007F), including
    // most punctuation characters, digits, and upper and lowercased letters.
    Path *string `type:"string"`

    // The JSON policy document that you want to use as the content for the new
    // policy.
    //
    // The regex pattern (http://wikipedia.org/wiki/regex) used to validate this
    // parameter is a string of characters consisting of any printable ASCII character
    // ranging from the space character (\u0020) through end of the ASCII character
    // range as well as the printable characters in the Basic Latin and Latin-1
    // Supplement character set (through \u00FF). It also includes the special characters
    // tab (\u0009), line feed (\u000A), and carriage return (\u000D).
    //
    // PolicyDocument is a required field
    PolicyDocument *string `min:"1" type:"string" required:"true"`

    // The friendly name of the policy.
    //
    // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex))
    // a string of characters consisting of upper and lowercase alphanumeric characters
    // with no spaces. You can also include any of the following characters: =,.@-+
    //
    // PolicyName is a required field
    PolicyName *string `min:"1" type:"string" required:"true"`
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreatePolicyRequest

func (CreatePolicyInput) GoString

func (s CreatePolicyInput) GoString() string

GoString returns the string representation

func (*CreatePolicyInput) SetDescription

func (s *CreatePolicyInput) SetDescription(v string) *CreatePolicyInput

SetDescription sets the Description field's value.

func (*CreatePolicyInput) SetPath

func (s *CreatePolicyInput) SetPath(v string) *CreatePolicyInput

SetPath sets the Path field's value.

func (*CreatePolicyInput) SetPolicyDocument

func (s *CreatePolicyInput) SetPolicyDocument(v string) *CreatePolicyInput

SetPolicyDocument sets the PolicyDocument field's value.

func (*CreatePolicyInput) SetPolicyName

func (s *CreatePolicyInput) SetPolicyName(v string) *CreatePolicyInput

SetPolicyName sets the PolicyName field's value.

func (CreatePolicyInput) String

func (s CreatePolicyInput) String() string

String returns the string representation

func (*CreatePolicyInput) Validate

func (s *CreatePolicyInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type CreatePolicyOutput

type CreatePolicyOutput struct {

    // A structure containing details about the new policy.
    Policy *Policy `type:"structure"`
    // contains filtered or unexported fields
}

Contains the response to a successful CreatePolicy request. Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreatePolicyResponse

func (CreatePolicyOutput) GoString

func (s CreatePolicyOutput) GoString() string

GoString returns the string representation

func (*CreatePolicyOutput) SetPolicy

func (s *CreatePolicyOutput) SetPolicy(v *Policy) *CreatePolicyOutput

SetPolicy sets the Policy field's value.

func (CreatePolicyOutput) String

func (s CreatePolicyOutput) String() string

String returns the string representation

type CreatePolicyVersionInput

type CreatePolicyVersionInput struct {

    // The Amazon Resource Name (ARN) of the IAM policy to which you want to add
    // a new version.
    //
    // For more information about ARNs, see Amazon Resource Names (ARNs) and AWS
    // Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html)
    // in the AWS General Reference.
    //
    // PolicyArn is a required field
    PolicyArn *string `min:"20" type:"string" required:"true"`

    // The JSON policy document that you want to use as the content for this new
    // version of the policy.
    //
    // The regex pattern (http://wikipedia.org/wiki/regex) used to validate this
    // parameter is a string of characters consisting of any printable ASCII character
    // ranging from the space character (\u0020) through end of the ASCII character
    // range as well as the printable characters in the Basic Latin and Latin-1
    // Supplement character set (through \u00FF). It also includes the special characters
    // tab (\u0009), line feed (\u000A), and carriage return (\u000D).
    //
    // PolicyDocument is a required field
    PolicyDocument *string `min:"1" type:"string" required:"true"`

    // Specifies whether to set this version as the policy's default version.
    //
    // When this parameter is true, the new policy version becomes the operative
    // version; that is, the version that is in effect for the IAM users, groups,
    // and roles that the policy is attached to.
    //
    // For more information about managed policy versions, see Versioning for Managed
    // Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-versions.html)
    // in the IAM User Guide.
    SetAsDefault *bool `type:"boolean"`
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreatePolicyVersionRequest

func (CreatePolicyVersionInput) GoString

func (s CreatePolicyVersionInput) GoString() string

GoString returns the string representation

func (*CreatePolicyVersionInput) SetPolicyArn

func (s *CreatePolicyVersionInput) SetPolicyArn(v string) *CreatePolicyVersionInput

SetPolicyArn sets the PolicyArn field's value.

func (*CreatePolicyVersionInput) SetPolicyDocument

func (s *CreatePolicyVersionInput) SetPolicyDocument(v string) *CreatePolicyVersionInput

SetPolicyDocument sets the PolicyDocument field's value.

func (*CreatePolicyVersionInput) SetSetAsDefault

func (s *CreatePolicyVersionInput) SetSetAsDefault(v bool) *CreatePolicyVersionInput

SetSetAsDefault sets the SetAsDefault field's value.

func (CreatePolicyVersionInput) String

func (s CreatePolicyVersionInput) String() string

String returns the string representation

func (*CreatePolicyVersionInput) Validate

func (s *CreatePolicyVersionInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type CreatePolicyVersionOutput

type CreatePolicyVersionOutput struct {

    // A structure containing details about the new policy version.
    PolicyVersion *PolicyVersion `type:"structure"`
    // contains filtered or unexported fields
}

Contains the response to a successful CreatePolicyVersion request. Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreatePolicyVersionResponse

func (CreatePolicyVersionOutput) GoString

func (s CreatePolicyVersionOutput) GoString() string

GoString returns the string representation

func (*CreatePolicyVersionOutput) SetPolicyVersion

func (s *CreatePolicyVersionOutput) SetPolicyVersion(v *PolicyVersion) *CreatePolicyVersionOutput

SetPolicyVersion sets the PolicyVersion field's value.

func (CreatePolicyVersionOutput) String

func (s CreatePolicyVersionOutput) String() string

String returns the string representation

type CreateRoleInput

type CreateRoleInput struct {

    // The trust relationship policy document that grants an entity permission to
    // assume the role.
    //
    // The regex pattern (http://wikipedia.org/wiki/regex) used to validate this
    // parameter is a string of characters consisting of any printable ASCII character
    // ranging from the space character (\u0020) through end of the ASCII character
    // range as well as the printable characters in the Basic Latin and Latin-1
    // Supplement character set (through \u00FF). It also includes the special characters
    // tab (\u0009), line feed (\u000A), and carriage return (\u000D).
    //
    // AssumeRolePolicyDocument is a required field
    AssumeRolePolicyDocument *string `min:"1" type:"string" required:"true"`

    // A customer-provided description of the role.
    Description *string `type:"string"`

    // The path to the role. For more information about paths, see IAM Identifiers
    // (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html)
    // in the IAM User Guide.
    //
    // This parameter is optional. If it is not included, it defaults to a slash
    // (/).
    //
    // This paramater allows (per its regex pattern (http://wikipedia.org/wiki/regex))
    // a string of characters consisting of either a forward slash (/) by itself
    // or a string that must begin and end with forward slashes, containing any
    // ASCII character from the ! (\u0021) thru the DEL character (\u007F), including
    // most punctuation characters, digits, and upper and lowercased letters.
    Path *string `min:"1" type:"string"`

    // The name of the role to create.
    //
    // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex))
    // a string of characters consisting of upper and lowercase alphanumeric characters
    // with no spaces. You can also include any of the following characters: _+=,.@-
    //
    // Role names are not distinguished by case. For example, you cannot create
    // roles named both "PRODROLE" and "prodrole".
    //
    // RoleName is a required field
    RoleName *string `min:"1" type:"string" required:"true"`
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateRoleRequest

func (CreateRoleInput) GoString

func (s CreateRoleInput) GoString() string

GoString returns the string representation

func (*CreateRoleInput) SetAssumeRolePolicyDocument

func (s *CreateRoleInput) SetAssumeRolePolicyDocument(v string) *CreateRoleInput

SetAssumeRolePolicyDocument sets the AssumeRolePolicyDocument field's value.

func (*CreateRoleInput) SetDescription

func (s *CreateRoleInput) SetDescription(v string) *CreateRoleInput

SetDescription sets the Description field's value.

func (*CreateRoleInput) SetPath

func (s *CreateRoleInput) SetPath(v string) *CreateRoleInput

SetPath sets the Path field's value.

func (*CreateRoleInput) SetRoleName

func (s *CreateRoleInput) SetRoleName(v string) *CreateRoleInput

SetRoleName sets the RoleName field's value.

func (CreateRoleInput) String

func (s CreateRoleInput) String() string

String returns the string representation

func (*CreateRoleInput) Validate

func (s *CreateRoleInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type CreateRoleOutput

type CreateRoleOutput struct {

    // A structure containing details about the new role.
    //
    // Role is a required field
    Role *Role `type:"structure" required:"true"`
    // contains filtered or unexported fields
}

Contains the response to a successful CreateRole request. Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateRoleResponse

func (CreateRoleOutput) GoString

func (s CreateRoleOutput) GoString() string

GoString returns the string representation

func (*CreateRoleOutput) SetRole

func (s *CreateRoleOutput) SetRole(v *Role) *CreateRoleOutput

SetRole sets the Role field's value.

func (CreateRoleOutput) String

func (s CreateRoleOutput) String() string

String returns the string representation

type CreateSAMLProviderInput

type CreateSAMLProviderInput struct {

    // The name of the provider to create.
    //
    // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex))
    // a string of characters consisting of upper and lowercase alphanumeric characters
    // with no spaces. You can also include any of the following characters: =,.@-
    //
    // Name is a required field
    Name *string `min:"1" type:"string" required:"true"`

    // An XML document generated by an identity provider (IdP) that supports SAML
    // 2.0. The document includes the issuer's name, expiration information, and
    // keys that can be used to validate the SAML authentication response (assertions)
    // that are received from the IdP. You must generate the metadata document using
    // the identity management software that is used as your organization's IdP.
    //
    // For more information, see About SAML 2.0-based Federation (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_saml.html)
    // in the IAM User Guide
    //
    // SAMLMetadataDocument is a required field
    SAMLMetadataDocument *string `min:"1000" type:"string" required:"true"`
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateSAMLProviderRequest

func (CreateSAMLProviderInput) GoString

func (s CreateSAMLProviderInput) GoString() string

GoString returns the string representation

func (*CreateSAMLProviderInput) SetName

func (s *CreateSAMLProviderInput) SetName(v string) *CreateSAMLProviderInput

SetName sets the Name field's value.

func (*CreateSAMLProviderInput) SetSAMLMetadataDocument

func (s *CreateSAMLProviderInput) SetSAMLMetadataDocument(v string) *CreateSAMLProviderInput

SetSAMLMetadataDocument sets the SAMLMetadataDocument field's value.

func (CreateSAMLProviderInput) String

func (s CreateSAMLProviderInput) String() string

String returns the string representation

func (*CreateSAMLProviderInput) Validate

func (s *CreateSAMLProviderInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type CreateSAMLProviderOutput

type CreateSAMLProviderOutput struct {

    // The Amazon Resource Name (ARN) of the new SAML provider resource in IAM.
    SAMLProviderArn *string `min:"20" type:"string"`
    // contains filtered or unexported fields
}

Contains the response to a successful CreateSAMLProvider request. Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateSAMLProviderResponse

func (CreateSAMLProviderOutput) GoString

func (s CreateSAMLProviderOutput) GoString() string

GoString returns the string representation

func (*CreateSAMLProviderOutput) SetSAMLProviderArn

func (s *CreateSAMLProviderOutput) SetSAMLProviderArn(v string) *CreateSAMLProviderOutput

SetSAMLProviderArn sets the SAMLProviderArn field's value.

func (CreateSAMLProviderOutput) String

func (s CreateSAMLProviderOutput) String() string

String returns the string representation

type CreateServiceLinkedRoleInput

type CreateServiceLinkedRoleInput struct {

    // The AWS service to which this role is attached. You use a string similar
    // to a URL but without the http:// in front. For example: elasticbeanstalk.amazonaws.com
    //
    // AWSServiceName is a required field
    AWSServiceName *string `min:"1" type:"string" required:"true"`

    // A string that you provide, which is combined with the service name to form
    // the complete role name. If you make multiple requests for the same service,
    // then you must supply a different CustomSuffix for each request. Otherwise
    // the request fails with a duplicate role name error. For example, you could
    // add -1 or -debug to the suffix.
    CustomSuffix *string `min:"1" type:"string"`

    // The description of the role.
    Description *string `type:"string"`
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateServiceLinkedRoleRequest

func (CreateServiceLinkedRoleInput) GoString

func (s CreateServiceLinkedRoleInput) GoString() string

GoString returns the string representation

func (*CreateServiceLinkedRoleInput) SetAWSServiceName

func (s *CreateServiceLinkedRoleInput) SetAWSServiceName(v string) *CreateServiceLinkedRoleInput

SetAWSServiceName sets the AWSServiceName field's value.

func (*CreateServiceLinkedRoleInput) SetCustomSuffix

func (s *CreateServiceLinkedRoleInput) SetCustomSuffix(v string) *CreateServiceLinkedRoleInput

SetCustomSuffix sets the CustomSuffix field's value.

func (*CreateServiceLinkedRoleInput) SetDescription

func (s *CreateServiceLinkedRoleInput) SetDescription(v string) *CreateServiceLinkedRoleInput

SetDescription sets the Description field's value.

func (CreateServiceLinkedRoleInput) String

func (s CreateServiceLinkedRoleInput) String() string

String returns the string representation

func (*CreateServiceLinkedRoleInput) Validate

func (s *CreateServiceLinkedRoleInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type CreateServiceLinkedRoleOutput

type CreateServiceLinkedRoleOutput struct {

    // A Role object that contains details about the newly created role.
    Role *Role `type:"structure"`
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateServiceLinkedRoleResponse

func (CreateServiceLinkedRoleOutput) GoString

func (s CreateServiceLinkedRoleOutput) GoString() string

GoString returns the string representation

func (*CreateServiceLinkedRoleOutput) SetRole

func (s *CreateServiceLinkedRoleOutput) SetRole(v *Role) *CreateServiceLinkedRoleOutput

SetRole sets the Role field's value.

func (CreateServiceLinkedRoleOutput) String

func (s CreateServiceLinkedRoleOutput) String() string

String returns the string representation

type CreateServiceSpecificCredentialInput

type CreateServiceSpecificCredentialInput struct {

    // The name of the AWS service that is to be associated with the credentials.
    // The service you specify here is the only service that can be accessed using
    // these credentials.
    //
    // ServiceName is a required field
    ServiceName *string `type:"string" required:"true"`

    // The name of the IAM user that is to be associated with the credentials. The
    // new service-specific credentials have the same permissions as the associated
    // user except that they can be used only to access the specified service.
    //
    // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex))
    // a string of characters consisting of upper and lowercase alphanumeric characters
    // with no spaces. You can also include any of the following characters: =,.@-
    //
    // UserName is a required field
    UserName *string `min:"1" type:"string" required:"true"`
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateServiceSpecificCredentialRequest

func (CreateServiceSpecificCredentialInput) GoString

func (s CreateServiceSpecificCredentialInput) GoString() string

GoString returns the string representation

func (*CreateServiceSpecificCredentialInput) SetServiceName

func (s *CreateServiceSpecificCredentialInput) SetServiceName(v string) *CreateServiceSpecificCredentialInput

SetServiceName sets the ServiceName field's value.

func (*CreateServiceSpecificCredentialInput) SetUserName

func (s *CreateServiceSpecificCredentialInput) SetUserName(v string) *CreateServiceSpecificCredentialInput

SetUserName sets the UserName field's value.

func (CreateServiceSpecificCredentialInput) String

func (s CreateServiceSpecificCredentialInput) String() string

String returns the string representation

func (*CreateServiceSpecificCredentialInput) Validate

func (s *CreateServiceSpecificCredentialInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type CreateServiceSpecificCredentialOutput

type CreateServiceSpecificCredentialOutput struct {

    // A structure that contains information about the newly created service-specific
    // credential.
    //
    // This is the only time that the password for this credential set is available.
    // It cannot be recovered later. Instead, you will have to reset the password
    // with ResetServiceSpecificCredential.
    ServiceSpecificCredential *ServiceSpecificCredential `type:"structure"`
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateServiceSpecificCredentialResponse

func (CreateServiceSpecificCredentialOutput) GoString

func (s CreateServiceSpecificCredentialOutput) GoString() string

GoString returns the string representation

func (*CreateServiceSpecificCredentialOutput) SetServiceSpecificCredential

func (s *CreateServiceSpecificCredentialOutput) SetServiceSpecificCredential(v *ServiceSpecificCredential) *CreateServiceSpecificCredentialOutput

SetServiceSpecificCredential sets the ServiceSpecificCredential field's value.

func (CreateServiceSpecificCredentialOutput) String

func (s CreateServiceSpecificCredentialOutput) String() string

String returns the string representation

type CreateUserInput

type CreateUserInput struct {

    // The path for the user name. For more information about paths, see IAM Identifiers
    // (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html)
    // in the IAM User Guide.
    //
    // This parameter is optional. If it is not included, it defaults to a slash
    // (/).
    //
    // This paramater allows (per its regex pattern (http://wikipedia.org/wiki/regex))
    // a string of characters consisting of either a forward slash (/) by itself
    // or a string that must begin and end with forward slashes, containing any
    // ASCII character from the ! (\u0021) thru the DEL character (\u007F), including
    // most punctuation characters, digits, and upper and lowercased letters.
    Path *string `min:"1" type:"string"`

    // The name of the user to create.
    //
    // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex))
    // a string of characters consisting of upper and lowercase alphanumeric characters
    // with no spaces. You can also include any of the following characters: =,.@-.
    // User names are not distinguished by case. For example, you cannot create
    // users named both "TESTUSER" and "testuser".
    //
    // UserName is a required field
    UserName *string `min:"1" type:"string" required:"true"`
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateUserRequest

func (CreateUserInput) GoString

func (s CreateUserInput) GoString() string

GoString returns the string representation

func (*CreateUserInput) SetPath

func (s *CreateUserInput) SetPath(v string) *CreateUserInput

SetPath sets the Path field's value.

func (*CreateUserInput) SetUserName

func (s *CreateUserInput) SetUserName(v string) *CreateUserInput

SetUserName sets the UserName field's value.

func (CreateUserInput) String

func (s CreateUserInput) String() string

String returns the string representation

func (*CreateUserInput) Validate

func (s *CreateUserInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type CreateUserOutput

type CreateUserOutput struct {

    // A structure with details about the new IAM user.
    User *User `type:"structure"`
    // contains filtered or unexported fields
}

Contains the response to a successful CreateUser request. Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateUserResponse

func (CreateUserOutput) GoString

func (s CreateUserOutput) GoString() string

GoString returns the string representation

func (*CreateUserOutput) SetUser

func (s *CreateUserOutput) SetUser(v *User) *CreateUserOutput

SetUser sets the User field's value.

func (CreateUserOutput) String

func (s CreateUserOutput) String() string

String returns the string representation

type CreateVirtualMFADeviceInput

type CreateVirtualMFADeviceInput struct {

    // The path for the virtual MFA device. For more information about paths, see
    // IAM Identifiers (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html)
    // in the IAM User Guide.
    //
    // This parameter is optional. If it is not included, it defaults to a slash
    // (/).
    //
    // This paramater allows (per its regex pattern (http://wikipedia.org/wiki/regex))
    // a string of characters consisting of either a forward slash (/) by itself
    // or a string that must begin and end with forward slashes, containing any
    // ASCII character from the ! (\u0021) thru the DEL character (\u007F), including
    // most punctuation characters, digits, and upper and lowercased letters.
    Path *string `min:"1" type:"string"`

    // The name of the virtual MFA device. Use with path to uniquely identify a
    // virtual MFA device.
    //
    // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex))
    // a string of characters consisting of upper and lowercase alphanumeric characters
    // with no spaces. You can also include any of the following characters: =,.@-
    //
    // VirtualMFADeviceName is a required field
    VirtualMFADeviceName *string `min:"1" type:"string" required:"true"`
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateVirtualMFADeviceRequest

func (CreateVirtualMFADeviceInput) GoString

func (s CreateVirtualMFADeviceInput) GoString() string

GoString returns the string representation

func (*CreateVirtualMFADeviceInput) SetPath

func (s *CreateVirtualMFADeviceInput) SetPath(v string) *CreateVirtualMFADeviceInput

SetPath sets the Path field's value.

func (*CreateVirtualMFADeviceInput) SetVirtualMFADeviceName

func (s *CreateVirtualMFADeviceInput) SetVirtualMFADeviceName(v string) *CreateVirtualMFADeviceInput

SetVirtualMFADeviceName sets the VirtualMFADeviceName field's value.

func (CreateVirtualMFADeviceInput) String

func (s CreateVirtualMFADeviceInput) String() string

String returns the string representation

func (*CreateVirtualMFADeviceInput) Validate

func (s *CreateVirtualMFADeviceInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type CreateVirtualMFADeviceOutput

type CreateVirtualMFADeviceOutput struct {

    // A structure containing details about the new virtual MFA device.
    //
    // VirtualMFADevice is a required field
    VirtualMFADevice *VirtualMFADevice `type:"structure" required:"true"`
    // contains filtered or unexported fields
}

Contains the response to a successful CreateVirtualMFADevice request. Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateVirtualMFADeviceResponse

func (CreateVirtualMFADeviceOutput) GoString

func (s CreateVirtualMFADeviceOutput) GoString() string

GoString returns the string representation

func (*CreateVirtualMFADeviceOutput) SetVirtualMFADevice

func (s *CreateVirtualMFADeviceOutput) SetVirtualMFADevice(v *VirtualMFADevice) *CreateVirtualMFADeviceOutput

SetVirtualMFADevice sets the VirtualMFADevice field's value.

func (CreateVirtualMFADeviceOutput) String

func (s CreateVirtualMFADeviceOutput) String() string

String returns the string representation

type DeactivateMFADeviceInput

type DeactivateMFADeviceInput struct {

    // The serial number that uniquely identifies the MFA device. For virtual MFA
    // devices, the serial number is the device ARN.
    //
    // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex))
    // a string of characters consisting of upper and lowercase alphanumeric characters
    // with no spaces. You can also include any of the following characters: =,.@:/-
    //
    // SerialNumber is a required field
    SerialNumber *string `min:"9" type:"string" required:"true"`

    // The name of the user whose MFA device you want to deactivate.
    //
    // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex))
    // a string of characters consisting of upper and lowercase alphanumeric characters
    // with no spaces. You can also include any of the following characters: =,.@-
    //
    // UserName is a required field
    UserName *string `min:"1" type:"string" required:"true"`
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeactivateMFADeviceRequest

func (DeactivateMFADeviceInput) GoString

func (s DeactivateMFADeviceInput) GoString() string

GoString returns the string representation

func (*DeactivateMFADeviceInput) SetSerialNumber

func (s *DeactivateMFADeviceInput) SetSerialNumber(v string) *DeactivateMFADeviceInput

SetSerialNumber sets the SerialNumber field's value.

func (*DeactivateMFADeviceInput) SetUserName

func (s *DeactivateMFADeviceInput) SetUserName(v string) *DeactivateMFADeviceInput

SetUserName sets the UserName field's value.

func (DeactivateMFADeviceInput) String

func (s DeactivateMFADeviceInput) String() string

String returns the string representation

func (*DeactivateMFADeviceInput) Validate

func (s *DeactivateMFADeviceInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DeactivateMFADeviceOutput

type DeactivateMFADeviceOutput struct {
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeactivateMFADeviceOutput

func (DeactivateMFADeviceOutput) GoString

func (s DeactivateMFADeviceOutput) GoString() string

GoString returns the string representation

func (DeactivateMFADeviceOutput) String

func (s DeactivateMFADeviceOutput) String() string

String returns the string representation

type DeleteAccessKeyInput

type DeleteAccessKeyInput struct {

    // The access key ID for the access key ID and secret access key you want to
    // delete.
    //
    // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex))
    // a string of characters that can consist of any upper or lowercased letter
    // or digit.
    //
    // AccessKeyId is a required field
    AccessKeyId *string `min:"16" type:"string" required:"true"`

    // The name of the user whose access key pair you want to delete.
    //
    // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex))
    // a string of characters consisting of upper and lowercase alphanumeric characters
    // with no spaces. You can also include any of the following characters: =,.@-
    UserName *string `min:"1" type:"string"`
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteAccessKeyRequest

func (DeleteAccessKeyInput) GoString

func (s DeleteAccessKeyInput) GoString() string

GoString returns the string representation

func (*DeleteAccessKeyInput) SetAccessKeyId

func (s *DeleteAccessKeyInput) SetAccessKeyId(v string) *DeleteAccessKeyInput

SetAccessKeyId sets the AccessKeyId field's value.

func (*DeleteAccessKeyInput) SetUserName

func (s *DeleteAccessKeyInput) SetUserName(v string) *DeleteAccessKeyInput

SetUserName sets the UserName field's value.

func (DeleteAccessKeyInput) String

func (s DeleteAccessKeyInput) String() string

String returns the string representation

func (*DeleteAccessKeyInput) Validate

func (s *DeleteAccessKeyInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DeleteAccessKeyOutput

type DeleteAccessKeyOutput struct {
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteAccessKeyOutput

func (DeleteAccessKeyOutput) GoString

func (s DeleteAccessKeyOutput) GoString() string

GoString returns the string representation

func (DeleteAccessKeyOutput) String

func (s DeleteAccessKeyOutput) String() string

String returns the string representation

type DeleteAccountAliasInput

type DeleteAccountAliasInput struct {

    // The name of the account alias to delete.
    //
    // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex))
    // a string of characters consisting of lowercase letters, digits, and dashes.
    // You cannot start or finish with a dash, nor can you have two dashes in a
    // row.
    //
    // AccountAlias is a required field
    AccountAlias *string `min:"3" type:"string" required:"true"`
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteAccountAliasRequest

func (DeleteAccountAliasInput) GoString

func (s DeleteAccountAliasInput) GoString() string

GoString returns the string representation

func (*DeleteAccountAliasInput) SetAccountAlias

func (s *DeleteAccountAliasInput) SetAccountAlias(v string) *DeleteAccountAliasInput

SetAccountAlias sets the AccountAlias field's value.

func (DeleteAccountAliasInput) String

func (s DeleteAccountAliasInput) String() string

String returns the string representation

func (*DeleteAccountAliasInput) Validate

func (s *DeleteAccountAliasInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DeleteAccountAliasOutput

type DeleteAccountAliasOutput struct {
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteAccountAliasOutput

func (DeleteAccountAliasOutput) GoString

func (s DeleteAccountAliasOutput) GoString() string

GoString returns the string representation

func (DeleteAccountAliasOutput) String

func (s DeleteAccountAliasOutput) String() string

String returns the string representation

type DeleteAccountPasswordPolicyInput

type DeleteAccountPasswordPolicyInput struct {
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteAccountPasswordPolicyInput

func (DeleteAccountPasswordPolicyInput) GoString

func (s DeleteAccountPasswordPolicyInput) GoString() string

GoString returns the string representation

func (DeleteAccountPasswordPolicyInput) String

func (s DeleteAccountPasswordPolicyInput) String() string

String returns the string representation

type DeleteAccountPasswordPolicyOutput

type DeleteAccountPasswordPolicyOutput struct {
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteAccountPasswordPolicyOutput

func (DeleteAccountPasswordPolicyOutput) GoString

func (s DeleteAccountPasswordPolicyOutput) GoString() string

GoString returns the string representation

func (DeleteAccountPasswordPolicyOutput) String

func (s DeleteAccountPasswordPolicyOutput) String() string

String returns the string representation

type DeleteGroupInput

type DeleteGroupInput struct {

    // The name of the IAM group to delete.
    //
    // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex))
    // a string of characters consisting of upper and lowercase alphanumeric characters
    // with no spaces. You can also include any of the following characters: =,.@-
    //
    // GroupName is a required field
    GroupName *string `min:"1" type:"string" required:"true"`
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteGroupRequest

func (DeleteGroupInput) GoString

func (s DeleteGroupInput) GoString() string

GoString returns the string representation

func (*DeleteGroupInput) SetGroupName

func (s *DeleteGroupInput) SetGroupName(v string) *DeleteGroupInput

SetGroupName sets the GroupName field's value.

func (DeleteGroupInput) String

func (s DeleteGroupInput) String() string

String returns the string representation

func (*DeleteGroupInput) Validate

func (s *DeleteGroupInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DeleteGroupOutput

type DeleteGroupOutput struct {
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteGroupOutput

func (DeleteGroupOutput) GoString

func (s DeleteGroupOutput) GoString() string

GoString returns the string representation

func (DeleteGroupOutput) String

func (s DeleteGroupOutput) String() string

String returns the string representation

type DeleteGroupPolicyInput

type DeleteGroupPolicyInput struct {

    // The name (friendly name, not ARN) identifying the group that the policy is
    // embedded in.
    //
    // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex))
    // a string of characters consisting of upper and lowercase alphanumeric characters
    // with no spaces. You can also include any of the following characters: =,.@-
    //
    // GroupName is a required field
    GroupName *string `min:"1" type:"string" required:"true"`

    // The name identifying the policy document to delete.
    //
    // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex))
    // a string of characters consisting of upper and lowercase alphanumeric characters
    // with no spaces. You can also include any of the following characters: =,.@-+
    //
    // PolicyName is a required field
    PolicyName *string `min:"1" type:"string" required:"true"`
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteGroupPolicyRequest

func (DeleteGroupPolicyInput) GoString

func (s DeleteGroupPolicyInput) GoString() string

GoString returns the string representation

func (*DeleteGroupPolicyInput) SetGroupName

func (s *DeleteGroupPolicyInput) SetGroupName(v string) *DeleteGroupPolicyInput

SetGroupName sets the GroupName field's value.

func (*DeleteGroupPolicyInput) SetPolicyName

func (s *DeleteGroupPolicyInput) SetPolicyName(v string) *DeleteGroupPolicyInput

SetPolicyName sets the PolicyName field's value.

func (DeleteGroupPolicyInput) String

func (s DeleteGroupPolicyInput) String() string

String returns the string representation

func (*DeleteGroupPolicyInput) Validate

func (s *DeleteGroupPolicyInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DeleteGroupPolicyOutput

type DeleteGroupPolicyOutput struct {
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteGroupPolicyOutput

func (DeleteGroupPolicyOutput) GoString

func (s DeleteGroupPolicyOutput) GoString() string

GoString returns the string representation

func (DeleteGroupPolicyOutput) String

func (s DeleteGroupPolicyOutput) String() string

String returns the string representation

type DeleteInstanceProfileInput

type DeleteInstanceProfileInput struct {

    // The name of the instance profile to delete.
    //
    // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex))
    // a string of characters consisting of upper and lowercase alphanumeric characters
    // with no spaces. You can also include any of the following characters: =,.@-
    //
    // InstanceProfileName is a required field
    InstanceProfileName *string `min:"1" type:"string" required:"true"`
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteInstanceProfileRequest

func (DeleteInstanceProfileInput) GoString

func (s DeleteInstanceProfileInput) GoString() string

GoString returns the string representation

func (*DeleteInstanceProfileInput) SetInstanceProfileName

func (s *DeleteInstanceProfileInput) SetInstanceProfileName(v string) *DeleteInstanceProfileInput

SetInstanceProfileName sets the InstanceProfileName field's value.

func (DeleteInstanceProfileInput) String

func (s DeleteInstanceProfileInput) String() string

String returns the string representation

func (*DeleteInstanceProfileInput) Validate

func (s *DeleteInstanceProfileInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DeleteInstanceProfileOutput

type DeleteInstanceProfileOutput struct {
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteInstanceProfileOutput

func (DeleteInstanceProfileOutput) GoString

func (s DeleteInstanceProfileOutput) GoString() string

GoString returns the string representation

func (DeleteInstanceProfileOutput) String

func (s DeleteInstanceProfileOutput) String() string

String returns the string representation

type DeleteLoginProfileInput

type DeleteLoginProfileInput struct {

    // The name of the user whose password you want to delete.
    //
    // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex))
    // a string of characters consisting of upper and lowercase alphanumeric characters
    // with no spaces. You can also include any of the following characters: =,.@-
    //
    // UserName is a required field
    UserName *string `min:"1" type:"string" required:"true"`
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteLoginProfileRequest

func (DeleteLoginProfileInput) GoString

func (s DeleteLoginProfileInput) GoString() string

GoString returns the string representation

func (*DeleteLoginProfileInput) SetUserName

func (s *DeleteLoginProfileInput) SetUserName(v string) *DeleteLoginProfileInput

SetUserName sets the UserName field's value.

func (DeleteLoginProfileInput) String

func (s DeleteLoginProfileInput) String() string

String returns the string representation

func (*DeleteLoginProfileInput) Validate

func (s *DeleteLoginProfileInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DeleteLoginProfileOutput

type DeleteLoginProfileOutput struct {
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteLoginProfileOutput

func (DeleteLoginProfileOutput) GoString

func (s DeleteLoginProfileOutput) GoString() string

GoString returns the string representation

func (DeleteLoginProfileOutput) String

func (s DeleteLoginProfileOutput) String() string

String returns the string representation

type DeleteOpenIDConnectProviderInput

type DeleteOpenIDConnectProviderInput struct {

    // The Amazon Resource Name (ARN) of the IAM OpenID Connect provider resource
    // object to delete. You can get a list of OpenID Connect provider resource
    // ARNs by using the ListOpenIDConnectProviders action.
    //
    // OpenIDConnectProviderArn is a required field
    OpenIDConnectProviderArn *string `min:"20" type:"string" required:"true"`
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteOpenIDConnectProviderRequest

func (DeleteOpenIDConnectProviderInput) GoString

func (s DeleteOpenIDConnectProviderInput) GoString() string

GoString returns the string representation

func (*DeleteOpenIDConnectProviderInput) SetOpenIDConnectProviderArn

func (s *DeleteOpenIDConnectProviderInput) SetOpenIDConnectProviderArn(v string) *DeleteOpenIDConnectProviderInput

SetOpenIDConnectProviderArn sets the OpenIDConnectProviderArn field's value.

func (DeleteOpenIDConnectProviderInput) String

func (s DeleteOpenIDConnectProviderInput) String() string

String returns the string representation

func (*DeleteOpenIDConnectProviderInput) Validate

func (s *DeleteOpenIDConnectProviderInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DeleteOpenIDConnectProviderOutput

type DeleteOpenIDConnectProviderOutput struct {
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteOpenIDConnectProviderOutput

func (DeleteOpenIDConnectProviderOutput) GoString

func (s DeleteOpenIDConnectProviderOutput) GoString() string

GoString returns the string representation

func (DeleteOpenIDConnectProviderOutput) String

func (s DeleteOpenIDConnectProviderOutput) String() string

String returns the string representation

type DeletePolicyInput

type DeletePolicyInput struct {

    // The Amazon Resource Name (ARN) of the IAM policy you want to delete.
    //
    // For more information about ARNs, see Amazon Resource Names (ARNs) and AWS
    // Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html)
    // in the AWS General Reference.
    //
    // PolicyArn is a required field
    PolicyArn *string `min:"20" type:"string" required:"true"`
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeletePolicyRequest

func (DeletePolicyInput) GoString

func (s DeletePolicyInput) GoString() string

GoString returns the string representation

func (*DeletePolicyInput) SetPolicyArn

func (s *DeletePolicyInput) SetPolicyArn(v string) *DeletePolicyInput

SetPolicyArn sets the PolicyArn field's value.

func (DeletePolicyInput) String

func (s DeletePolicyInput) String() string

String returns the string representation

func (*DeletePolicyInput) Validate

func (s *DeletePolicyInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DeletePolicyOutput

type DeletePolicyOutput struct {
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeletePolicyOutput

func (DeletePolicyOutput) GoString

func (s DeletePolicyOutput) GoString() string

GoString returns the string representation

func (DeletePolicyOutput) String

func (s DeletePolicyOutput) String() string

String returns the string representation

type DeletePolicyVersionInput

type DeletePolicyVersionInput struct {

    // The Amazon Resource Name (ARN) of the IAM policy from which you want to delete
    // a version.
    //
    // For more information about ARNs, see Amazon Resource Names (ARNs) and AWS
    // Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html)
    // in the AWS General Reference.
    //
    // PolicyArn is a required field
    PolicyArn *string `min:"20" type:"string" required:"true"`

    // The policy version to delete.
    //
    // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex))
    // a string of characters that consists of the lowercase letter 'v' followed
    // by one or two digits, and optionally followed by a period '.' and a string
    // of letters and digits.
    //
    // For more information about managed policy versions, see Versioning for Managed
    // Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-versions.html)
    // in the IAM User Guide.
    //
    // VersionId is a required field
    VersionId *string `type:"string" required:"true"`
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeletePolicyVersionRequest

func (DeletePolicyVersionInput) GoString

func (s DeletePolicyVersionInput) GoString() string

GoString returns the string representation

func (*DeletePolicyVersionInput) SetPolicyArn

func (s *DeletePolicyVersionInput) SetPolicyArn(v string) *DeletePolicyVersionInput

SetPolicyArn sets the PolicyArn field's value.

func (*DeletePolicyVersionInput) SetVersionId

func (s *DeletePolicyVersionInput) SetVersionId(v string) *DeletePolicyVersionInput

SetVersionId sets the VersionId field's value.

func (DeletePolicyVersionInput) String

func (s DeletePolicyVersionInput) String() string

String returns the string representation

func (*DeletePolicyVersionInput) Validate

func (s *DeletePolicyVersionInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DeletePolicyVersionOutput

type DeletePolicyVersionOutput struct {
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeletePolicyVersionOutput

func (DeletePolicyVersionOutput) GoString

func (s DeletePolicyVersionOutput) GoString() string

GoString returns the string representation

func (DeletePolicyVersionOutput) String

func (s DeletePolicyVersionOutput) String() string

String returns the string representation

type DeleteRoleInput

type DeleteRoleInput struct {

    // The name of the role to delete.
    //
    // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex))
    // a string of characters consisting of upper and lowercase alphanumeric characters
    // with no spaces. You can also include any of the following characters: _+=,.@-
    //
    // RoleName is a required field
    RoleName *string `min:"1" type:"string" required:"true"`
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteRoleRequest

func (DeleteRoleInput) GoString

func (s DeleteRoleInput) GoString() string

GoString returns the string representation

func (*DeleteRoleInput) SetRoleName

func (s *DeleteRoleInput) SetRoleName(v string) *DeleteRoleInput

SetRoleName sets the RoleName field's value.

func (DeleteRoleInput) String

func (s DeleteRoleInput) String() string

String returns the string representation

func (*DeleteRoleInput) Validate

func (s *DeleteRoleInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DeleteRoleOutput

type DeleteRoleOutput struct {
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteRoleOutput

func (DeleteRoleOutput) GoString

func (s DeleteRoleOutput) GoString() string

GoString returns the string representation

func (DeleteRoleOutput) String

func (s DeleteRoleOutput) String() string

String returns the string representation

type DeleteRolePolicyInput

type DeleteRolePolicyInput struct {

    // The name of the inline policy to delete from the specified IAM role.
    //
    // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex))
    // a string of characters consisting of upper and lowercase alphanumeric characters
    // with no spaces. You can also include any of the following characters: =,.@-+
    //
    // PolicyName is a required field
    PolicyName *string `min:"1" type:"string" required:"true"`

    // The name (friendly name, not ARN) identifying the role that the policy is
    // embedded in.
    //
    // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex))
    // a string of characters consisting of upper and lowercase alphanumeric characters
    // with no spaces. You can also include any of the following characters: _+=,.@-
    //
    // RoleName is a required field
    RoleName *string `min:"1" type:"string" required:"true"`
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteRolePolicyRequest

func (DeleteRolePolicyInput) GoString

func (s DeleteRolePolicyInput) GoString() string

GoString returns the string representation

func (*DeleteRolePolicyInput) SetPolicyName

func (s *DeleteRolePolicyInput) SetPolicyName(v string) *DeleteRolePolicyInput

SetPolicyName sets the PolicyName field's value.

func (*DeleteRolePolicyInput) SetRoleName

func (s *DeleteRolePolicyInput) SetRoleName(v string) *DeleteRolePolicyInput

SetRoleName sets the RoleName field's value.

func (DeleteRolePolicyInput) String

func (s DeleteRolePolicyInput) String() string

String returns the string representation

func (*DeleteRolePolicyInput) Validate

func (s *DeleteRolePolicyInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DeleteRolePolicyOutput

type DeleteRolePolicyOutput struct {
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteRolePolicyOutput

func (DeleteRolePolicyOutput) GoString

func (s DeleteRolePolicyOutput) GoString() string

GoString returns the string representation

func (DeleteRolePolicyOutput) String

func (s DeleteRolePolicyOutput) String() string

String returns the string representation

type DeleteSAMLProviderInput

type DeleteSAMLProviderInput struct {

    // The Amazon Resource Name (ARN) of the SAML provider to delete.
    //
    // SAMLProviderArn is a required field
    SAMLProviderArn *string `min:"20" type:"string" required:"true"`
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteSAMLProviderRequest

func (DeleteSAMLProviderInput) GoString

func (s DeleteSAMLProviderInput) GoString() string

GoString returns the string representation

func (*DeleteSAMLProviderInput) SetSAMLProviderArn

func (s *DeleteSAMLProviderInput) SetSAMLProviderArn(v string) *DeleteSAMLProviderInput

SetSAMLProviderArn sets the SAMLProviderArn field's value.

func (DeleteSAMLProviderInput) String

func (s DeleteSAMLProviderInput) String() string

String returns the string representation

func (*DeleteSAMLProviderInput) Validate

func (s *DeleteSAMLProviderInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DeleteSAMLProviderOutput

type DeleteSAMLProviderOutput struct {
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteSAMLProviderOutput

func (DeleteSAMLProviderOutput) GoString

func (s DeleteSAMLProviderOutput) GoString() string

GoString returns the string representation

func (DeleteSAMLProviderOutput) String

func (s DeleteSAMLProviderOutput) String() string

String returns the string representation

type DeleteSSHPublicKeyInput

type DeleteSSHPublicKeyInput struct {

    // The unique identifier for the SSH public key.
    //
    // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex))
    // a string of characters that can consist of any upper or lowercased letter
    // or digit.
    //
    // SSHPublicKeyId is a required field
    SSHPublicKeyId *string `min:"20" type:"string" required:"true"`

    // The name of the IAM user associated with the SSH public key.
    //
    // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex))
    // a string of characters consisting of upper and lowercase alphanumeric characters
    // with no spaces. You can also include any of the following characters: =,.@-
    //
    // UserName is a required field
    UserName *string `min:"1" type:"string" required:"true"`
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteSSHPublicKeyRequest

func (DeleteSSHPublicKeyInput) GoString

func (s DeleteSSHPublicKeyInput) GoString() string

GoString returns the string representation

func (*DeleteSSHPublicKeyInput) SetSSHPublicKeyId

func (s *DeleteSSHPublicKeyInput) SetSSHPublicKeyId(v string) *DeleteSSHPublicKeyInput

SetSSHPublicKeyId sets the SSHPublicKeyId field's value.

func (*DeleteSSHPublicKeyInput) SetUserName

func (s *DeleteSSHPublicKeyInput) SetUserName(v string) *DeleteSSHPublicKeyInput

SetUserName sets the UserName field's value.

func (DeleteSSHPublicKeyInput) String

func (s DeleteSSHPublicKeyInput) String() string

String returns the string representation

func (*DeleteSSHPublicKeyInput) Validate

func (s *DeleteSSHPublicKeyInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DeleteSSHPublicKeyOutput

type DeleteSSHPublicKeyOutput struct {
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteSSHPublicKeyOutput

func (DeleteSSHPublicKeyOutput) GoString

func (s DeleteSSHPublicKeyOutput) GoString() string

GoString returns the string representation

func (DeleteSSHPublicKeyOutput) String

func (s DeleteSSHPublicKeyOutput) String() string

String returns the string representation

type DeleteServerCertificateInput

type DeleteServerCertificateInput struct {

    // The name of the server certificate you want to delete.
    //
    // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex))
    // a string of characters consisting of upper and lowercase alphanumeric characters
    // with no spaces. You can also include any of the following characters: =,.@-
    //
    // ServerCertificateName is a required field
    ServerCertificateName *string `min:"1" type:"string" required:"true"`
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteServerCertificateRequest

func (DeleteServerCertificateInput) GoString

func (s DeleteServerCertificateInput) GoString() string

GoString returns the string representation

func (*DeleteServerCertificateInput) SetServerCertificateName

func (s *DeleteServerCertificateInput) SetServerCertificateName(v string) *DeleteServerCertificateInput

SetServerCertificateName sets the ServerCertificateName field's value.

func (DeleteServerCertificateInput) String

func (s DeleteServerCertificateInput) String() string

String returns the string representation

func (*DeleteServerCertificateInput) Validate

func (s *DeleteServerCertificateInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DeleteServerCertificateOutput

type DeleteServerCertificateOutput struct {
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteServerCertificateOutput

func (DeleteServerCertificateOutput) GoString

func (s DeleteServerCertificateOutput) GoString() string

GoString returns the string representation

func (DeleteServerCertificateOutput) String

func (s DeleteServerCertificateOutput) String() string

String returns the string representation

type DeleteServiceLinkedRoleInput

type DeleteServiceLinkedRoleInput struct {

    // The name of the service-linked role to be deleted.
    //
    // RoleName is a required field
    RoleName *string `min:"1" type:"string" required:"true"`
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteServiceLinkedRoleRequest

func (DeleteServiceLinkedRoleInput) GoString

func (s DeleteServiceLinkedRoleInput) GoString() string

GoString returns the string representation

func (*DeleteServiceLinkedRoleInput) SetRoleName

func (s *DeleteServiceLinkedRoleInput) SetRoleName(v string) *DeleteServiceLinkedRoleInput

SetRoleName sets the RoleName field's value.

func (DeleteServiceLinkedRoleInput) String

func (s DeleteServiceLinkedRoleInput) String() string

String returns the string representation

func (*DeleteServiceLinkedRoleInput) Validate

func (s *DeleteServiceLinkedRoleInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DeleteServiceLinkedRoleOutput

type DeleteServiceLinkedRoleOutput struct {

    // The deletion task identifier that you can use to check the status of the
    // deletion. This identifier is returned in the format task/aws-service-role/<service-principal-name>/<role-name>/<task-uuid>.
    //
    // DeletionTaskId is a required field
    DeletionTaskId *string `min:"1" type:"string" required:"true"`
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteServiceLinkedRoleResponse

func (DeleteServiceLinkedRoleOutput) GoString

func (s DeleteServiceLinkedRoleOutput) GoString() string

GoString returns the string representation

func (*DeleteServiceLinkedRoleOutput) SetDeletionTaskId

func (s *DeleteServiceLinkedRoleOutput) SetDeletionTaskId(v string) *DeleteServiceLinkedRoleOutput

SetDeletionTaskId sets the DeletionTaskId field's value.

func (DeleteServiceLinkedRoleOutput) String

func (s DeleteServiceLinkedRoleOutput) String() string

String returns the string representation

type DeleteServiceSpecificCredentialInput

type DeleteServiceSpecificCredentialInput struct {

    // The unique identifier of the service-specific credential. You can get this
    // value by calling ListServiceSpecificCredentials.
    //
    // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex))
    // a string of characters that can consist of any upper or lowercased letter
    // or digit.
    //
    // ServiceSpecificCredentialId is a required field
    ServiceSpecificCredentialId *string `min:"20" type:"string" required:"true"`

    // The name of the IAM user associated with the service-specific credential.
    // If this value is not specified, then the operation assumes the user whose
    // credentials are used to call the operation.
    //
    // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex))
    // a string of characters consisting of upper and lowercase alphanumeric characters
    // with no spaces. You can also include any of the following characters: =,.@-
    UserName *string `min:"1" type:"string"`
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteServiceSpecificCredentialRequest

func (DeleteServiceSpecificCredentialInput) GoString

func (s DeleteServiceSpecificCredentialInput) GoString() string

GoString returns the string representation

func (*DeleteServiceSpecificCredentialInput) SetServiceSpecificCredentialId

func (s *DeleteServiceSpecificCredentialInput) SetServiceSpecificCredentialId(v string) *DeleteServiceSpecificCredentialInput

SetServiceSpecificCredentialId sets the ServiceSpecificCredentialId field's value.

func (*DeleteServiceSpecificCredentialInput) SetUserName

func (s *DeleteServiceSpecificCredentialInput) SetUserName(v string) *DeleteServiceSpecificCredentialInput

SetUserName sets the UserName field's value.

func (DeleteServiceSpecificCredentialInput) String

func (s DeleteServiceSpecificCredentialInput) String() string

String returns the string representation

func (*DeleteServiceSpecificCredentialInput) Validate

func (s *DeleteServiceSpecificCredentialInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DeleteServiceSpecificCredentialOutput

type DeleteServiceSpecificCredentialOutput struct {
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteServiceSpecificCredentialOutput

func (DeleteServiceSpecificCredentialOutput) GoString

func (s DeleteServiceSpecificCredentialOutput) GoString() string

GoString returns the string representation

func (DeleteServiceSpecificCredentialOutput) String

func (s DeleteServiceSpecificCredentialOutput) String() string

String returns the string representation

type DeleteSigningCertificateInput

type DeleteSigningCertificateInput struct {

    // The ID of the signing certificate to delete.
    //
    // The format of this parameter, as described by its regex (http://wikipedia.org/wiki/regex)
    // pattern, is a string of characters that can be upper- or lower-cased letters
    // or digits.
    //
    // CertificateId is a required field
    CertificateId *string `min:"24" type:"string" required:"true"`

    // The name of the user the signing certificate belongs to.
    //
    // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex))
    // a string of characters consisting of upper and lowercase alphanumeric characters
    // with no spaces. You can also include any of the following characters: =,.@-
    UserName *string `min:"1" type:"string"`
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteSigningCertificateRequest

func (DeleteSigningCertificateInput) GoString

func (s DeleteSigningCertificateInput) GoString() string

GoString returns the string representation

func (*DeleteSigningCertificateInput) SetCertificateId

func (s *DeleteSigningCertificateInput) SetCertificateId(v string) *DeleteSigningCertificateInput

SetCertificateId sets the CertificateId field's value.

func (*DeleteSigningCertificateInput) SetUserName

func (s *DeleteSigningCertificateInput) SetUserName(v string) *DeleteSigningCertificateInput

SetUserName sets the UserName field's value.

func (DeleteSigningCertificateInput) String

func (s DeleteSigningCertificateInput) String() string

String returns the string representation

func (*DeleteSigningCertificateInput) Validate

func (s *DeleteSigningCertificateInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DeleteSigningCertificateOutput

type DeleteSigningCertificateOutput struct {
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteSigningCertificateOutput

func (DeleteSigningCertificateOutput) GoString

func (s DeleteSigningCertificateOutput) GoString() string

GoString returns the string representation

func (DeleteSigningCertificateOutput) String

func (s DeleteSigningCertificateOutput) String() string

String returns the string representation

type DeleteUserInput

type DeleteUserInput struct {

    // The name of the user to delete.
    //
    // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex))
    // a string of characters consisting of upper and lowercase alphanumeric characters
    // with no spaces. You can also include any of the following characters: =,.@-
    //
    // UserName is a required field
    UserName *string `min:"1" type:"string" required:"true"`
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteUserRequest

func (DeleteUserInput) GoString

func (s DeleteUserInput) GoString() string

GoString returns the string representation

func (*DeleteUserInput) SetUserName

func (s *DeleteUserInput) SetUserName(v string) *DeleteUserInput

SetUserName sets the UserName field's value.

func (DeleteUserInput) String

func (s DeleteUserInput) String() string

String returns the string representation

func (*DeleteUserInput) Validate

func (s *DeleteUserInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DeleteUserOutput

type DeleteUserOutput struct {
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteUserOutput

func (DeleteUserOutput) GoString

func (s DeleteUserOutput) GoString() string

GoString returns the string representation

func (DeleteUserOutput) String

func (s DeleteUserOutput) String() string

String returns the string representation

type DeleteUserPolicyInput

type DeleteUserPolicyInput struct {

    // The name identifying the policy document to delete.
    //
    // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex))
    // a string of characters consisting of upper and lowercase alphanumeric characters
    // with no spaces. You can also include any of the following characters: =,.@-+
    //
    // PolicyName is a required field
    PolicyName *string `min:"1" type:"string" required:"true"`

    // The name (friendly name, not ARN) identifying the user that the policy is
    // embedded in.
    //
    // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex))
    // a string of characters consisting of upper and lowercase alphanumeric characters
    // with no spaces. You can also include any of the following characters: =,.@-
    //
    // UserName is a required field
    UserName *string `min:"1" type:"string" required:"true"`
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteUserPolicyRequest

func (DeleteUserPolicyInput) GoString

func (s DeleteUserPolicyInput) GoString() string

GoString returns the string representation

func (*DeleteUserPolicyInput) SetPolicyName

func (s *DeleteUserPolicyInput) SetPolicyName(v string) *DeleteUserPolicyInput

SetPolicyName sets the PolicyName field's value.

func (*DeleteUserPolicyInput) SetUserName

func (s *DeleteUserPolicyInput) SetUserName(v string) *DeleteUserPolicyInput

SetUserName sets the UserName field's value.

func (DeleteUserPolicyInput) String

func (s DeleteUserPolicyInput) String() string

String returns the string representation

func (*DeleteUserPolicyInput) Validate

func (s *DeleteUserPolicyInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DeleteUserPolicyOutput

type DeleteUserPolicyOutput struct {
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteUserPolicyOutput

func (DeleteUserPolicyOutput) GoString

func (s DeleteUserPolicyOutput) GoString() string

GoString returns the string representation

func (DeleteUserPolicyOutput) String

func (s DeleteUserPolicyOutput) String() string

String returns the string representation

type DeleteVirtualMFADeviceInput

type DeleteVirtualMFADeviceInput struct {

    // The serial number that uniquely identifies the MFA device. For virtual MFA
    // devices, the serial number is the same as the ARN.
    //
    // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex))
    // a string of characters consisting of upper and lowercase alphanumeric characters
    // with no spaces. You can also include any of the following characters: =,.@:/-
    //
    // SerialNumber is a required field
    SerialNumber *string `min:"9" type:"string" required:"true"`
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteVirtualMFADeviceRequest

func (DeleteVirtualMFADeviceInput) GoString

func (s DeleteVirtualMFADeviceInput) GoString() string

GoString returns the string representation

func (*DeleteVirtualMFADeviceInput) SetSerialNumber

func (s *DeleteVirtualMFADeviceInput) SetSerialNumber(v string) *DeleteVirtualMFADeviceInput

SetSerialNumber sets the SerialNumber field's value.

func (DeleteVirtualMFADeviceInput) String

func (s DeleteVirtualMFADeviceInput) String() string

String returns the string representation

func (*DeleteVirtualMFADeviceInput) Validate

func (s *DeleteVirtualMFADeviceInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DeleteVirtualMFADeviceOutput

type DeleteVirtualMFADeviceOutput struct {
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteVirtualMFADeviceOutput

func (DeleteVirtualMFADeviceOutput) GoString

func (s DeleteVirtualMFADeviceOutput) GoString() string

GoString returns the string representation

func (DeleteVirtualMFADeviceOutput) String

func (s DeleteVirtualMFADeviceOutput) String() string

String returns the string representation

type DeletionTaskFailureReasonType

type DeletionTaskFailureReasonType struct {

    // A short description of the reason that the service-linked role deletion failed.
    Reason *string `type:"string"`

    // A list of objects that contains details about the service-linked role deletion
    // failure. If the service-linked role has active sessions or if any resources
    // that were used by the role have not been deleted from the linked service,
    // the role can't be deleted. This parameter includes a list of the resources
    // that are associated with the role and the region in which the resources are
    // being used.
    RoleUsageList []*RoleUsageType `type:"list"`
    // contains filtered or unexported fields
}

The reason that the service-linked role deletion failed.

This data type is used as a response element in the GetServiceLinkedRoleDeletionStatus operation. Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeletionTaskFailureReasonType

func (DeletionTaskFailureReasonType) GoString

func (s DeletionTaskFailureReasonType) GoString() string

GoString returns the string representation

func (*DeletionTaskFailureReasonType) SetReason

func (s *DeletionTaskFailureReasonType) SetReason(v string) *DeletionTaskFailureReasonType

SetReason sets the Reason field's value.

func (*DeletionTaskFailureReasonType) SetRoleUsageList

func (s *DeletionTaskFailureReasonType) SetRoleUsageList(v []*RoleUsageType) *DeletionTaskFailureReasonType

SetRoleUsageList sets the RoleUsageList field's value.

func (DeletionTaskFailureReasonType) String

func (s DeletionTaskFailureReasonType) String() string

String returns the string representation

type DetachGroupPolicyInput

type DetachGroupPolicyInput struct {

    // The name (friendly name, not ARN) of the IAM group to detach the policy from.
    //
    // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex))
    // a string of characters consisting of upper and lowercase alphanumeric characters
    // with no spaces. You can also include any of the following characters: =,.@-
    //
    // GroupName is a required field
    GroupName *string `min:"1" type:"string" required:"true"`

    // The Amazon Resource Name (ARN) of the IAM policy you want to detach.
    //
    // For more information about ARNs, see Amazon Resource Names (ARNs) and AWS
    // Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html)
    // in the AWS General Reference.
    //
    // PolicyArn is a required field
    PolicyArn *string `min:"20" type:"string" required:"true"`
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DetachGroupPolicyRequest

func (DetachGroupPolicyInput) GoString

func (s DetachGroupPolicyInput) GoString() string

GoString returns the string representation

func (*DetachGroupPolicyInput) SetGroupName

func (s *DetachGroupPolicyInput) SetGroupName(v string) *DetachGroupPolicyInput

SetGroupName sets the GroupName field's value.

func (*DetachGroupPolicyInput) SetPolicyArn

func (s *DetachGroupPolicyInput) SetPolicyArn(v string) *DetachGroupPolicyInput

SetPolicyArn sets the PolicyArn field's value.

func (DetachGroupPolicyInput) String

func (s DetachGroupPolicyInput) String() string

String returns the string representation

func (*DetachGroupPolicyInput) Validate

func (s *DetachGroupPolicyInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DetachGroupPolicyOutput

type DetachGroupPolicyOutput struct {
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DetachGroupPolicyOutput

func (DetachGroupPolicyOutput) GoString

func (s DetachGroupPolicyOutput) GoString() string

GoString returns the string representation

func (DetachGroupPolicyOutput) String

func (s DetachGroupPolicyOutput) String() string

String returns the string representation

type DetachRolePolicyInput

type DetachRolePolicyInput struct {

    // The Amazon Resource Name (ARN) of the IAM policy you want to detach.
    //
    // For more information about ARNs, see Amazon Resource Names (ARNs) and AWS
    // Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html)
    // in the AWS General Reference.
    //
    // PolicyArn is a required field
    PolicyArn *string `min:"20" type:"string" required:"true"`

    // The name (friendly name, not ARN) of the IAM role to detach the policy from.
    //
    // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex))
    // a string of characters consisting of upper and lowercase alphanumeric characters
    // with no spaces. You can also include any of the following characters: _+=,.@-
    //
    // RoleName is a required field
    RoleName *string `min:"1" type:"string" required:"true"`
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DetachRolePolicyRequest

func (DetachRolePolicyInput) GoString

func (s DetachRolePolicyInput) GoString() string

GoString returns the string representation

func (*DetachRolePolicyInput) SetPolicyArn

func (s *DetachRolePolicyInput) SetPolicyArn(v string) *DetachRolePolicyInput

SetPolicyArn sets the PolicyArn field's value.

func (*DetachRolePolicyInput) SetRoleName

func (s *DetachRolePolicyInput) SetRoleName(v string) *DetachRolePolicyInput

SetRoleName sets the RoleName field's value.

func (DetachRolePolicyInput) String

func (s DetachRolePolicyInput) String() string

String returns the string representation

func (*DetachRolePolicyInput) Validate

func (s *DetachRolePolicyInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DetachRolePolicyOutput

type DetachRolePolicyOutput struct {
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DetachRolePolicyOutput

func (DetachRolePolicyOutput) GoString

func (s DetachRolePolicyOutput) GoString() string

GoString returns the string representation

func (DetachRolePolicyOutput) String

func (s DetachRolePolicyOutput) String() string

String returns the string representation

type DetachUserPolicyInput

type DetachUserPolicyInput struct {

    // The Amazon Resource Name (ARN) of the IAM policy you want to detach.
    //
    // For more information about ARNs, see Amazon Resource Names (ARNs) and AWS
    // Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html)
    // in the AWS General Reference.
    //
    // PolicyArn is a required field
    PolicyArn *string `min:"20" type:"string" required:"true"`

    // The name (friendly name, not ARN) of the IAM user to detach the policy from.
    //
    // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex))
    // a string of characters consisting of upper and lowercase alphanumeric characters
    // with no spaces. You can also include any of the following characters: =,.@-
    //
    // UserName is a required field
    UserName *string `min:"1" type:"string" required:"true"`
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DetachUserPolicyRequest

func (DetachUserPolicyInput) GoString

func (s DetachUserPolicyInput) GoString() string

GoString returns the string representation

func (*DetachUserPolicyInput) SetPolicyArn

func (s *DetachUserPolicyInput) SetPolicyArn(v string) *DetachUserPolicyInput

SetPolicyArn sets the PolicyArn field's value.

func (*DetachUserPolicyInput) SetUserName

func (s *DetachUserPolicyInput) SetUserName(v string) *DetachUserPolicyInput

SetUserName sets the UserName field's value.

func (DetachUserPolicyInput) String

func (s DetachUserPolicyInput) String() string

String returns the string representation

func (*DetachUserPolicyInput) Validate

func (s *DetachUserPolicyInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DetachUserPolicyOutput

type DetachUserPolicyOutput struct {
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DetachUserPolicyOutput

func (DetachUserPolicyOutput) GoString

func (s DetachUserPolicyOutput) GoString() string

GoString returns the string representation

func (DetachUserPolicyOutput) String

func (s DetachUserPolicyOutput) String() string

String returns the string representation

type EnableMFADeviceInput

type EnableMFADeviceInput struct {

    // An authentication code emitted by the device.
    //
    // The format for this parameter is a string of 6 digits.
    //
    // Submit your request immediately after generating the authentication codes.
    // If you generate the codes and then wait too long to submit the request, the
    // MFA device successfully associates with the user but the MFA device becomes
    // out of sync. This happens because time-based one-time passwords (TOTP) expire
    // after a short period of time. If this happens, you can resync the device
    // (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_mfa_sync.html).
    //
    // AuthenticationCode1 is a required field
    AuthenticationCode1 *string `min:"6" type:"string" required:"true"`

    // A subsequent authentication code emitted by the device.
    //
    // The format for this parameter is a string of 6 digits.
    //
    // Submit your request immediately after generating the authentication codes.
    // If you generate the codes and then wait too long to submit the request, the
    // MFA device successfully associates with the user but the MFA device becomes
    // out of sync. This happens because time-based one-time passwords (TOTP) expire
    // after a short period of time. If this happens, you can resync the device
    // (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_mfa_sync.html).
    //
    // AuthenticationCode2 is a required field
    AuthenticationCode2 *string `min:"6" type:"string" required:"true"`

    // The serial number that uniquely identifies the MFA device. For virtual MFA
    // devices, the serial number is the device ARN.
    //
    // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex))
    // a string of characters consisting of upper and lowercase alphanumeric characters
    // with no spaces. You can also include any of the following characters: =,.@:/-
    //
    // SerialNumber is a required field
    SerialNumber *string `min:"9" type:"string" required:"true"`

    // The name of the IAM user for whom you want to enable the MFA device.
    //
    // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex))
    // a string of characters consisting of upper and lowercase alphanumeric characters
    // with no spaces. You can also include any of the following characters: =,.@-
    //
    // UserName is a required field
    UserName *string `min:"1" type:"string" required:"true"`
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/EnableMFADeviceRequest

func (EnableMFADeviceInput) GoString

func (s EnableMFADeviceInput) GoString() string

GoString returns the string representation

func (*EnableMFADeviceInput) SetAuthenticationCode1

func (s *EnableMFADeviceInput) SetAuthenticationCode1(v string) *EnableMFADeviceInput

SetAuthenticationCode1 sets the AuthenticationCode1 field's value.

func (*EnableMFADeviceInput) SetAuthenticationCode2

func (s *EnableMFADeviceInput) SetAuthenticationCode2(v string) *EnableMFADeviceInput

SetAuthenticationCode2 sets the AuthenticationCode2 field's value.

func (*EnableMFADeviceInput) SetSerialNumber

func (s *EnableMFADeviceInput) SetSerialNumber(v string) *EnableMFADeviceInput

SetSerialNumber sets the SerialNumber field's value.

func (*EnableMFADeviceInput) SetUserName

func (s *EnableMFADeviceInput) SetUserName(v string) *EnableMFADeviceInput

SetUserName sets the UserName field's value.

func (EnableMFADeviceInput) String

func (s EnableMFADeviceInput) String() string

String returns the string representation

func (*EnableMFADeviceInput) Validate

func (s *EnableMFADeviceInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type EnableMFADeviceOutput

type EnableMFADeviceOutput struct {
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/EnableMFADeviceOutput

func (EnableMFADeviceOutput) GoString

func (s EnableMFADeviceOutput) GoString() string

GoString returns the string representation

func (EnableMFADeviceOutput) String

func (s EnableMFADeviceOutput) String() string

String returns the string representation

type EvaluationResult

type EvaluationResult struct {

    // The name of the API action tested on the indicated resource.
    //
    // EvalActionName is a required field
    EvalActionName *string `min:"3" type:"string" required:"true"`

    // The result of the simulation.
    //
    // EvalDecision is a required field
    EvalDecision *string `type:"string" required:"true" enum:"PolicyEvaluationDecisionType"`

    // Additional details about the results of the evaluation decision. When there
    // are both IAM policies and resource policies, this parameter explains how
    // each set of policies contributes to the final evaluation decision. When simulating
    // cross-account access to a resource, both the resource-based policy and the
    // caller's IAM policy must grant access. See How IAM Roles Differ from Resource-based
    // Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_compare-resource-policies.html)
    EvalDecisionDetails map[string]*string `type:"map"`

    // The ARN of the resource that the indicated API action was tested on.
    EvalResourceName *string `min:"1" type:"string"`

    // A list of the statements in the input policies that determine the result
    // for this scenario. Remember that even if multiple statements allow the action
    // on the resource, if only one statement denies that action, then the explicit
    // deny overrides any allow, and the deny statement is the only entry included
    // in the result.
    MatchedStatements []*Statement `type:"list"`

    // A list of context keys that are required by the included input policies but
    // that were not provided by one of the input parameters. This list is used
    // when the resource in a simulation is "*", either explicitly, or when the
    // ResourceArns parameter blank. If you include a list of resources, then any
    // missing context values are instead included under the ResourceSpecificResults
    // section. To discover the context keys used by a set of policies, you can
    // call GetContextKeysForCustomPolicy or GetContextKeysForPrincipalPolicy.
    MissingContextValues []*string `type:"list"`

    // A structure that details how AWS Organizations and its service control policies
    // affect the results of the simulation. Only applies if the simulated user's
    // account is part of an organization.
    OrganizationsDecisionDetail *OrganizationsDecisionDetail `type:"structure"`

    // The individual results of the simulation of the API action specified in EvalActionName
    // on each resource.
    ResourceSpecificResults []*ResourceSpecificResult `type:"list"`
    // contains filtered or unexported fields
}

Contains the results of a simulation.

This data type is used by the return parameter of SimulateCustomPolicy and SimulatePrincipalPolicy. Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/EvaluationResult

func (EvaluationResult) GoString

func (s EvaluationResult) GoString() string

GoString returns the string representation

func (*EvaluationResult) SetEvalActionName

func (s *EvaluationResult) SetEvalActionName(v string) *EvaluationResult

SetEvalActionName sets the EvalActionName field's value.

func (*EvaluationResult) SetEvalDecision

func (s *EvaluationResult) SetEvalDecision(v string) *EvaluationResult

SetEvalDecision sets the EvalDecision field's value.

func (*EvaluationResult) SetEvalDecisionDetails

func (s *EvaluationResult) SetEvalDecisionDetails(v map[string]*string) *EvaluationResult

SetEvalDecisionDetails sets the EvalDecisionDetails field's value.

func (*EvaluationResult) SetEvalResourceName

func (s *EvaluationResult) SetEvalResourceName(v string) *EvaluationResult

SetEvalResourceName sets the EvalResourceName field's value.

func (*EvaluationResult) SetMatchedStatements

func (s *EvaluationResult) SetMatchedStatements(v []*Statement) *EvaluationResult

SetMatchedStatements sets the MatchedStatements field's value.

func (*EvaluationResult) SetMissingContextValues

func (s *EvaluationResult) SetMissingContextValues(v []*string) *EvaluationResult

SetMissingContextValues sets the MissingContextValues field's value.

func (*EvaluationResult) SetOrganizationsDecisionDetail

func (s *EvaluationResult) SetOrganizationsDecisionDetail(v *OrganizationsDecisionDetail) *EvaluationResult

SetOrganizationsDecisionDetail sets the OrganizationsDecisionDetail field's value.

func (*EvaluationResult) SetResourceSpecificResults

func (s *EvaluationResult) SetResourceSpecificResults(v []*ResourceSpecificResult) *EvaluationResult

SetResourceSpecificResults sets the ResourceSpecificResults field's value.

func (EvaluationResult) String

func (s EvaluationResult) String() string

String returns the string representation

type GenerateCredentialReportInput

type GenerateCredentialReportInput struct {
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GenerateCredentialReportInput

func (GenerateCredentialReportInput) GoString

func (s GenerateCredentialReportInput) GoString() string

GoString returns the string representation

func (GenerateCredentialReportInput) String

func (s GenerateCredentialReportInput) String() string

String returns the string representation

type GenerateCredentialReportOutput

type GenerateCredentialReportOutput struct {

    // Information about the credential report.
    Description *string `type:"string"`

    // Information about the state of the credential report.
    State *string `type:"string" enum:"ReportStateType"`
    // contains filtered or unexported fields
}

Contains the response to a successful GenerateCredentialReport request. Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GenerateCredentialReportResponse

func (GenerateCredentialReportOutput) GoString

func (s GenerateCredentialReportOutput) GoString() string

GoString returns the string representation

func (*GenerateCredentialReportOutput) SetDescription

func (s *GenerateCredentialReportOutput) SetDescription(v string) *GenerateCredentialReportOutput

SetDescription sets the Description field's value.

func (*GenerateCredentialReportOutput) SetState

func (s *GenerateCredentialReportOutput) SetState(v string) *GenerateCredentialReportOutput

SetState sets the State field's value.

func (GenerateCredentialReportOutput) String

func (s GenerateCredentialReportOutput) String() string

String returns the string representation

type GetAccessKeyLastUsedInput

type GetAccessKeyLastUsedInput struct {

    // The identifier of an access key.
    //
    // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex))
    // a string of characters that can consist of any upper or lowercased letter
    // or digit.
    //
    // AccessKeyId is a required field
    AccessKeyId *string `min:"16" type:"string" required:"true"`
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetAccessKeyLastUsedRequest

func (GetAccessKeyLastUsedInput) GoString

func (s GetAccessKeyLastUsedInput) GoString() string

GoString returns the string representation

func (*GetAccessKeyLastUsedInput) SetAccessKeyId

func (s *GetAccessKeyLastUsedInput) SetAccessKeyId(v string) *GetAccessKeyLastUsedInput

SetAccessKeyId sets the AccessKeyId field's value.

func (GetAccessKeyLastUsedInput) String

func (s GetAccessKeyLastUsedInput) String() string

String returns the string representation

func (*GetAccessKeyLastUsedInput) Validate

func (s *GetAccessKeyLastUsedInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetAccessKeyLastUsedOutput

type GetAccessKeyLastUsedOutput struct {

    // Contains information about the last time the access key was used.
    AccessKeyLastUsed *AccessKeyLastUsed `type:"structure"`

    // The name of the AWS IAM user that owns this access key.
    UserName *string `min:"1" type:"string"`
    // contains filtered or unexported fields
}

Contains the response to a successful GetAccessKeyLastUsed request. It is also returned as a member of the AccessKeyMetaData structure returned by the ListAccessKeys action. Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetAccessKeyLastUsedResponse

func (GetAccessKeyLastUsedOutput) GoString

func (s GetAccessKeyLastUsedOutput) GoString() string

GoString returns the string representation

func (*GetAccessKeyLastUsedOutput) SetAccessKeyLastUsed

func (s *GetAccessKeyLastUsedOutput) SetAccessKeyLastUsed(v *AccessKeyLastUsed) *GetAccessKeyLastUsedOutput

SetAccessKeyLastUsed sets the AccessKeyLastUsed field's value.

func (*GetAccessKeyLastUsedOutput) SetUserName

func (s *GetAccessKeyLastUsedOutput) SetUserName(v string) *GetAccessKeyLastUsedOutput

SetUserName sets the UserName field's value.

func (GetAccessKeyLastUsedOutput) String

func (s GetAccessKeyLastUsedOutput) String() string

String returns the string representation

type GetAccountAuthorizationDetailsInput

type GetAccountAuthorizationDetailsInput struct {

    // A list of entity types used to filter the results. Only the entities that
    // match the types you specify are included in the output. Use the value LocalManagedPolicy
    // to include customer managed policies.
    //
    // The format for this parameter is a comma-separated (if more than one) list
    // of strings. Each string value in the list must be one of the valid values
    // listed below.
    Filter []*string `type:"list"`

    // Use this parameter only when paginating results and only after you receive
    // a response indicating that the results are truncated. Set it to the value
    // of the Marker element in the response that you received to indicate where
    // the next call should start.
    Marker *string `min:"1" type:"string"`

    // (Optional) Use this only when paginating results to indicate the maximum
    // number of items you want in the response. If additional items exist beyond
    // the maximum you specify, the IsTruncated response element is true.
    //
    // If you do not include this parameter, it defaults to 100. Note that IAM might
    // return fewer results, even when there are more results available. In that
    // case, the IsTruncated response element returns true and Marker contains a
    // value to include in the subsequent call that tells the service where to continue
    // from.
    MaxItems *int64 `min:"1" type:"integer"`
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetAccountAuthorizationDetailsRequest

func (GetAccountAuthorizationDetailsInput) GoString

func (s GetAccountAuthorizationDetailsInput) GoString() string

GoString returns the string representation

func (*GetAccountAuthorizationDetailsInput) SetFilter

func (s *GetAccountAuthorizationDetailsInput) SetFilter(v []*string) *GetAccountAuthorizationDetailsInput

SetFilter sets the Filter field's value.

func (*GetAccountAuthorizationDetailsInput) SetMarker

func (s *GetAccountAuthorizationDetailsInput) SetMarker(v string) *GetAccountAuthorizationDetailsInput

SetMarker sets the Marker field's value.

func (*GetAccountAuthorizationDetailsInput) SetMaxItems

func (s *GetAccountAuthorizationDetailsInput) SetMaxItems(v int64) *GetAccountAuthorizationDetailsInput

SetMaxItems sets the MaxItems field's value.

func (GetAccountAuthorizationDetailsInput) String

func (s GetAccountAuthorizationDetailsInput) String() string

String returns the string representation

func (*GetAccountAuthorizationDetailsInput) Validate

func (s *GetAccountAuthorizationDetailsInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetAccountAuthorizationDetailsOutput

type GetAccountAuthorizationDetailsOutput struct {

    // A list containing information about IAM groups.
    GroupDetailList []*GroupDetail `type:"list"`

    // A flag that indicates whether there are more items to return. If your results
    // were truncated, you can make a subsequent pagination request using the Marker
    // request parameter to retrieve more items. Note that IAM might return fewer
    // than the MaxItems number of results even when there are more results available.
    // We recommend that you check IsTruncated after every call to ensure that you
    // receive all of your results.
    IsTruncated *bool `type:"boolean"`

    // When IsTruncated is true, this element is present and contains the value
    // to use for the Marker parameter in a subsequent pagination request.
    Marker *string `min:"1" type:"string"`

    // A list containing information about managed policies.
    Policies []*ManagedPolicyDetail `type:"list"`

    // A list containing information about IAM roles.
    RoleDetailList []*RoleDetail `type:"list"`

    // A list containing information about IAM users.
    UserDetailList []*UserDetail `type:"list"`
    // contains filtered or unexported fields
}

Contains the response to a successful GetAccountAuthorizationDetails request. Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetAccountAuthorizationDetailsResponse

func (GetAccountAuthorizationDetailsOutput) GoString

func (s GetAccountAuthorizationDetailsOutput) GoString() string

GoString returns the string representation

func (*GetAccountAuthorizationDetailsOutput) SetGroupDetailList

func (s *GetAccountAuthorizationDetailsOutput) SetGroupDetailList(v []*GroupDetail) *GetAccountAuthorizationDetailsOutput

SetGroupDetailList sets the GroupDetailList field's value.

func (*GetAccountAuthorizationDetailsOutput) SetIsTruncated

func (s *GetAccountAuthorizationDetailsOutput) SetIsTruncated(v bool) *GetAccountAuthorizationDetailsOutput

SetIsTruncated sets the IsTruncated field's value.

func (*GetAccountAuthorizationDetailsOutput) SetMarker

func (s *GetAccountAuthorizationDetailsOutput) SetMarker(v string) *GetAccountAuthorizationDetailsOutput

SetMarker sets the Marker field's value.

func (*GetAccountAuthorizationDetailsOutput) SetPolicies

func (s *GetAccountAuthorizationDetailsOutput) SetPolicies(v []*ManagedPolicyDetail) *GetAccountAuthorizationDetailsOutput

SetPolicies sets the Policies field's value.

func (*GetAccountAuthorizationDetailsOutput) SetRoleDetailList

func (s *GetAccountAuthorizationDetailsOutput) SetRoleDetailList(v []*RoleDetail) *GetAccountAuthorizationDetailsOutput

SetRoleDetailList sets the RoleDetailList field's value.

func (*GetAccountAuthorizationDetailsOutput) SetUserDetailList

func (s *GetAccountAuthorizationDetailsOutput) SetUserDetailList(v []*UserDetail) *GetAccountAuthorizationDetailsOutput

SetUserDetailList sets the UserDetailList field's value.

func (GetAccountAuthorizationDetailsOutput) String

func (s GetAccountAuthorizationDetailsOutput) String() string

String returns the string representation

type GetAccountPasswordPolicyInput

type GetAccountPasswordPolicyInput struct {
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetAccountPasswordPolicyInput

func (GetAccountPasswordPolicyInput) GoString

func (s GetAccountPasswordPolicyInput) GoString() string

GoString returns the string representation

func (GetAccountPasswordPolicyInput) String

func (s GetAccountPasswordPolicyInput) String() string

String returns the string representation

type GetAccountPasswordPolicyOutput

type GetAccountPasswordPolicyOutput struct {

    // A structure that contains details about the account's password policy.
    //
    // PasswordPolicy is a required field
    PasswordPolicy *PasswordPolicy `type:"structure" required:"true"`
    // contains filtered or unexported fields
}

Contains the response to a successful GetAccountPasswordPolicy request. Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetAccountPasswordPolicyResponse

func (GetAccountPasswordPolicyOutput) GoString

func (s GetAccountPasswordPolicyOutput) GoString() string

GoString returns the string representation

func (*GetAccountPasswordPolicyOutput) SetPasswordPolicy

func (s *GetAccountPasswordPolicyOutput) SetPasswordPolicy(v *PasswordPolicy) *GetAccountPasswordPolicyOutput

SetPasswordPolicy sets the PasswordPolicy field's value.

func (GetAccountPasswordPolicyOutput) String

func (s GetAccountPasswordPolicyOutput) String() string

String returns the string representation

type GetAccountSummaryInput

type GetAccountSummaryInput struct {
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetAccountSummaryInput

func (GetAccountSummaryInput) GoString

func (s GetAccountSummaryInput) GoString() string

GoString returns the string representation

func (GetAccountSummaryInput) String

func (s GetAccountSummaryInput) String() string

String returns the string representation

type GetAccountSummaryOutput

type GetAccountSummaryOutput struct {

    // A set of key value pairs containing information about IAM entity usage and
    // IAM quotas.
    SummaryMap map[string]*int64 `type:"map"`
    // contains filtered or unexported fields
}

Contains the response to a successful GetAccountSummary request. Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetAccountSummaryResponse

func (GetAccountSummaryOutput) GoString

func (s GetAccountSummaryOutput) GoString() string

GoString returns the string representation

func (*GetAccountSummaryOutput) SetSummaryMap

func (s *GetAccountSummaryOutput) SetSummaryMap(v map[string]*int64) *GetAccountSummaryOutput

SetSummaryMap sets the SummaryMap field's value.

func (GetAccountSummaryOutput) String

func (s GetAccountSummaryOutput) String() string

String returns the string representation

type GetContextKeysForCustomPolicyInput

type GetContextKeysForCustomPolicyInput struct {

    // A list of policies for which you want the list of context keys referenced
    // in those policies. Each document is specified as a string containing the
    // complete, valid JSON text of an IAM policy.
    //
    // The regex pattern (http://wikipedia.org/wiki/regex) used to validate this
    // parameter is a string of characters consisting of any printable ASCII character
    // ranging from the space character (\u0020) through end of the ASCII character
    // range as well as the printable characters in the Basic Latin and Latin-1
    // Supplement character set (through \u00FF). It also includes the special characters
    // tab (\u0009), line feed (\u000A), and carriage return (\u000D).
    //
    // PolicyInputList is a required field
    PolicyInputList []*string `type:"list" required:"true"`
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetContextKeysForCustomPolicyRequest

func (GetContextKeysForCustomPolicyInput) GoString

func (s GetContextKeysForCustomPolicyInput) GoString() string

GoString returns the string representation

func (*GetContextKeysForCustomPolicyInput) SetPolicyInputList

func (s *GetContextKeysForCustomPolicyInput) SetPolicyInputList(v []*string) *GetContextKeysForCustomPolicyInput

SetPolicyInputList sets the PolicyInputList field's value.

func (GetContextKeysForCustomPolicyInput) String

func (s GetContextKeysForCustomPolicyInput) String() string

String returns the string representation

func (*GetContextKeysForCustomPolicyInput) Validate

func (s *GetContextKeysForCustomPolicyInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetContextKeysForPolicyResponse

type GetContextKeysForPolicyResponse struct {

    // The list of context keys that are referenced in the input policies.
    ContextKeyNames []*string `type:"list"`
    // contains filtered or unexported fields
}

Contains the response to a successful GetContextKeysForPrincipalPolicy or GetContextKeysForCustomPolicy request. Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetContextKeysForPolicyResponse

func (GetContextKeysForPolicyResponse) GoString

func (s GetContextKeysForPolicyResponse) GoString() string

GoString returns the string representation

func (*GetContextKeysForPolicyResponse) SetContextKeyNames

func (s *GetContextKeysForPolicyResponse) SetContextKeyNames(v []*string) *GetContextKeysForPolicyResponse

SetContextKeyNames sets the ContextKeyNames field's value.

func (GetContextKeysForPolicyResponse) String

func (s GetContextKeysForPolicyResponse) String() string

String returns the string representation

type GetContextKeysForPrincipalPolicyInput

type GetContextKeysForPrincipalPolicyInput struct {

    // An optional list of additional policies for which you want the list of context
    // keys that are referenced.
    //
    // The regex pattern (http://wikipedia.org/wiki/regex) used to validate this
    // parameter is a string of characters consisting of any printable ASCII character
    // ranging from the space character (\u0020) through end of the ASCII character
    // range as well as the printable characters in the Basic Latin and Latin-1
    // Supplement character set (through \u00FF). It also includes the special characters
    // tab (\u0009), line feed (\u000A), and carriage return (\u000D).
    PolicyInputList []*string `type:"list"`

    // The ARN of a user, group, or role whose policies contain the context keys
    // that you want listed. If you specify a user, the list includes context keys
    // that are found in all policies attached to the user as well as to all groups
    // that the user is a member of. If you pick a group or a role, then it includes
    // only those context keys that are found in policies attached to that entity.
    // Note that all parameters are shown in unencoded form here for clarity, but
    // must be URL encoded to be included as a part of a real HTML request.
    //
    // For more information about ARNs, see Amazon Resource Names (ARNs) and AWS
    // Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html)
    // in the AWS General Reference.
    //
    // PolicySourceArn is a required field
    PolicySourceArn *string `min:"20" type:"string" required:"true"`
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetContextKeysForPrincipalPolicyRequest

func (GetContextKeysForPrincipalPolicyInput) GoString

func (s GetContextKeysForPrincipalPolicyInput) GoString() string

GoString returns the string representation

func (*GetContextKeysForPrincipalPolicyInput) SetPolicyInputList

func (s *GetContextKeysForPrincipalPolicyInput) SetPolicyInputList(v []*string) *GetContextKeysForPrincipalPolicyInput

SetPolicyInputList sets the PolicyInputList field's value.

func (*GetContextKeysForPrincipalPolicyInput) SetPolicySourceArn

func (s *GetContextKeysForPrincipalPolicyInput) SetPolicySourceArn(v string) *GetContextKeysForPrincipalPolicyInput

SetPolicySourceArn sets the PolicySourceArn field's value.

func (GetContextKeysForPrincipalPolicyInput) String

func (s GetContextKeysForPrincipalPolicyInput) String() string

String returns the string representation

func (*GetContextKeysForPrincipalPolicyInput) Validate

func (s *GetContextKeysForPrincipalPolicyInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetCredentialReportInput

type GetCredentialReportInput struct {
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetCredentialReportInput

func (GetCredentialReportInput) GoString

func (s GetCredentialReportInput) GoString() string

GoString returns the string representation

func (GetCredentialReportInput) String

func (s GetCredentialReportInput) String() string

String returns the string representation

type GetCredentialReportOutput

type GetCredentialReportOutput struct {

    // Contains the credential report. The report is Base64-encoded.
    //
    // Content is automatically base64 encoded/decoded by the SDK.
    Content []byte `type:"blob"`

    // The date and time when the credential report was created, in ISO 8601 date-time
    // format (http://www.iso.org/iso/iso8601).
    GeneratedTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`

    // The format (MIME type) of the credential report.
    ReportFormat *string `type:"string" enum:"ReportFormatType"`
    // contains filtered or unexported fields
}

Contains the response to a successful GetCredentialReport request. Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetCredentialReportResponse

func (GetCredentialReportOutput) GoString

func (s GetCredentialReportOutput) GoString() string

GoString returns the string representation

func (*GetCredentialReportOutput) SetContent

func (s *GetCredentialReportOutput) SetContent(v []byte) *GetCredentialReportOutput

SetContent sets the Content field's value.

func (*GetCredentialReportOutput) SetGeneratedTime

func (s *GetCredentialReportOutput) SetGeneratedTime(v time.Time) *GetCredentialReportOutput

SetGeneratedTime sets the GeneratedTime field's value.

func (*GetCredentialReportOutput) SetReportFormat

func (s *GetCredentialReportOutput) SetReportFormat(v string) *GetCredentialReportOutput

SetReportFormat sets the ReportFormat field's value.

func (GetCredentialReportOutput) String

func (s GetCredentialReportOutput) String() string

String returns the string representation

type GetGroupInput

type GetGroupInput struct {

    // The name of the group.
    //
    // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex))
    // a string of characters consisting of upper and lowercase alphanumeric characters
    // with no spaces. You can also include any of the following characters: =,.@-
    //
    // GroupName is a required field
    GroupName *string `min:"1" type:"string" required:"true"`

    // Use this parameter only when paginating results and only after you receive
    // a response indicating that the results are truncated. Set it to the value
    // of the Marker element in the response that you received to indicate where
    // the next call should start.
    Marker *string `min:"1" type:"string"`

    // (Optional) Use this only when paginating results to indicate the maximum
    // number of items you want in the response. If additional items exist beyond
    // the maximum you specify, the IsTruncated response element is true.
    //
    // If you do not include this parameter, it defaults to 100. Note that IAM might
    // return fewer results, even when there are more results available. In that
    // case, the IsTruncated response element returns true and Marker contains a
    // value to include in the subsequent call that tells the service where to continue
    // from.
    MaxItems *int64 `min:"1" type:"integer"`
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetGroupRequest

func (GetGroupInput) GoString

func (s GetGroupInput) GoString() string

GoString returns the string representation

func (*GetGroupInput) SetGroupName

func (s *GetGroupInput) SetGroupName(v string) *GetGroupInput

SetGroupName sets the GroupName field's value.

func (*GetGroupInput) SetMarker

func (s *GetGroupInput) SetMarker(v string) *GetGroupInput

SetMarker sets the Marker field's value.

func (*GetGroupInput) SetMaxItems

func (s *GetGroupInput) SetMaxItems(v int64) *GetGroupInput

SetMaxItems sets the MaxItems field's value.

func (GetGroupInput) String

func (s GetGroupInput) String() string

String returns the string representation

func (*GetGroupInput) Validate

func (s *GetGroupInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetGroupOutput

type GetGroupOutput struct {

    // A structure that contains details about the group.
    //
    // Group is a required field
    Group *Group `type:"structure" required:"true"`

    // A flag that indicates whether there are more items to return. If your results
    // were truncated, you can make a subsequent pagination request using the Marker
    // request parameter to retrieve more items. Note that IAM might return fewer
    // than the MaxItems number of results even when there are more results available.
    // We recommend that you check IsTruncated after every call to ensure that you
    // receive all of your results.
    IsTruncated *bool `type:"boolean"`

    // When IsTruncated is true, this element is present and contains the value
    // to use for the Marker parameter in a subsequent pagination request.
    Marker *string `min:"1" type:"string"`

    // A list of users in the group.
    //
    // Users is a required field
    Users []*User `type:"list" required:"true"`
    // contains filtered or unexported fields
}

Contains the response to a successful GetGroup request. Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetGroupResponse

func (GetGroupOutput) GoString

func (s GetGroupOutput) GoString() string

GoString returns the string representation

func (*GetGroupOutput) SetGroup

func (s *GetGroupOutput) SetGroup(v *Group) *GetGroupOutput

SetGroup sets the Group field's value.

func (*GetGroupOutput) SetIsTruncated

func (s *GetGroupOutput) SetIsTruncated(v bool) *GetGroupOutput

SetIsTruncated sets the IsTruncated field's value.

func (*GetGroupOutput) SetMarker

func (s *GetGroupOutput) SetMarker(v string) *GetGroupOutput

SetMarker sets the Marker field's value.

func (*GetGroupOutput) SetUsers

func (s *GetGroupOutput) SetUsers(v []*User) *GetGroupOutput

SetUsers sets the Users field's value.

func (GetGroupOutput) String

func (s GetGroupOutput) String() string

String returns the string representation

type GetGroupPolicyInput

type GetGroupPolicyInput struct {

    // The name of the group the policy is associated with.
    //
    // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex))
    // a string of characters consisting of upper and lowercase alphanumeric characters
    // with no spaces. You can also include any of the following characters: =,.@-
    //
    // GroupName is a required field
    GroupName *string `min:"1" type:"string" required:"true"`

    // The name of the policy document to get.
    //
    // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex))
    // a string of characters consisting of upper and lowercase alphanumeric characters
    // with no spaces. You can also include any of the following characters: =,.@-+
    //
    // PolicyName is a required field
    PolicyName *string `min:"1" type:"string" required:"true"`
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetGroupPolicyRequest

func (GetGroupPolicyInput) GoString

func (s GetGroupPolicyInput) GoString() string

GoString returns the string representation

func (*GetGroupPolicyInput) SetGroupName

func (s *GetGroupPolicyInput) SetGroupName(v string) *GetGroupPolicyInput

SetGroupName sets the GroupName field's value.

func (*GetGroupPolicyInput) SetPolicyName

func (s *GetGroupPolicyInput) SetPolicyName(v string) *GetGroupPolicyInput

SetPolicyName sets the PolicyName field's value.

func (GetGroupPolicyInput) String

func (s GetGroupPolicyInput) String() string

String returns the string representation

func (*GetGroupPolicyInput) Validate

func (s *GetGroupPolicyInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetGroupPolicyOutput

type GetGroupPolicyOutput struct {

    // The group the policy is associated with.
    //
    // GroupName is a required field
    GroupName *string `min:"1" type:"string" required:"true"`

    // The policy document.
    //
    // PolicyDocument is a required field
    PolicyDocument *string `min:"1" type:"string" required:"true"`

    // The name of the policy.
    //
    // PolicyName is a required field
    PolicyName *string `min:"1" type:"string" required:"true"`
    // contains filtered or unexported fields
}

Contains the response to a successful GetGroupPolicy request. Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetGroupPolicyResponse

func (GetGroupPolicyOutput) GoString

func (s GetGroupPolicyOutput) GoString() string

GoString returns the string representation

func (*GetGroupPolicyOutput) SetGroupName

func (s *GetGroupPolicyOutput) SetGroupName(v string) *GetGroupPolicyOutput

SetGroupName sets the GroupName field's value.

func (*GetGroupPolicyOutput) SetPolicyDocument

func (s *GetGroupPolicyOutput) SetPolicyDocument(v string) *GetGroupPolicyOutput

SetPolicyDocument sets the PolicyDocument field's value.

func (*GetGroupPolicyOutput) SetPolicyName

func (s *GetGroupPolicyOutput) SetPolicyName(v string) *GetGroupPolicyOutput

SetPolicyName sets the PolicyName field's value.

func (GetGroupPolicyOutput) String

func (s GetGroupPolicyOutput) String() string

String returns the string representation

type GetInstanceProfileInput

type GetInstanceProfileInput struct {

    // The name of the instance profile to get information about.
    //
    // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex))
    // a string of characters consisting of upper and lowercase alphanumeric characters
    // with no spaces. You can also include any of the following characters: =,.@-
    //
    // InstanceProfileName is a required field
    InstanceProfileName *string `min:"1" type:"string" required:"true"`
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetInstanceProfileRequest

func (GetInstanceProfileInput) GoString

func (s GetInstanceProfileInput) GoString() string

GoString returns the string representation

func (*GetInstanceProfileInput) SetInstanceProfileName

func (s *GetInstanceProfileInput) SetInstanceProfileName(v string) *GetInstanceProfileInput

SetInstanceProfileName sets the InstanceProfileName field's value.

func (GetInstanceProfileInput) String

func (s GetInstanceProfileInput) String() string

String returns the string representation

func (*GetInstanceProfileInput) Validate

func (s *GetInstanceProfileInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetInstanceProfileOutput

type GetInstanceProfileOutput struct {

    // A structure containing details about the instance profile.
    //
    // InstanceProfile is a required field
    InstanceProfile *InstanceProfile `type:"structure" required:"true"`
    // contains filtered or unexported fields
}

Contains the response to a successful GetInstanceProfile request. Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetInstanceProfileResponse

func (GetInstanceProfileOutput) GoString

func (s GetInstanceProfileOutput) GoString() string

GoString returns the string representation

func (*GetInstanceProfileOutput) SetInstanceProfile

func (s *GetInstanceProfileOutput) SetInstanceProfile(v *InstanceProfile) *GetInstanceProfileOutput

SetInstanceProfile sets the InstanceProfile field's value.

func (GetInstanceProfileOutput) String

func (s GetInstanceProfileOutput) String() string

String returns the string representation

type GetLoginProfileInput

type GetLoginProfileInput struct {

    // The name of the user whose login profile you want to retrieve.
    //
    // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex))
    // a string of characters consisting of upper and lowercase alphanumeric characters
    // with no spaces. You can also include any of the following characters: =,.@-
    //
    // UserName is a required field
    UserName *string `min:"1" type:"string" required:"true"`
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetLoginProfileRequest

func (GetLoginProfileInput) GoString

func (s GetLoginProfileInput) GoString() string

GoString returns the string representation

func (*GetLoginProfileInput) SetUserName

func (s *GetLoginProfileInput) SetUserName(v string) *GetLoginProfileInput

SetUserName sets the UserName field's value.

func (GetLoginProfileInput) String

func (s GetLoginProfileInput) String() string

String returns the string representation

func (*GetLoginProfileInput) Validate

func (s *GetLoginProfileInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetLoginProfileOutput

type GetLoginProfileOutput struct {

    // A structure containing the user name and password create date for the user.
    //
    // LoginProfile is a required field
    LoginProfile *LoginProfile `type:"structure" required:"true"`
    // contains filtered or unexported fields
}

Contains the response to a successful GetLoginProfile request. Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetLoginProfileResponse

func (GetLoginProfileOutput) GoString

func (s GetLoginProfileOutput) GoString() string

GoString returns the string representation

func (*GetLoginProfileOutput) SetLoginProfile

func (s *GetLoginProfileOutput) SetLoginProfile(v *LoginProfile) *GetLoginProfileOutput

SetLoginProfile sets the LoginProfile field's value.

func (GetLoginProfileOutput) String

func (s GetLoginProfileOutput) String() string

String returns the string representation

type GetOpenIDConnectProviderInput

type GetOpenIDConnectProviderInput struct {

    // The Amazon Resource Name (ARN) of the OIDC provider resource object in IAM
    // to get information for. You can get a list of OIDC provider resource ARNs
    // by using the ListOpenIDConnectProviders action.
    //
    // For more information about ARNs, see Amazon Resource Names (ARNs) and AWS
    // Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html)
    // in the AWS General Reference.
    //
    // OpenIDConnectProviderArn is a required field
    OpenIDConnectProviderArn *string `min:"20" type:"string" required:"true"`
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetOpenIDConnectProviderRequest

func (GetOpenIDConnectProviderInput) GoString

func (s GetOpenIDConnectProviderInput) GoString() string

GoString returns the string representation

func (*GetOpenIDConnectProviderInput) SetOpenIDConnectProviderArn

func (s *GetOpenIDConnectProviderInput) SetOpenIDConnectProviderArn(v string) *GetOpenIDConnectProviderInput

SetOpenIDConnectProviderArn sets the OpenIDConnectProviderArn field's value.

func (GetOpenIDConnectProviderInput) String

func (s GetOpenIDConnectProviderInput) String() string

String returns the string representation

func (*GetOpenIDConnectProviderInput) Validate

func (s *GetOpenIDConnectProviderInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetOpenIDConnectProviderOutput

type GetOpenIDConnectProviderOutput struct {

    // A list of client IDs (also known as audiences) that are associated with the
    // specified IAM OIDC provider resource object. For more information, see CreateOpenIDConnectProvider.
    ClientIDList []*string `type:"list"`

    // The date and time when the IAM OIDC provider resource object was created
    // in the AWS account.
    CreateDate *time.Time `type:"timestamp" timestampFormat:"iso8601"`

    // A list of certificate thumbprints that are associated with the specified
    // IAM OIDC provider resource object. For more information, see CreateOpenIDConnectProvider.
    ThumbprintList []*string `type:"list"`

    // The URL that the IAM OIDC provider resource object is associated with. For
    // more information, see CreateOpenIDConnectProvider.
    Url *string `min:"1" type:"string"`
    // contains filtered or unexported fields
}

Contains the response to a successful GetOpenIDConnectProvider request. Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetOpenIDConnectProviderResponse

func (GetOpenIDConnectProviderOutput) GoString

func (s GetOpenIDConnectProviderOutput) GoString() string

GoString returns the string representation

func (*GetOpenIDConnectProviderOutput) SetClientIDList

func (s *GetOpenIDConnectProviderOutput) SetClientIDList(v []*string) *GetOpenIDConnectProviderOutput

SetClientIDList sets the ClientIDList field's value.

func (*GetOpenIDConnectProviderOutput) SetCreateDate

func (s *GetOpenIDConnectProviderOutput) SetCreateDate(v time.Time) *GetOpenIDConnectProviderOutput

SetCreateDate sets the CreateDate field's value.

func (*GetOpenIDConnectProviderOutput) SetThumbprintList

func (s *GetOpenIDConnectProviderOutput) SetThumbprintList(v []*string) *GetOpenIDConnectProviderOutput

SetThumbprintList sets the ThumbprintList field's value.

func (*GetOpenIDConnectProviderOutput) SetUrl

func (s *GetOpenIDConnectProviderOutput) SetUrl(v string) *GetOpenIDConnectProviderOutput

SetUrl sets the Url field's value.

func (GetOpenIDConnectProviderOutput) String

func (s GetOpenIDConnectProviderOutput) String() string

String returns the string representation

type GetPolicyInput

type GetPolicyInput struct {

    // The Amazon Resource Name (ARN) of the managed policy that you want information
    // about.
    //
    // For more information about ARNs, see Amazon Resource Names (ARNs) and AWS
    // Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html)
    // in the AWS General Reference.
    //
    // PolicyArn is a required field
    PolicyArn *string `min:"20" type:"string" required:"true"`
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetPolicyRequest

func (GetPolicyInput) GoString

func (s GetPolicyInput) GoString() string

GoString returns the string representation

func (*GetPolicyInput) SetPolicyArn

func (s *GetPolicyInput) SetPolicyArn(v string) *GetPolicyInput

SetPolicyArn sets the PolicyArn field's value.

func (GetPolicyInput) String

func (s GetPolicyInput) String() string

String returns the string representation

func (*GetPolicyInput) Validate

func (s *GetPolicyInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetPolicyOutput

type GetPolicyOutput struct {

    // A structure containing details about the policy.
    Policy *Policy `type:"structure"`
    // contains filtered or unexported fields
}

Contains the response to a successful GetPolicy request. Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetPolicyResponse

func (GetPolicyOutput) GoString

func (s GetPolicyOutput) GoString() string

GoString returns the string representation

func (*GetPolicyOutput) SetPolicy

func (s *GetPolicyOutput) SetPolicy(v *Policy) *GetPolicyOutput

SetPolicy sets the Policy field's value.

func (GetPolicyOutput) String

func (s GetPolicyOutput) String() string

String returns the string representation

type GetPolicyVersionInput

type GetPolicyVersionInput struct {

    // The Amazon Resource Name (ARN) of the managed policy that you want information
    // about.
    //
    // For more information about ARNs, see Amazon Resource Names (ARNs) and AWS
    // Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html)
    // in the AWS General Reference.
    //
    // PolicyArn is a required field
    PolicyArn *string `min:"20" type:"string" required:"true"`

    // Identifies the policy version to retrieve.
    //
    // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex))
    // a string of characters that consists of the lowercase letter 'v' followed
    // by one or two digits, and optionally followed by a period '.' and a string
    // of letters and digits.
    //
    // VersionId is a required field
    VersionId *string `type:"string" required:"true"`
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetPolicyVersionRequest

func (GetPolicyVersionInput) GoString

func (s GetPolicyVersionInput) GoString() string

GoString returns the string representation

func (*GetPolicyVersionInput) SetPolicyArn

func (s *GetPolicyVersionInput) SetPolicyArn(v string) *GetPolicyVersionInput

SetPolicyArn sets the PolicyArn field's value.

func (*GetPolicyVersionInput) SetVersionId

func (s *GetPolicyVersionInput) SetVersionId(v string) *GetPolicyVersionInput

SetVersionId sets the VersionId field's value.

func (GetPolicyVersionInput) String

func (s GetPolicyVersionInput) String() string

String returns the string representation

func (*GetPolicyVersionInput) Validate

func (s *GetPolicyVersionInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetPolicyVersionOutput

type GetPolicyVersionOutput struct {

    // A structure containing details about the policy version.
    PolicyVersion *PolicyVersion `type:"structure"`
    // contains filtered or unexported fields
}

Contains the response to a successful GetPolicyVersion request. Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetPolicyVersionResponse

func (GetPolicyVersionOutput) GoString

func (s GetPolicyVersionOutput) GoString() string

GoString returns the string representation

func (*GetPolicyVersionOutput) SetPolicyVersion

func (s *GetPolicyVersionOutput) SetPolicyVersion(v *PolicyVersion) *GetPolicyVersionOutput

SetPolicyVersion sets the PolicyVersion field's value.

func (GetPolicyVersionOutput) String

func (s GetPolicyVersionOutput) String() string

String returns the string representation

type GetRoleInput

type GetRoleInput struct {

    // The name of the IAM role to get information about.
    //
    // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex))
    // a string of characters consisting of upper and lowercase alphanumeric characters
    // with no spaces. You can also include any of the following characters: _+=,.@-
    //
    // RoleName is a required field
    RoleName *string `min:"1" type:"string" required:"true"`
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetRoleRequest

func (GetRoleInput) GoString

func (s GetRoleInput) GoString() string

GoString returns the string representation

func (*GetRoleInput) SetRoleName

func (s *GetRoleInput) SetRoleName(v string) *GetRoleInput

SetRoleName sets the RoleName field's value.

func (GetRoleInput) String

func (s GetRoleInput) String() string

String returns the string representation

func (*GetRoleInput) Validate

func (s *GetRoleInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetRoleOutput

type GetRoleOutput struct {

    // A structure containing details about the IAM role.
    //
    // Role is a required field
    Role *Role `type:"structure" required:"true"`
    // contains filtered or unexported fields
}

Contains the response to a successful GetRole request. Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetRoleResponse

func (GetRoleOutput) GoString

func (s GetRoleOutput) GoString() string

GoString returns the string representation

func (*GetRoleOutput) SetRole

func (s *GetRoleOutput) SetRole(v *Role) *GetRoleOutput

SetRole sets the Role field's value.

func (GetRoleOutput) String

func (s GetRoleOutput) String() string

String returns the string representation

type GetRolePolicyInput

type GetRolePolicyInput struct {

    // The name of the policy document to get.
    //
    // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex))
    // a string of characters consisting of upper and lowercase alphanumeric characters
    // with no spaces. You can also include any of the following characters: =,.@-+
    //
    // PolicyName is a required field
    PolicyName *string `min:"1" type:"string" required:"true"`

    // The name of the role associated with the policy.
    //
    // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex))
    // a string of characters consisting of upper and lowercase alphanumeric characters
    // with no spaces. You can also include any of the following characters: _+=,.@-
    //
    // RoleName is a required field
    RoleName *string `min:"1" type:"string" required:"true"`
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetRolePolicyRequest

func (GetRolePolicyInput) GoString

func (s GetRolePolicyInput) GoString() string

GoString returns the string representation

func (*GetRolePolicyInput) SetPolicyName

func (s *GetRolePolicyInput) SetPolicyName(v string) *GetRolePolicyInput

SetPolicyName sets the PolicyName field's value.

func (*GetRolePolicyInput) SetRoleName

func (s *GetRolePolicyInput) SetRoleName(v string) *GetRolePolicyInput

SetRoleName sets the RoleName field's value.

func (GetRolePolicyInput) String

func (s GetRolePolicyInput) String() string

String returns the string representation

func (*GetRolePolicyInput) Validate

func (s *GetRolePolicyInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetRolePolicyOutput

type GetRolePolicyOutput struct {

    // The policy document.
    //
    // PolicyDocument is a required field
    PolicyDocument *string `min:"1" type:"string" required:"true"`

    // The name of the policy.
    //
    // PolicyName is a required field
    PolicyName *string `min:"1" type:"string" required:"true"`

    // The role the policy is associated with.
    //
    // RoleName is a required field
    RoleName *string `min:"1" type:"string" required:"true"`
    // contains filtered or unexported fields
}

Contains the response to a successful GetRolePolicy request. Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetRolePolicyResponse

func (GetRolePolicyOutput) GoString

func (s GetRolePolicyOutput) GoString() string

GoString returns the string representation

func (*GetRolePolicyOutput) SetPolicyDocument

func (s *GetRolePolicyOutput) SetPolicyDocument(v string) *GetRolePolicyOutput

SetPolicyDocument sets the PolicyDocument field's value.

func (*GetRolePolicyOutput) SetPolicyName

func (s *GetRolePolicyOutput) SetPolicyName(v string) *GetRolePolicyOutput

SetPolicyName sets the PolicyName field's value.

func (*GetRolePolicyOutput) SetRoleName

func (s *GetRolePolicyOutput) SetRoleName(v string) *GetRolePolicyOutput

SetRoleName sets the RoleName field's value.

func (GetRolePolicyOutput) String

func (s GetRolePolicyOutput) String() string

String returns the string representation

type GetSAMLProviderInput

type GetSAMLProviderInput struct {

    // The Amazon Resource Name (ARN) of the SAML provider resource object in IAM
    // to get information about.
    //
    // For more information about ARNs, see Amazon Resource Names (ARNs) and AWS
    // Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html)
    // in the AWS General Reference.
    //
    // SAMLProviderArn is a required field
    SAMLProviderArn *string `min:"20" type:"string" required:"true"`
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetSAMLProviderRequest

func (GetSAMLProviderInput) GoString

func (s GetSAMLProviderInput) GoString() string

GoString returns the string representation

func (*GetSAMLProviderInput) SetSAMLProviderArn

func (s *GetSAMLProviderInput) SetSAMLProviderArn(v string) *GetSAMLProviderInput

SetSAMLProviderArn sets the SAMLProviderArn field's value.

func (GetSAMLProviderInput) String

func (s GetSAMLProviderInput) String() string

String returns the string representation

func (*GetSAMLProviderInput) Validate

func (s *GetSAMLProviderInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetSAMLProviderOutput

type GetSAMLProviderOutput struct {

    // The date and time when the SAML provider was created.
    CreateDate *time.Time `type:"timestamp" timestampFormat:"iso8601"`

    // The XML metadata document that includes information about an identity provider.
    SAMLMetadataDocument *string `min:"1000" type:"string"`

    // The expiration date and time for the SAML provider.
    ValidUntil *time.Time `type:"timestamp" timestampFormat:"iso8601"`
    // contains filtered or unexported fields
}

Contains the response to a successful GetSAMLProvider request. Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetSAMLProviderResponse

func (GetSAMLProviderOutput) GoString

func (s GetSAMLProviderOutput) GoString() string

GoString returns the string representation

func (*GetSAMLProviderOutput) SetCreateDate

func (s *GetSAMLProviderOutput) SetCreateDate(v time.Time) *GetSAMLProviderOutput

SetCreateDate sets the CreateDate field's value.

func (*GetSAMLProviderOutput) SetSAMLMetadataDocument

func (s *GetSAMLProviderOutput) SetSAMLMetadataDocument(v string) *GetSAMLProviderOutput

SetSAMLMetadataDocument sets the SAMLMetadataDocument field's value.

func (*GetSAMLProviderOutput) SetValidUntil

func (s *GetSAMLProviderOutput) SetValidUntil(v time.Time) *GetSAMLProviderOutput

SetValidUntil sets the ValidUntil field's value.

func (GetSAMLProviderOutput) String

func (s GetSAMLProviderOutput) String() string

String returns the string representation

type GetSSHPublicKeyInput

type GetSSHPublicKeyInput struct {

    // Specifies the public key encoding format to use in the response. To retrieve
    // the public key in ssh-rsa format, use SSH. To retrieve the public key in
    // PEM format, use PEM.
    //
    // Encoding is a required field
    Encoding *string `type:"string" required:"true" enum:"encodingType"`

    // The unique identifier for the SSH public key.
    //
    // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex))
    // a string of characters that can consist of any upper or lowercased letter
    // or digit.
    //
    // SSHPublicKeyId is a required field
    SSHPublicKeyId *string `min:"20" type:"string" required:"true"`

    // The name of the IAM user associated with the SSH public key.
    //
    // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex))
    // a string of characters consisting of upper and lowercase alphanumeric characters
    // with no spaces. You can also include any of the following characters: =,.@-
    //
    // UserName is a required field
    UserName *string `min:"1" type:"string" required:"true"`
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetSSHPublicKeyRequest

func (GetSSHPublicKeyInput) GoString

func (s GetSSHPublicKeyInput) GoString() string

GoString returns the string representation

func (*GetSSHPublicKeyInput) SetEncoding

func (s *GetSSHPublicKeyInput) SetEncoding(v string) *GetSSHPublicKeyInput

SetEncoding sets the Encoding field's value.

func (*GetSSHPublicKeyInput) SetSSHPublicKeyId

func (s *GetSSHPublicKeyInput) SetSSHPublicKeyId(v string) *GetSSHPublicKeyInput

SetSSHPublicKeyId sets the SSHPublicKeyId field's value.

func (*GetSSHPublicKeyInput) SetUserName

func (s *GetSSHPublicKeyInput) SetUserName(v string) *GetSSHPublicKeyInput

SetUserName sets the UserName field's value.

func (GetSSHPublicKeyInput) String

func (s GetSSHPublicKeyInput) String() string

String returns the string representation

func (*GetSSHPublicKeyInput) Validate

func (s *GetSSHPublicKeyInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetSSHPublicKeyOutput

type GetSSHPublicKeyOutput struct {

    // A structure containing details about the SSH public key.
    SSHPublicKey *SSHPublicKey `type:"structure"`
    // contains filtered or unexported fields
}

Contains the response to a successful GetSSHPublicKey request. Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetSSHPublicKeyResponse

func (GetSSHPublicKeyOutput) GoString

func (s GetSSHPublicKeyOutput) GoString() string

GoString returns the string representation

func (*GetSSHPublicKeyOutput) SetSSHPublicKey

func (s *GetSSHPublicKeyOutput) SetSSHPublicKey(v *SSHPublicKey) *GetSSHPublicKeyOutput

SetSSHPublicKey sets the SSHPublicKey field's value.

func (GetSSHPublicKeyOutput) String

func (s GetSSHPublicKeyOutput) String() string

String returns the string representation

type GetServerCertificateInput

type GetServerCertificateInput struct {

    // The name of the server certificate you want to retrieve information about.
    //
    // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex))
    // a string of characters consisting of upper and lowercase alphanumeric characters
    // with no spaces. You can also include any of the following characters: =,.@-
    //
    // ServerCertificateName is a required field
    ServerCertificateName *string `min:"1" type:"string" required:"true"`
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetServerCertificateRequest

func (GetServerCertificateInput) GoString

func (s GetServerCertificateInput) GoString() string

GoString returns the string representation

func (*GetServerCertificateInput) SetServerCertificateName

func (s *GetServerCertificateInput) SetServerCertificateName(v string) *GetServerCertificateInput

SetServerCertificateName sets the ServerCertificateName field's value.

func (GetServerCertificateInput) String

func (s GetServerCertificateInput) String() string

String returns the string representation

func (*GetServerCertificateInput) Validate

func (s *GetServerCertificateInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetServerCertificateOutput

type GetServerCertificateOutput struct {

    // A structure containing details about the server certificate.
    //
    // ServerCertificate is a required field
    ServerCertificate *ServerCertificate `type:"structure" required:"true"`
    // contains filtered or unexported fields
}

Contains the response to a successful GetServerCertificate request. Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetServerCertificateResponse

func (GetServerCertificateOutput) GoString

func (s GetServerCertificateOutput) GoString() string

GoString returns the string representation

func (*GetServerCertificateOutput) SetServerCertificate

func (s *GetServerCertificateOutput) SetServerCertificate(v *ServerCertificate) *GetServerCertificateOutput

SetServerCertificate sets the ServerCertificate field's value.

func (GetServerCertificateOutput) String

func (s GetServerCertificateOutput) String() string

String returns the string representation

type GetServiceLinkedRoleDeletionStatusInput

type GetServiceLinkedRoleDeletionStatusInput struct {

    // The deletion task identifier. This identifier is returned by the DeleteServiceLinkedRole
    // operation in the format task/aws-service-role/<service-principal-name>/<role-name>/<task-uuid>.
    //
    // DeletionTaskId is a required field
    DeletionTaskId *string `min:"1" type:"string" required:"true"`
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetServiceLinkedRoleDeletionStatusRequest

func (GetServiceLinkedRoleDeletionStatusInput) GoString

func (s GetServiceLinkedRoleDeletionStatusInput) GoString() string

GoString returns the string representation

func (*GetServiceLinkedRoleDeletionStatusInput) SetDeletionTaskId

func (s *GetServiceLinkedRoleDeletionStatusInput) SetDeletionTaskId(v string) *GetServiceLinkedRoleDeletionStatusInput

SetDeletionTaskId sets the DeletionTaskId field's value.

func (GetServiceLinkedRoleDeletionStatusInput) String

func (s GetServiceLinkedRoleDeletionStatusInput) String() string

String returns the string representation

func (*GetServiceLinkedRoleDeletionStatusInput) Validate

func (s *GetServiceLinkedRoleDeletionStatusInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetServiceLinkedRoleDeletionStatusOutput

type GetServiceLinkedRoleDeletionStatusOutput struct {

    // An object that contains details about the reason the deletion failed.
    Reason *DeletionTaskFailureReasonType `type:"structure"`

    // The status of the deletion.
    //
    // Status is a required field
    Status *string `type:"string" required:"true" enum:"DeletionTaskStatusType"`
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetServiceLinkedRoleDeletionStatusResponse

func (GetServiceLinkedRoleDeletionStatusOutput) GoString

func (s GetServiceLinkedRoleDeletionStatusOutput) GoString() string

GoString returns the string representation

func (*GetServiceLinkedRoleDeletionStatusOutput) SetReason

func (s *GetServiceLinkedRoleDeletionStatusOutput) SetReason(v *DeletionTaskFailureReasonType) *GetServiceLinkedRoleDeletionStatusOutput

SetReason sets the Reason field's value.

func (*GetServiceLinkedRoleDeletionStatusOutput) SetStatus

func (s *GetServiceLinkedRoleDeletionStatusOutput) SetStatus(v string) *GetServiceLinkedRoleDeletionStatusOutput

SetStatus sets the Status field's value.

func (GetServiceLinkedRoleDeletionStatusOutput) String

func (s GetServiceLinkedRoleDeletionStatusOutput) String() string

String returns the string representation

type GetUserInput

type GetUserInput struct {

    // The name of the user to get information about.
    //
    // This parameter is optional. If it is not included, it defaults to the user
    // making the request. This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex))
    // a string of characters consisting of upper and lowercase alphanumeric characters
    // with no spaces. You can also include any of the following characters: =,.@-
    UserName *string `min:"1" type:"string"`
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetUserRequest

func (GetUserInput) GoString

func (s GetUserInput) GoString() string

GoString returns the string representation

func (*GetUserInput) SetUserName

func (s *GetUserInput) SetUserName(v string) *GetUserInput

SetUserName sets the UserName field's value.

func (GetUserInput) String

func (s GetUserInput) String() string

String returns the string representation

func (*GetUserInput) Validate

func (s *GetUserInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetUserOutput

type GetUserOutput struct {

    // A structure containing details about the IAM user.
    //
    // User is a required field
    User *User `type:"structure" required:"true"`
    // contains filtered or unexported fields
}

Contains the response to a successful GetUser request. Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetUserResponse

func (GetUserOutput) GoString

func (s GetUserOutput) GoString() string

GoString returns the string representation

func (*GetUserOutput) SetUser

func (s *GetUserOutput) SetUser(v *User) *GetUserOutput

SetUser sets the User field's value.

func (GetUserOutput) String

func (s GetUserOutput) String() string

String returns the string representation

type GetUserPolicyInput

type GetUserPolicyInput struct {

    // The name of the policy document to get.
    //
    // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex))
    // a string of characters consisting of upper and lowercase alphanumeric characters
    // with no spaces. You can also include any of the following characters: =,.@-+
    //
    // PolicyName is a required field
    PolicyName *string `min:"1" type:"string" required:"true"`

    // The name of the user who the policy is associated with.
    //
    // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex))
    // a string of characters consisting of upper and lowercase alphanumeric characters
    // with no spaces. You can also include any of the following characters: =,.@-
    //
    // UserName is a required field
    UserName *string `min:"1" type:"string" required:"true"`
    // contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetUserPolicyRequest

func (GetUserPolicyInput) GoString

func (s GetUserPolicyInput) GoString() string

GoString returns the string representation

func (*GetUserPolicyInput) SetPolicyName

func (s *GetUserPolicyInput) SetPolicyName(v string) *GetUserPolicyInput

SetPolicyName sets the PolicyName field's value.

func (*GetUserPolicyInput) SetUserName

func (s *GetUserPolicyInput) SetUserName(v string) *GetUserPolicyInput

SetUserName sets the UserName field's value.

func (GetUserPolicyInput) String

func (s GetUserPolicyInput) String() string

String returns the string representation

func (*GetUserPolicyInput) Validate

func (s *GetUserPolicyInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetUserPolicyOutput

type GetUserPolicyOutput struct {

    // The policy document.
    //
    // PolicyDocument is a required field
    PolicyDocument *string `min:"1" type:"string" required:"true"`

    // The name of the policy.
    //
    // PolicyName is a required field
    PolicyName *string `min:"1" type:"string" required:"true"`

    // The user the policy is associated with.
    //
    // UserName is a required field
    UserName *string `min:"1" type:"string" required:"true"`
    // contains filtered or unexported fields
}

Contains the response to a successful GetUserPolicy request. Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetUserPolicyResponse

func (GetUserPolicyOutput) GoString

func (s GetUserPolicyOutput) GoString() string

GoString returns the string representation

func (*GetUserPolicyOutput) SetPolicyDocument

func (s *GetUserPolicyOutput) SetPolicyDocument(v string) *GetUserPolicyOutput

SetPolicyDocument sets the PolicyDocument field's value.

func (*GetUserPolicyOutput) SetPolicyName

func (s *GetUserPolicyOutput) SetPolicyName(v string) *GetUserPolicyOutput

SetPolicyName sets the PolicyName field's value.

func (*GetUserPolicyOutput) SetUserName

func (s *GetUserPolicyOutput) SetUserName(v string) *GetUserPolicyOutput

SetUserName sets the UserName field's value.

func (GetUserPolicyOutput) String

func (s GetUserPolicyOutput) String() string

String returns the string representation

type Group

type Group struct {

    // The Amazon Resource Name (ARN) specifying the group. For more information
    // about ARNs and how to use them in policies, see IAM Identifiers (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html)
    // in the Using IAM guide.
    //
    // Arn is a required field
    Arn *string `min:"20" type:"string" required:"true"`

    // The date and time, in ISO 8601 date-time format (http://www.iso.org/iso/iso8601),
    // when the group was created.
    //
    // CreateDate is a required field
    CreateDate *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"`

    // The stable and unique string identifying the group. For more information
    // about IDs, see IAM Identifiers (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html)
    // in the Using IAM guide.
    //
    // GroupId is a required field
    GroupId *string `min:"16" type:"string" required:"true"`

    // The friendly name that identifies the group.
    //
    // GroupName is a required field
    GroupName *string `min:"1" type:"string" required:"true"`

    // The path to the group. For more information about paths, see IAM Identifiers
    // (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html)
    // in the Using IAM guide.
    //
    // Path is a required field
    Path *string `min:"1" type:"string" required:"true"`
    // contains filtered or unexported fields
}

Contains information about an IAM group entity.

This data type is used as a response element in the following actions:

* CreateGroup

* GetGroup

* ListGroups

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/Group

func (Group) GoString

func (s Group) GoString() string

GoString returns the string representation

func (*Group) SetArn

func (s *Group) SetArn(v string) *Group

SetArn sets the Arn field's value.

func (*Group) SetCreateDate

func (s *Group) SetCreateDate(v time.Time) *Group

SetCreateDate sets the CreateDate field's value.

func (*Group) SetGroupId

func (s *Group) SetGroupId(v string) *Group

SetGroupId sets the GroupId field's value.

func (*Group) SetGroupName

func (s *Group) SetGroupName(v string) *Group

SetGroupName sets the GroupName field's value.

func (*Group) SetPath

func (s *Group) SetPath(v string) *Group

SetPath sets the Path field's value.

func (Group) String

func (s Group) String() string

String returns the string representation

type GroupDetail

type GroupDetail struct {

    // The Amazon Resource Name (ARN). ARNs are unique identifiers for AWS resources.
    //
    // For more information about ARNs, go to Amazon Resource Names (ARNs) and AWS
    // Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html)
    // in the AWS General Reference.
    Arn *string `min:"20" type:"string"`

    // A list of the managed policies attached to the group.
    AttachedManagedPolicies []*AttachedPolicy `type:"list"`

    // The date and time, in ISO 8601 date-time format (http://www.iso.org/iso/iso8601),
    // when the group was created.
    CreateDate *time.Time `type:"timestamp" timestampFormat:"iso8601"`

    // The stable and unique string identifying the group. For more information
    // about IDs, see IAM Identifiers (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html)
    // in the Using IAM guide.
    GroupId *string `min:"16" type:"string"`

    // The friendly name that identifies the group.
    GroupName *string `min:"1" type:"string"`

    // A list of the inline policies embedded in the group.
    GroupPolicyList []*PolicyDetail `type:"list"`

    // The path to the group. For more information about paths, see IAM Identifiers
    // (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html)
    // in the Using IAM guide.
    Path *string `min:"1" type:"string"`
    // contains filtered or unexported fields
}

Contains information about an IAM group, including all of the group's policies.

This data type is used as a response element in the GetAccountAuthorizationDetails action. Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GroupDetail

func (GroupDetail) GoString

func (s GroupDetail) GoString() string

GoString returns the string representation

func (*GroupDetail) SetArn

func (s *GroupDetail) SetArn(v string) *GroupDetail

SetArn sets the Arn field's value.

func (*GroupDetail) SetAttachedManagedPolicies

func (s *GroupDetail) SetAttachedManagedPolicies(v []*AttachedPolicy) *GroupDetail

SetAttachedManagedPolicies sets the AttachedManagedPolicies field's value.

func (*GroupDetail) SetCreateDate

func (s *GroupDetail) SetCreateDate(v time.Time) *GroupDetail

SetCreateDate sets the CreateDate field's value.

func (*GroupDetail) SetGroupId

func (s *GroupDetail) SetGroupId(v string) *GroupDetail

SetGroupId sets the GroupId field's value.

func (*GroupDetail) SetGroupName

func (s *GroupDetail) SetGroupName(v string) *GroupDetail

SetGroupName sets the GroupName field's value.

func (*GroupDetail) SetGroupPolicyList

func (s *GroupDetail) SetGroupPolicyList(v []*PolicyDetail) *GroupDetail

SetGroupPolicyList sets the GroupPolicyList field's value.

func (*GroupDetail) SetPath

func (s *GroupDetail) SetPath(v string) *GroupDetail

SetPath sets the Path field's value.

func (GroupDetail) String

func (s GroupDetail) String() string

String returns the string representation

type IAM

type IAM struct {
    *client.Client
}

IAM provides the API operation methods for making requests to AWS Identity and Access Management. See this package's package overview docs for details on the service.

IAM methods are safe to use concurrently. It is not safe to modify mutate any of the struct's properties though.

func New

func New(p client.ConfigProvider, cfgs ...*aws.Config) *IAM

New creates a new instance of the IAM client with a session. If additional configuration is needed for the client instance use the optional aws.Config parameter to add your extra config.

Example:

// Create a IAM client from just a session.
svc := iam.New(mySession)

// Create a IAM client with additional configuration
svc := iam.New(mySession, aws.NewConfig().WithRegion("us-west-2"))

func (*IAM) AddClientIDToOpenIDConnectProvider

func (c *IAM) AddClientIDToOpenIDConnectProvider(input *AddClientIDToOpenIDConnectProviderInput) (*AddClientIDToOpenIDConnectProviderOutput, error)

AddClientIDToOpenIDConnectProvider API operation for AWS Identity and Access Management.

Adds a new client ID (also known as audience) to the list of client IDs already registered for the specified IAM OpenID Connect (OIDC) provider resource.

This action is idempotent; it does not fail or return an error if you add an existing client ID to the provider.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Identity and Access Management's API operation AddClientIDToOpenIDConnectProvider for usage and error information.

Returned Error Codes:

* ErrCodeInvalidInputException "InvalidInput"
The request was rejected because an invalid or out-of-range value was supplied
for an input parameter.

* ErrCodeNoSuchEntityException "NoSuchEntity"
The request was rejected because it referenced an entity that does not exist.
The error message describes the entity.

* ErrCodeLimitExceededException "LimitExceeded"
The request was rejected because it attempted to create resources beyond
the current AWS account limits. The error message describes the limit exceeded.

* ErrCodeServiceFailureException "ServiceFailure"
The request processing has failed because of an unknown error, exception
or failure.

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/AddClientIDToOpenIDConnectProvider

Example (Shared00)

To add a client ID (audience) to an Open-ID Connect (OIDC) provider The following add-client-id-to-open-id-connect-provider command adds the client ID my-application-ID to the OIDC provider named server.example.com:

Code:

svc := iam.New(session.New())
input := &iam.AddClientIDToOpenIDConnectProviderInput{
    ClientID:                 aws.String("my-application-ID"),
    OpenIDConnectProviderArn: aws.String("arn:aws:iam::123456789012:oidc-provider/server.example.com"),
}

result, err := svc.AddClientIDToOpenIDConnectProvider(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case iam.ErrCodeInvalidInputException:
            fmt.Println(iam.ErrCodeInvalidInputException, aerr.Error())
        case iam.ErrCodeNoSuchEntityException:
            fmt.Println(iam.ErrCodeNoSuchEntityException, aerr.Error())
        case iam.ErrCodeLimitExceededException:
            fmt.Println(iam.ErrCodeLimitExceededException, aerr.Error())
        case iam.ErrCodeServiceFailureException:
            fmt.Println(iam.ErrCodeServiceFailureException, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*IAM) AddClientIDToOpenIDConnectProviderRequest

func (c *IAM) AddClientIDToOpenIDConnectProviderRequest(input *AddClientIDToOpenIDConnectProviderInput) (req *request.Request, output *AddClientIDToOpenIDConnectProviderOutput)

AddClientIDToOpenIDConnectProviderRequest generates a "aws/request.Request" representing the client's request for the AddClientIDToOpenIDConnectProvider operation. The "output" return value will be populated with the request's response once the request complets successfuly.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See AddClientIDToOpenIDConnectProvider for more information on using the AddClientIDToOpenIDConnectProvider API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the AddClientIDToOpenIDConnectProviderRequest method.
req, resp := client.AddClientIDToOpenIDConnectProviderRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/AddClientIDToOpenIDConnectProvider

func (*IAM) AddClientIDToOpenIDConnectProviderWithContext

func (c *IAM) AddClientIDToOpenIDConnectProviderWithContext(ctx aws.Context, input *AddClientIDToOpenIDConnectProviderInput, opts ...request.Option) (*AddClientIDToOpenIDConnectProviderOutput, error)

AddClientIDToOpenIDConnectProviderWithContext is the same as AddClientIDToOpenIDConnectProvider with the addition of the ability to pass a context and additional request options.

See AddClientIDToOpenIDConnectProvider for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*IAM) AddRoleToInstanceProfile

func (c *IAM) AddRoleToInstanceProfile(input *AddRoleToInstanceProfileInput) (*AddRoleToInstanceProfileOutput, error)

AddRoleToInstanceProfile API operation for AWS Identity and Access Management.

Adds the specified IAM role to the specified instance profile. An instance profile can contain only one role, and this limit cannot be increased.

The caller of this API must be granted the PassRole permission on the IAM role by a permission policy.

For more information about roles, go to Working with Roles (http://docs.aws.amazon.com/IAM/latest/UserGuide/WorkingWithRoles.html). For more information about instance profiles, go to About Instance Profiles (http://docs.aws.amazon.com/IAM/latest/UserGuide/AboutInstanceProfiles.html).

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Identity and Access Management's API operation AddRoleToInstanceProfile for usage and error information.

Returned Error Codes:

* ErrCodeNoSuchEntityException "NoSuchEntity"
The request was rejected because it referenced an entity that does not exist.
The error message describes the entity.

* ErrCodeEntityAlreadyExistsException "EntityAlreadyExists"
The request was rejected because it attempted to create a resource that already
exists.

* ErrCodeLimitExceededException "LimitExceeded"
The request was rejected because it attempted to create resources beyond
the current AWS account limits. The error message describes the limit exceeded.

* ErrCodeUnmodifiableEntityException "UnmodifiableEntity"
The request was rejected because only the service that depends on the service-linked
role can modify or delete the role on your behalf. The error message includes
the name of the service that depends on this service-linked role. You must
request the change through that service.

* ErrCodeServiceFailureException "ServiceFailure"
The request processing has failed because of an unknown error, exception
or failure.

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/AddRoleToInstanceProfile

Example (Shared00)

To add a role to an instance profile The following command adds the role named S3Access to the instance profile named Webserver:

Code:

svc := iam.New(session.New())
input := &iam.AddRoleToInstanceProfileInput{
    InstanceProfileName: aws.String("Webserver"),
    RoleName:            aws.String("S3Access"),
}

result, err := svc.AddRoleToInstanceProfile(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case iam.ErrCodeNoSuchEntityException:
            fmt.Println(iam.ErrCodeNoSuchEntityException, aerr.Error())
        case iam.ErrCodeEntityAlreadyExistsException:
            fmt.Println(iam.ErrCodeEntityAlreadyExistsException, aerr.Error())
        case iam.ErrCodeLimitExceededException:
            fmt.Println(iam.ErrCodeLimitExceededException, aerr.Error())
        case iam.ErrCodeUnmodifiableEntityException:
            fmt.Println(iam.ErrCodeUnmodifiableEntityException, aerr.Error())
        case iam.ErrCodeServiceFailureException:
            fmt.Println(iam.ErrCodeServiceFailureException, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*IAM) AddRoleToInstanceProfileRequest

func (c *IAM) AddRoleToInstanceProfileRequest(input *AddRoleToInstanceProfileInput) (req *request.Request, output *AddRoleToInstanceProfileOutput)

AddRoleToInstanceProfileRequest generates a "aws/request.Request" representing the client's request for the AddRoleToInstanceProfile operation. The "output" return value will be populated with the request's response once the request complets successfuly.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See AddRoleToInstanceProfile for more information on using the AddRoleToInstanceProfile API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the AddRoleToInstanceProfileRequest method.
req, resp := client.AddRoleToInstanceProfileRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/AddRoleToInstanceProfile

func (*IAM) AddRoleToInstanceProfileWithContext

func (c *IAM) AddRoleToInstanceProfileWithContext(ctx aws.Context, input *AddRoleToInstanceProfileInput, opts ...request.Option) (*AddRoleToInstanceProfileOutput, error)

AddRoleToInstanceProfileWithContext is the same as AddRoleToInstanceProfile with the addition of the ability to pass a context and additional request options.

See AddRoleToInstanceProfile for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*IAM) AddUserToGroup

func (c *IAM) AddUserToGroup(input *AddUserToGroupInput) (*AddUserToGroupOutput, error)

AddUserToGroup API operation for AWS Identity and Access Management.

Adds the specified user to the specified group.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Identity and Access Management's API operation AddUserToGroup for usage and error information.

Returned Error Codes:

* ErrCodeNoSuchEntityException "NoSuchEntity"
The request was rejected because it referenced an entity that does not exist.
The error message describes the entity.

* ErrCodeLimitExceededException "LimitExceeded"
The request was rejected because it attempted to create resources beyond
the current AWS account limits. The error message describes the limit exceeded.

* ErrCodeServiceFailureException "ServiceFailure"
The request processing has failed because of an unknown error, exception
or failure.

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/AddUserToGroup

Example (Shared00)

To add a user to an IAM group The following command adds an IAM user named Bob to the IAM group named Admins:

Code:

svc := iam.New(session.New())
input := &iam.AddUserToGroupInput{
    GroupName: aws.String("Admins"),
    UserName:  aws.String("Bob"),
}

result, err := svc.AddUserToGroup(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case iam.ErrCodeNoSuchEntityException:
            fmt.Println(iam.ErrCodeNoSuchEntityException, aerr.Error())
        case iam.ErrCodeLimitExceededException:
            fmt.Println(iam.ErrCodeLimitExceededException, aerr.Error())
        case iam.ErrCodeServiceFailureException:
            fmt.Println(iam.ErrCodeServiceFailureException, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*IAM) AddUserToGroupRequest

func (c *IAM) AddUserToGroupRequest(input *AddUserToGroupInput) (req *request.Request, output *AddUserToGroupOutput)

AddUserToGroupRequest generates a "aws/request.Request" representing the client's request for the AddUserToGroup operation. The "output" return value will be populated with the request's response once the request complets successfuly.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See AddUserToGroup for more information on using the AddUserToGroup API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the AddUserToGroupRequest method.
req, resp := client.AddUserToGroupRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/AddUserToGroup

func (*IAM) AddUserToGroupWithContext

func (c *IAM) AddUserToGroupWithContext(ctx aws.Context, input *AddUserToGroupInput, opts ...request.Option) (*AddUserToGroupOutput, error)

AddUserToGroupWithContext is the same as AddUserToGroup with the addition of the ability to pass a context and additional request options.

See AddUserToGroup for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*IAM) AttachGroupPolicy

func (c *IAM) AttachGroupPolicy(input *AttachGroupPolicyInput) (*AttachGroupPolicyOutput, error)

AttachGroupPolicy API operation for AWS Identity and Access Management.

Attaches the specified managed policy to the specified IAM group.

You use this API to attach a managed policy to a group. To embed an inline policy in a group, use PutGroupPolicy.

For more information about policies, see Managed Policies and Inline Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) in the IAM User Guide.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Identity and Access Management's API operation AttachGroupPolicy for usage and error information.

Returned Error Codes:

* ErrCodeNoSuchEntityException "NoSuchEntity"
The request was rejected because it referenced an entity that does not exist.
The error message describes the entity.

* ErrCodeLimitExceededException "LimitExceeded"
The request was rejected because it attempted to create resources beyond
the current AWS account limits. The error message describes the limit exceeded.

* ErrCodeInvalidInputException "InvalidInput"
The request was rejected because an invalid or out-of-range value was supplied
for an input parameter.

* ErrCodePolicyNotAttachableException "PolicyNotAttachable"
The request failed because AWS service role policies can only be attached
to the service-linked role for that service.

* ErrCodeServiceFailureException "ServiceFailure"
The request processing has failed because of an unknown error, exception
or failure.

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/AttachGroupPolicy

Example (Shared00)

To attach a managed policy to an IAM group The following command attaches the AWS managed policy named ReadOnlyAccess to the IAM group named Finance.

Code:

svc := iam.New(session.New())
input := &iam.AttachGroupPolicyInput{
    GroupName: aws.String("Finance"),
    PolicyArn: aws.String("arn:aws:iam::aws:policy/ReadOnlyAccess"),
}

result, err := svc.AttachGroupPolicy(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case iam.ErrCodeNoSuchEntityException:
            fmt.Println(iam.ErrCodeNoSuchEntityException, aerr.Error())
        case iam.ErrCodeLimitExceededException:
            fmt.Println(iam.ErrCodeLimitExceededException, aerr.Error())
        case iam.ErrCodeInvalidInputException:
            fmt.Println(iam.ErrCodeInvalidInputException, aerr.Error())
        case iam.ErrCodePolicyNotAttachableException:
            fmt.Println(iam.ErrCodePolicyNotAttachableException, aerr.Error())
        case iam.ErrCodeServiceFailureException:
            fmt.Println(iam.ErrCodeServiceFailureException, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*IAM) AttachGroupPolicyRequest

func (c *IAM) AttachGroupPolicyRequest(input *AttachGroupPolicyInput) (req *request.Request, output *AttachGroupPolicyOutput)

AttachGroupPolicyRequest generates a "aws/request.Request" representing the client's request for the AttachGroupPolicy operation. The "output" return value will be populated with the request's response once the request complets successfuly.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See AttachGroupPolicy for more information on using the AttachGroupPolicy API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the AttachGroupPolicyRequest method.
req, resp := client.AttachGroupPolicyRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/AttachGroupPolicy

func (*IAM) AttachGroupPolicyWithContext

func (c *IAM) AttachGroupPolicyWithContext(ctx aws.Context, input *AttachGroupPolicyInput, opts ...request.Option) (*AttachGroupPolicyOutput, error)

AttachGroupPolicyWithContext is the same as AttachGroupPolicy with the addition of the ability to pass a context and additional request options.

See AttachGroupPolicy for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*IAM) AttachRolePolicy

func (c *IAM) AttachRolePolicy(input *AttachRolePolicyInput) (*AttachRolePolicyOutput, error)

AttachRolePolicy API operation for AWS Identity and Access Management.

Attaches the specified managed policy to the specified IAM role. When you attach a managed policy to a role, the managed policy becomes part of the role's permission (access) policy.

You cannot use a managed policy as the role's trust policy. The role's trust policy is created at the same time as the role, using CreateRole. You can update a role's trust policy using UpdateAssumeRolePolicy.

Use this API to attach a managed policy to a role. To embed an inline policy in a role, use PutRolePolicy. For more information about policies, see Managed Policies and Inline Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) in the IAM User Guide.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Identity and Access Management's API operation AttachRolePolicy for usage and error information.

Returned Error Codes:

* ErrCodeNoSuchEntityException "NoSuchEntity"
The request was rejected because it referenced an entity that does not exist.
The error message describes the entity.

* ErrCodeLimitExceededException "LimitExceeded"
The request was rejected because it attempted to create resources beyond
the current AWS account limits. The error message describes the limit exceeded.

* ErrCodeInvalidInputException "InvalidInput"
The request was rejected because an invalid or out-of-range value was supplied
for an input parameter.

* ErrCodeUnmodifiableEntityException "UnmodifiableEntity"
The request was rejected because only the service that depends on the service-linked
role can modify or delete the role on your behalf. The error message includes
the name of the service that depends on this service-linked role. You must
request the change through that service.

* ErrCodePolicyNotAttachableException "PolicyNotAttachable"
The request failed because AWS service role policies can only be attached
to the service-linked role for that service.

* ErrCodeServiceFailureException "ServiceFailure"
The request processing has failed because of an unknown error, exception
or failure.

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/AttachRolePolicy

Example (Shared00)

To attach a managed policy to an IAM role The following command attaches the AWS managed policy named ReadOnlyAccess to the IAM role named ReadOnlyRole.

Code:

svc := iam.New(session.New())
input := &iam.AttachRolePolicyInput{
    PolicyArn: aws.String("arn:aws:iam::aws:policy/ReadOnlyAccess"),
    RoleName:  aws.String("ReadOnlyRole"),
}

result, err := svc.AttachRolePolicy(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case iam.ErrCodeNoSuchEntityException:
            fmt.Println(iam.ErrCodeNoSuchEntityException, aerr.Error())
        case iam.ErrCodeLimitExceededException:
            fmt.Println(iam.ErrCodeLimitExceededException, aerr.Error())
        case iam.ErrCodeInvalidInputException:
            fmt.Println(iam.ErrCodeInvalidInputException, aerr.Error())
        case iam.ErrCodeUnmodifiableEntityException:
            fmt.Println(iam.ErrCodeUnmodifiableEntityException, aerr.Error())
        case iam.ErrCodePolicyNotAttachableException:
            fmt.Println(iam.ErrCodePolicyNotAttachableException, aerr.Error())
        case iam.ErrCodeServiceFailureException:
            fmt.Println(iam.ErrCodeServiceFailureException, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*IAM) AttachRolePolicyRequest

func (c *IAM) AttachRolePolicyRequest(input *AttachRolePolicyInput) (req *request.Request, output *AttachRolePolicyOutput)

AttachRolePolicyRequest generates a "aws/request.Request" representing the client's request for the AttachRolePolicy operation. The "output" return value will be populated with the request's response once the request complets successfuly.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See AttachRolePolicy for more information on using the AttachRolePolicy API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the AttachRolePolicyRequest method.
req, resp := client.AttachRolePolicyRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/AttachRolePolicy

func (*IAM) AttachRolePolicyWithContext

func (c *IAM) AttachRolePolicyWithContext(ctx aws.Context, input *AttachRolePolicyInput, opts ...request.Option) (*AttachRolePolicyOutput, error)

AttachRolePolicyWithContext is the same as AttachRolePolicy with the addition of the ability to pass a context and additional request options.

See AttachRolePolicy for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*IAM) AttachUserPolicy

func (c *IAM) AttachUserPolicy(input *AttachUserPolicyInput) (*AttachUserPolicyOutput, error)

AttachUserPolicy API operation for AWS Identity and Access Management.

Attaches the specified managed policy to the specified user.

You use this API to attach a managed policy to a user. To embed an inline policy in a user, use PutUserPolicy.

For more information about policies, see Managed Policies and Inline Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) in the IAM User Guide.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Identity and Access Management's API operation AttachUserPolicy for usage and error information.

Returned Error Codes:

* ErrCodeNoSuchEntityException "NoSuchEntity"
The request was rejected because it referenced an entity that does not exist.
The error message describes the entity.

* ErrCodeLimitExceededException "LimitExceeded"
The request was rejected because it attempted to create resources beyond
the current AWS account limits. The error message describes the limit exceeded.

* ErrCodeInvalidInputException "InvalidInput"
The request was rejected because an invalid or out-of-range value was supplied
for an input parameter.

* ErrCodePolicyNotAttachableException "PolicyNotAttachable"
The request failed because AWS service role policies can only be attached
to the service-linked role for that service.

* ErrCodeServiceFailureException "ServiceFailure"
The request processing has failed because of an unknown error, exception
or failure.

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/AttachUserPolicy

Example (Shared00)

To attach a managed policy to an IAM user The following command attaches the AWS managed policy named AdministratorAccess to the IAM user named Alice.

Code:

svc := iam.New(session.New())
input := &iam.AttachUserPolicyInput{
    PolicyArn: aws.String("arn:aws:iam::aws:policy/AdministratorAccess"),
    UserName:  aws.String("Alice"),
}

result, err := svc.AttachUserPolicy(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case iam.ErrCodeNoSuchEntityException:
            fmt.Println(iam.ErrCodeNoSuchEntityException, aerr.Error())
        case iam.ErrCodeLimitExceededException:
            fmt.Println(iam.ErrCodeLimitExceededException, aerr.Error())
        case iam.ErrCodeInvalidInputException:
            fmt.Println(iam.ErrCodeInvalidInputException, aerr.Error())
        case iam.ErrCodePolicyNotAttachableException:
            fmt.Println(iam.ErrCodePolicyNotAttachableException, aerr.Error())
        case iam.ErrCodeServiceFailureException:
            fmt.Println(iam.ErrCodeServiceFailureException, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*IAM) AttachUserPolicyRequest

func (c *IAM) AttachUserPolicyRequest(input *AttachUserPolicyInput) (req *request.Request, output *AttachUserPolicyOutput)

AttachUserPolicyRequest generates a "aws/request.Request" representing the client's request for the AttachUserPolicy operation. The "output" return value will be populated with the request's response once the request complets successfuly.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See AttachUserPolicy for more information on using the AttachUserPolicy API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the AttachUserPolicyRequest method.
req, resp := client.AttachUserPolicyRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/AttachUserPolicy

func (*IAM) AttachUserPolicyWithContext

func (c *IAM) AttachUserPolicyWithContext(ctx aws.Context, input *AttachUserPolicyInput, opts ...request.Option) (*AttachUserPolicyOutput, error)

AttachUserPolicyWithContext is the same as AttachUserPolicy with the addition of the ability to pass a context and additional request options.

See AttachUserPolicy for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*IAM) ChangePassword

func (c *IAM) ChangePassword(input *ChangePasswordInput) (*ChangePasswordOutput, error)

ChangePassword API operation for AWS Identity and Access Management.

Changes the password of the IAM user who is calling this action. The root account password is not affected by this action.

To change the password for a different user, see UpdateLoginProfile. For more information about modifying passwords, see Managing Passwords (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_ManagingLogins.html) in the IAM User Guide.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Identity and Access Management's API operation ChangePassword for usage and error information.

Returned Error Codes:

* ErrCodeNoSuchEntityException "NoSuchEntity"
The request was rejected because it referenced an entity that does not exist.
The error message describes the entity.

* ErrCodeInvalidUserTypeException "InvalidUserType"
The request was rejected because the type of user for the transaction was
incorrect.

* ErrCodeLimitExceededException "LimitExceeded"
The request was rejected because it attempted to create resources beyond
the current AWS account limits. The error message describes the limit exceeded.

* ErrCodeEntityTemporarilyUnmodifiableException "EntityTemporarilyUnmodifiable"
The request was rejected because it referenced an entity that is temporarily
unmodifiable, such as a user name that was deleted and then recreated. The
error indicates that the request is likely to succeed if you try again after
waiting several minutes. The error message describes the entity.

* ErrCodePasswordPolicyViolationException "PasswordPolicyViolation"
The request was rejected because the provided password did not meet the requirements
imposed by the account password policy.

* ErrCodeServiceFailureException "ServiceFailure"
The request processing has failed because of an unknown error, exception
or failure.

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ChangePassword

Example (Shared00)

To change the password for your IAM user The following command changes the password for the current IAM user.

Code:

svc := iam.New(session.New())
input := &iam.ChangePasswordInput{
    NewPassword: aws.String("]35d/{pB9Fo9wJ"),
    OldPassword: aws.String("3s0K_;xh4~8XXI"),
}

result, err := svc.ChangePassword(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case iam.ErrCodeNoSuchEntityException:
            fmt.Println(iam.ErrCodeNoSuchEntityException, aerr.Error())
        case iam.ErrCodeInvalidUserTypeException:
            fmt.Println(iam.ErrCodeInvalidUserTypeException, aerr.Error())
        case iam.ErrCodeLimitExceededException:
            fmt.Println(iam.ErrCodeLimitExceededException, aerr.Error())
        case iam.ErrCodeEntityTemporarilyUnmodifiableException:
            fmt.Println(iam.ErrCodeEntityTemporarilyUnmodifiableException, aerr.Error())
        case iam.ErrCodePasswordPolicyViolationException:
            fmt.Println(iam.ErrCodePasswordPolicyViolationException, aerr.Error())
        case iam.ErrCodeServiceFailureException:
            fmt.Println(iam.ErrCodeServiceFailureException, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*IAM) ChangePasswordRequest

func (c *IAM) ChangePasswordRequest(input *ChangePasswordInput) (req *request.Request, output *ChangePasswordOutput)

ChangePasswordRequest generates a "aws/request.Request" representing the client's request for the ChangePassword operation. The "output" return value will be populated with the request's response once the request complets successfuly.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ChangePassword for more information on using the ChangePassword API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ChangePasswordRequest method.
req, resp := client.ChangePasswordRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ChangePassword

func (*IAM) ChangePasswordWithContext

func (c *IAM) ChangePasswordWithContext(ctx aws.Context, input *ChangePasswordInput, opts ...request.Option) (*ChangePasswordOutput, error)

ChangePasswordWithContext is the same as ChangePassword with the addition of the ability to pass a context and additional request options.

See ChangePassword for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*IAM) CreateAccessKey

func (c *IAM) CreateAccessKey(input *CreateAccessKeyInput) (*CreateAccessKeyOutput, error)

CreateAccessKey API operation for AWS Identity and Access Management.

Creates a new AWS secret access key and corresponding AWS access key ID for the specified user. The default status for new keys is Active.

If you do not specify a user name, IAM determines the user name implicitly based on the AWS access key ID signing the request. Because this action works for access keys under the AWS account, you can use this action to manage root credentials even if the AWS account has no associated users.

For information about limits on the number of keys you can create, see Limitations on IAM Entities (http://docs.aws.amazon.com/IAM/latest/UserGuide/LimitationsOnEntities.html) in the IAM User Guide.

To ensure the security of your AWS account, the secret access key is accessible only during key and user creation. You must save the key (for example, in a text file) if you want to be able to access it again. If a secret key is lost, you can delete the access keys for the associated user and then create new keys.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Identity and Access Management's API operation CreateAccessKey for usage and error information.

Returned Error Codes:

* ErrCodeNoSuchEntityException "NoSuchEntity"
The request was rejected because it referenced an entity that does not exist.
The error message describes the entity.

* ErrCodeLimitExceededException "LimitExceeded"
The request was rejected because it attempted to create resources beyond
the current AWS account limits. The error message describes the limit exceeded.

* ErrCodeServiceFailureException "ServiceFailure"
The request processing has failed because of an unknown error, exception
or failure.

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateAccessKey

Example (Shared00)

To create an access key for an IAM user The following command creates an access key (access key ID and secret access key) for the IAM user named Bob.

Code:

svc := iam.New(session.New())
input := &iam.CreateAccessKeyInput{
    UserName: aws.String("Bob"),
}

result, err := svc.CreateAccessKey(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case iam.ErrCodeNoSuchEntityException:
            fmt.Println(iam.ErrCodeNoSuchEntityException, aerr.Error())
        case iam.ErrCodeLimitExceededException:
            fmt.Println(iam.ErrCodeLimitExceededException, aerr.Error())
        case iam.ErrCodeServiceFailureException:
            fmt.Println(iam.ErrCodeServiceFailureException, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*IAM) CreateAccessKeyRequest

func (c *IAM) CreateAccessKeyRequest(input *CreateAccessKeyInput) (req *request.Request, output *CreateAccessKeyOutput)

CreateAccessKeyRequest generates a "aws/request.Request" representing the client's request for the CreateAccessKey operation. The "output" return value will be populated with the request's response once the request complets successfuly.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateAccessKey for more information on using the CreateAccessKey API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateAccessKeyRequest method.
req, resp := client.CreateAccessKeyRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateAccessKey

func (*IAM) CreateAccessKeyWithContext

func (c *IAM) CreateAccessKeyWithContext(ctx aws.Context, input *CreateAccessKeyInput, opts ...request.Option) (*CreateAccessKeyOutput, error)

CreateAccessKeyWithContext is the same as CreateAccessKey with the addition of the ability to pass a context and additional request options.

See CreateAccessKey for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*IAM) CreateAccountAlias

func (c *IAM) CreateAccountAlias(input *CreateAccountAliasInput) (*CreateAccountAliasOutput, error)

CreateAccountAlias API operation for AWS Identity and Access Management.

Creates an alias for your AWS account. For information about using an AWS account alias, see Using an Alias for Your AWS Account ID (http://docs.aws.amazon.com/IAM/latest/UserGuide/AccountAlias.html) in the IAM User Guide.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Identity and Access Management's API operation CreateAccountAlias for usage and error information.

Returned Error Codes:

* ErrCodeEntityAlreadyExistsException "EntityAlreadyExists"
The request was rejected because it attempted to create a resource that already
exists.

* ErrCodeLimitExceededException "LimitExceeded"
The request was rejected because it attempted to create resources beyond
the current AWS account limits. The error message describes the limit exceeded.

* ErrCodeServiceFailureException "ServiceFailure"
The request processing has failed because of an unknown error, exception
or failure.

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateAccountAlias

Example (Shared00)

To create an account alias The following command associates the alias examplecorp to your AWS account.

Code:

svc := iam.New(session.New())
input := &iam.CreateAccountAliasInput{
    AccountAlias: aws.String("examplecorp"),
}

result, err := svc.CreateAccountAlias(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case iam.ErrCodeEntityAlreadyExistsException:
            fmt.Println(iam.ErrCodeEntityAlreadyExistsException, aerr.Error())
        case iam.ErrCodeLimitExceededException:
            fmt.Println(iam.ErrCodeLimitExceededException, aerr.Error())
        case iam.ErrCodeServiceFailureException:
            fmt.Println(iam.ErrCodeServiceFailureException, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*IAM) CreateAccountAliasRequest

func (c *IAM) CreateAccountAliasRequest(input *CreateAccountAliasInput) (req *request.Request, output *CreateAccountAliasOutput)

CreateAccountAliasRequest generates a "aws/request.Request" representing the client's request for the CreateAccountAlias operation. The "output" return value will be populated with the request's response once the request complets successfuly.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateAccountAlias for more information on using the CreateAccountAlias API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateAccountAliasRequest method.
req, resp := client.CreateAccountAliasRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateAccountAlias

func (*IAM) CreateAccountAliasWithContext

func (c *IAM) CreateAccountAliasWithContext(ctx aws.Context, input *CreateAccountAliasInput, opts ...request.Option) (*CreateAccountAliasOutput, error)

CreateAccountAliasWithContext is the same as CreateAccountAlias with the addition of the ability to pass a context and additional request options.

See CreateAccountAlias for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*IAM) CreateGroup

func (c *IAM) CreateGroup(input *CreateGroupInput) (*CreateGroupOutput, error)

CreateGroup API operation for AWS Identity and Access Management.

Creates a new group.

For information about the number of groups you can create, see Limitations on IAM Entities (http://docs.aws.amazon.com/IAM/latest/UserGuide/LimitationsOnEntities.html) in the IAM User Guide.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Identity and Access Management's API operation CreateGroup for usage and error information.

Returned Error Codes:

* ErrCodeLimitExceededException "LimitExceeded"
The request was rejected because it attempted to create resources beyond
the current AWS account limits. The error message describes the limit exceeded.

* ErrCodeEntityAlreadyExistsException "EntityAlreadyExists"
The request was rejected because it attempted to create a resource that already
exists.

* ErrCodeNoSuchEntityException "NoSuchEntity"
The request was rejected because it referenced an entity that does not exist.
The error message describes the entity.

* ErrCodeServiceFailureException "ServiceFailure"
The request processing has failed because of an unknown error, exception
or failure.

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateGroup

Example (Shared00)

To create an IAM group The following command creates an IAM group named Admins.

Code:

svc := iam.New(session.New())
input := &iam.CreateGroupInput{
    GroupName: aws.String("Admins"),
}

result, err := svc.CreateGroup(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case iam.ErrCodeLimitExceededException:
            fmt.Println(iam.ErrCodeLimitExceededException, aerr.Error())
        case iam.ErrCodeEntityAlreadyExistsException:
            fmt.Println(iam.ErrCodeEntityAlreadyExistsException, aerr.Error())
        case iam.ErrCodeNoSuchEntityException:
            fmt.Println(iam.ErrCodeNoSuchEntityException, aerr.Error())
        case iam.ErrCodeServiceFailureException:
            fmt.Println(iam.ErrCodeServiceFailureException, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*IAM) CreateGroupRequest

func (c *IAM) CreateGroupRequest(input *CreateGroupInput) (req *request.Request, output *CreateGroupOutput)

CreateGroupRequest generates a "aws/request.Request" representing the client's request for the CreateGroup operation. The "output" return value will be populated with the request's response once the request complets successfuly.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateGroup for more information on using the CreateGroup API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateGroupRequest method.
req, resp := client.CreateGroupRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateGroup

func (*IAM) CreateGroupWithContext

func (c *IAM) CreateGroupWithContext(ctx aws.Context, input *CreateGroupInput, opts ...request.Option) (*CreateGroupOutput, error)

CreateGroupWithContext is the same as CreateGroup with the addition of the ability to pass a context and additional request options.

See CreateGroup for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*IAM) CreateInstanceProfile

func (c *IAM) CreateInstanceProfile(input *CreateInstanceProfileInput) (*CreateInstanceProfileOutput, error)

CreateInstanceProfile API operation for AWS Identity and Access Management.

Creates a new instance profile. For information about instance profiles, go to About Instance Profiles (http://docs.aws.amazon.com/IAM/latest/UserGuide/AboutInstanceProfiles.html).

For information about the number of instance profiles you can create, see Limitations on IAM Entities (http://docs.aws.amazon.com/IAM/latest/UserGuide/LimitationsOnEntities.html) in the IAM User Guide.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Identity and Access Management's API operation CreateInstanceProfile for usage and error information.

Returned Error Codes:

* ErrCodeEntityAlreadyExistsException "EntityAlreadyExists"
The request was rejected because it attempted to create a resource that already
exists.

* ErrCodeLimitExceededException "LimitExceeded"
The request was rejected because it attempted to create resources beyond
the current AWS account limits. The error message describes the limit exceeded.

* ErrCodeServiceFailureException "ServiceFailure"
The request processing has failed because of an unknown error, exception
or failure.

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateInstanceProfile

Example (Shared00)

To create an instance profile The following command creates an instance profile named Webserver that is ready to have a role attached and then be associated with an EC2 instance.

Code:

svc := iam.New(session.New())
input := &iam.CreateInstanceProfileInput{
    InstanceProfileName: aws.String("Webserver"),
}

result, err := svc.CreateInstanceProfile(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case iam.ErrCodeEntityAlreadyExistsException:
            fmt.Println(iam.ErrCodeEntityAlreadyExistsException, aerr.Error())
        case iam.ErrCodeLimitExceededException:
            fmt.Println(iam.ErrCodeLimitExceededException, aerr.Error())
        case iam.ErrCodeServiceFailureException:
            fmt.Println(iam.ErrCodeServiceFailureException, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*IAM) CreateInstanceProfileRequest

func (c *IAM) CreateInstanceProfileRequest(input *CreateInstanceProfileInput) (req *request.Request, output *CreateInstanceProfileOutput)

CreateInstanceProfileRequest generates a "aws/request.Request" representing the client's request for the CreateInstanceProfile operation. The "output" return value will be populated with the request's response once the request complets successfuly.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateInstanceProfile for more information on using the CreateInstanceProfile API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateInstanceProfileRequest method.
req, resp := client.CreateInstanceProfileRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateInstanceProfile

func (*IAM) CreateInstanceProfileWithContext

func (c *IAM) CreateInstanceProfileWithContext(ctx aws.Context, input *CreateInstanceProfileInput, opts ...request.Option) (*CreateInstanceProfileOutput, error)

CreateInstanceProfileWithContext is the same as CreateInstanceProfile with the addition of the ability to pass a context and additional request options.

See CreateInstanceProfile for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*IAM) CreateLoginProfile

func (c *IAM) CreateLoginProfile(input *CreateLoginProfileInput) (*CreateLoginProfileOutput, error)

CreateLoginProfile API operation for AWS Identity and Access Management.

Creates a password for the specified user, giving the user the ability to access AWS services through the AWS Management Console. For more information about managing passwords, see Managing Passwords (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_ManagingLogins.html) in the IAM User Guide.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Identity and Access Management's API operation CreateLoginProfile for usage and error information.

Returned Error Codes:

* ErrCodeEntityAlreadyExistsException "EntityAlreadyExists"
The request was rejected because it attempted to create a resource that already
exists.

* ErrCodeNoSuchEntityException "NoSuchEntity"
The request was rejected because it referenced an entity that does not exist.
The error message describes the entity.

* ErrCodePasswordPolicyViolationException "PasswordPolicyViolation"
The request was rejected because the provided password did not meet the requirements
imposed by the account password policy.

* ErrCodeLimitExceededException "LimitExceeded"
The request was rejected because it attempted to create resources beyond
the current AWS account limits. The error message describes the limit exceeded.

* ErrCodeServiceFailureException "ServiceFailure"
The request processing has failed because of an unknown error, exception
or failure.

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateLoginProfile

Example (Shared00)

To create an instance profile The following command changes IAM user Bob's password and sets the flag that required Bob to change the password the next time he signs in.

Code:

svc := iam.New(session.New())
input := &iam.CreateLoginProfileInput{
    Password:              aws.String("h]6EszR}vJ*m"),
    PasswordResetRequired: aws.Bool(true),
    UserName:              aws.String("Bob"),
}

result, err := svc.CreateLoginProfile(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case iam.ErrCodeEntityAlreadyExistsException:
            fmt.Println(iam.ErrCodeEntityAlreadyExistsException, aerr.Error())
        case iam.ErrCodeNoSuchEntityException:
            fmt.Println(iam.ErrCodeNoSuchEntityException, aerr.Error())
        case iam.ErrCodePasswordPolicyViolationException:
            fmt.Println(iam.ErrCodePasswordPolicyViolationException, aerr.Error())
        case iam.ErrCodeLimitExceededException:
            fmt.Println(iam.ErrCodeLimitExceededException, aerr.Error())
        case iam.ErrCodeServiceFailureException:
            fmt.Println(iam.ErrCodeServiceFailureException, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*IAM) CreateLoginProfileRequest

func (c *IAM) CreateLoginProfileRequest(input *CreateLoginProfileInput) (req *request.Request, output *CreateLoginProfileOutput)

CreateLoginProfileRequest generates a "aws/request.Request" representing the client's request for the CreateLoginProfile operation. The "output" return value will be populated with the request's response once the request complets successfuly.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateLoginProfile for more information on using the CreateLoginProfile API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateLoginProfileRequest method.
req, resp := client.CreateLoginProfileRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateLoginProfile

func (*IAM) CreateLoginProfileWithContext

func (c *IAM) CreateLoginProfileWithContext(ctx aws.Context, input *CreateLoginProfileInput, opts ...request.Option) (*CreateLoginProfileOutput, error)

CreateLoginProfileWithContext is the same as CreateLoginProfile with the addition of the ability to pass a context and additional request options.

See CreateLoginProfile for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*IAM) CreateOpenIDConnectProvider

func (c *IAM) CreateOpenIDConnectProvider(input *CreateOpenIDConnectProviderInput) (*CreateOpenIDConnectProviderOutput, error)

CreateOpenIDConnectProvider API operation for AWS Identity and Access Management.

Creates an IAM entity to describe an identity provider (IdP) that supports OpenID Connect (OIDC) (http://openid.net/connect/).

The OIDC provider that you create with this operation can be used as a principal in a role's trust policy to establish a trust relationship between AWS and the OIDC provider.

When you create the IAM OIDC provider, you specify the URL of the OIDC identity provider (IdP) to trust, a list of client IDs (also known as audiences) that identify the application or applications that are allowed to authenticate using the OIDC provider, and a list of thumbprints of the server certificate(s) that the IdP uses. You get all of this information from the OIDC IdP that you want to use for access to AWS.

Because trust for the OIDC provider is ultimately derived from the IAM provider that this action creates, it is a best practice to limit access to the CreateOpenIDConnectProvider action to highly-privileged users.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Identity and Access Management's API operation CreateOpenIDConnectProvider for usage and error information.

Returned Error Codes:

* ErrCodeInvalidInputException "InvalidInput"
The request was rejected because an invalid or out-of-range value was supplied
for an input parameter.

* ErrCodeEntityAlreadyExistsException "EntityAlreadyExists"
The request was rejected because it attempted to create a resource that already
exists.

* ErrCodeLimitExceededException "LimitExceeded"
The request was rejected because it attempted to create resources beyond
the current AWS account limits. The error message describes the limit exceeded.

* ErrCodeServiceFailureException "ServiceFailure"
The request processing has failed because of an unknown error, exception
or failure.

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateOpenIDConnectProvider

Example (Shared00)

To create an instance profile The following example defines a new OIDC provider in IAM with a client ID of my-application-id and pointing at the server with a URL of https://server.example.com.

Code:

svc := iam.New(session.New())
input := &iam.CreateOpenIDConnectProviderInput{
    ClientIDList: []*string{
        aws.String("my-application-id"),
    },
    ThumbprintList: []*string{
        aws.String("3768084dfb3d2b68b7897bf5f565da8efEXAMPLE"),
    },
    Url: aws.String("https://server.example.com"),
}

result, err := svc.CreateOpenIDConnectProvider(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case iam.ErrCodeInvalidInputException:
            fmt.Println(iam.ErrCodeInvalidInputException, aerr.Error())
        case iam.ErrCodeEntityAlreadyExistsException:
            fmt.Println(iam.ErrCodeEntityAlreadyExistsException, aerr.Error())
        case iam.ErrCodeLimitExceededException:
            fmt.Println(iam.ErrCodeLimitExceededException, aerr.Error())
        case iam.ErrCodeServiceFailureException:
            fmt.Println(iam.ErrCodeServiceFailureException, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*IAM) CreateOpenIDConnectProviderRequest

func (c *IAM) CreateOpenIDConnectProviderRequest(input *CreateOpenIDConnectProviderInput) (req *request.Request, output *CreateOpenIDConnectProviderOutput)

CreateOpenIDConnectProviderRequest generates a "aws/request.Request" representing the client's request for the CreateOpenIDConnectProvider operation. The "output" return value will be populated with the request's response once the request complets successfuly.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateOpenIDConnectProvider for more information on using the CreateOpenIDConnectProvider API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateOpenIDConnectProviderRequest method.
req, resp := client.CreateOpenIDConnectProviderRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateOpenIDConnectProvider

func (*IAM) CreateOpenIDConnectProviderWithContext

func (c *IAM) CreateOpenIDConnectProviderWithContext(ctx aws.Context, input *CreateOpenIDConnectProviderInput, opts ...request.Option) (*CreateOpenIDConnectProviderOutput, error)

CreateOpenIDConnectProviderWithContext is the same as CreateOpenIDConnectProvider with the addition of the ability to pass a context and additional request options.

See CreateOpenIDConnectProvider for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*IAM) CreatePolicy

func (c *IAM) CreatePolicy(input *CreatePolicyInput) (*CreatePolicyOutput, error)

CreatePolicy API operation for AWS Identity and Access Management.

Creates a new managed policy for your AWS account.

This operation creates a policy version with a version identifier of v1 and sets v1 as the policy's default version. For more information about policy versions, see Versioning for Managed Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-versions.html) in the IAM User Guide.

For more information about managed policies in general, see Managed Policies and Inline Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) in the IAM User Guide.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Identity and Access Management's API operation CreatePolicy for usage and error information.

Returned Error Codes:

* ErrCodeInvalidInputException "InvalidInput"
The request was rejected because an invalid or out-of-range value was supplied
for an input parameter.

* ErrCodeLimitExceededException "LimitExceeded"
The request was rejected because it attempted to create resources beyond
the current AWS account limits. The error message describes the limit exceeded.

* ErrCodeEntityAlreadyExistsException "EntityAlreadyExists"
The request was rejected because it attempted to create a resource that already
exists.

* ErrCodeMalformedPolicyDocumentException "MalformedPolicyDocument"
The request was rejected because the policy document was malformed. The error
message describes the specific error.

* ErrCodeServiceFailureException "ServiceFailure"
The request processing has failed because of an unknown error, exception
or failure.

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreatePolicy

func (*IAM) CreatePolicyRequest

func (c *IAM) CreatePolicyRequest(input *CreatePolicyInput) (req *request.Request, output *CreatePolicyOutput)

CreatePolicyRequest generates a "aws/request.Request" representing the client's request for the CreatePolicy operation. The "output" return value will be populated with the request's response once the request complets successfuly.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreatePolicy for more information on using the CreatePolicy API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreatePolicyRequest method.
req, resp := client.CreatePolicyRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreatePolicy

func (*IAM) CreatePolicyVersion

func (c *IAM) CreatePolicyVersion(input *CreatePolicyVersionInput) (*CreatePolicyVersionOutput, error)

CreatePolicyVersion API operation for AWS Identity and Access Management.

Creates a new version of the specified managed policy. To update a managed policy, you create a new policy version. A managed policy can have up to five versions. If the policy has five versions, you must delete an existing version using DeletePolicyVersion before you create a new version.

Optionally, you can set the new version as the policy's default version. The default version is the version that is in effect for the IAM users, groups, and roles to which the policy is attached.

For more information about managed policy versions, see Versioning for Managed Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-versions.html) in the IAM User Guide.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Identity and Access Management's API operation CreatePolicyVersion for usage and error information.

Returned Error Codes:

* ErrCodeNoSuchEntityException "NoSuchEntity"
The request was rejected because it referenced an entity that does not exist.
The error message describes the entity.

* ErrCodeMalformedPolicyDocumentException "MalformedPolicyDocument"
The request was rejected because the policy document was malformed. The error
message describes the specific error.

* ErrCodeInvalidInputException "InvalidInput"
The request was rejected because an invalid or out-of-range value was supplied
for an input parameter.

* ErrCodeLimitExceededException "LimitExceeded"
The request was rejected because it attempted to create resources beyond
the current AWS account limits. The error message describes the limit exceeded.

* ErrCodeServiceFailureException "ServiceFailure"
The request processing has failed because of an unknown error, exception
or failure.

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreatePolicyVersion

func (*IAM) CreatePolicyVersionRequest

func (c *IAM) CreatePolicyVersionRequest(input *CreatePolicyVersionInput) (req *request.Request, output *CreatePolicyVersionOutput)

CreatePolicyVersionRequest generates a "aws/request.Request" representing the client's request for the CreatePolicyVersion operation. The "output" return value will be populated with the request's response once the request complets successfuly.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreatePolicyVersion for more information on using the CreatePolicyVersion API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreatePolicyVersionRequest method.
req, resp := client.CreatePolicyVersionRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreatePolicyVersion

func (*IAM) CreatePolicyVersionWithContext

func (c *IAM) CreatePolicyVersionWithContext(ctx aws.Context, input *CreatePolicyVersionInput, opts ...request.Option) (*CreatePolicyVersionOutput, error)

CreatePolicyVersionWithContext is the same as CreatePolicyVersion with the addition of the ability to pass a context and additional request options.

See CreatePolicyVersion for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*IAM) CreatePolicyWithContext

func (c *IAM) CreatePolicyWithContext(ctx aws.Context, input *CreatePolicyInput, opts ...request.Option) (*CreatePolicyOutput, error)

CreatePolicyWithContext is the same as CreatePolicy with the addition of the ability to pass a context and additional request options.

See CreatePolicy for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*IAM) CreateRole

func (c *IAM) CreateRole(input *CreateRoleInput) (*CreateRoleOutput, error)

CreateRole API operation for AWS Identity and Access Management.

Creates a new role for your AWS account. For more information about roles, go to Working with Roles (http://docs.aws.amazon.com/IAM/latest/UserGuide/WorkingWithRoles.html). For information about limitations on role names and the number of roles you can create, go to Limitations on IAM Entities (http://docs.aws.amazon.com/IAM/latest/UserGuide/LimitationsOnEntities.html) in the IAM User Guide.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Identity and Access Management's API operation CreateRole for usage and error information.

Returned Error Codes:

* ErrCodeLimitExceededException "LimitExceeded"
The request was rejected because it attempted to create resources beyond
the current AWS account limits. The error message describes the limit exceeded.

* ErrCodeInvalidInputException "InvalidInput"
The request was rejected because an invalid or out-of-range value was supplied
for an input parameter.

* ErrCodeEntityAlreadyExistsException "EntityAlreadyExists"
The request was rejected because it attempted to create a resource that already
exists.

* ErrCodeMalformedPolicyDocumentException "MalformedPolicyDocument"
The request was rejected because the policy document was malformed. The error
message describes the specific error.

* ErrCodeServiceFailureException "ServiceFailure"
The request processing has failed because of an unknown error, exception
or failure.

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateRole

Example (Shared00)

To create an IAM role The following command creates a role named Test-Role and attaches a trust policy to it that is provided as a URL-encoded JSON string.

Code:

svc := iam.New(session.New())
input := &iam.CreateRoleInput{
    AssumeRolePolicyDocument: aws.String("<URL-encoded-JSON>"),
    Path:     aws.String("/"),
    RoleName: aws.String("Test-Role"),
}

result, err := svc.CreateRole(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case iam.ErrCodeLimitExceededException:
            fmt.Println(iam.ErrCodeLimitExceededException, aerr.Error())
        case iam.ErrCodeInvalidInputException:
            fmt.Println(iam.ErrCodeInvalidInputException, aerr.Error())
        case iam.ErrCodeEntityAlreadyExistsException:
            fmt.Println(iam.ErrCodeEntityAlreadyExistsException, aerr.Error())
        case iam.ErrCodeMalformedPolicyDocumentException:
            fmt.Println(iam.ErrCodeMalformedPolicyDocumentException, aerr.Error())
        case iam.ErrCodeServiceFailureException:
            fmt.Println(iam.ErrCodeServiceFailureException, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*IAM) CreateRoleRequest

func (c *IAM) CreateRoleRequest(input *CreateRoleInput) (req *request.Request, output *CreateRoleOutput)

CreateRoleRequest generates a "aws/request.Request" representing the client's request for the CreateRole operation. The "output" return value will be populated with the request's response once the request complets successfuly.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateRole for more information on using the CreateRole API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateRoleRequest method.
req, resp := client.CreateRoleRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateRole

func (*IAM) CreateRoleWithContext

func (c *IAM) CreateRoleWithContext(ctx aws.Context, input *CreateRoleInput, opts ...request.Option) (*CreateRoleOutput, error)

CreateRoleWithContext is the same as CreateRole with the addition of the ability to pass a context and additional request options.

See CreateRole for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*IAM) CreateSAMLProvider

func (c *IAM) CreateSAMLProvider(input *CreateSAMLProviderInput) (*CreateSAMLProviderOutput, error)

CreateSAMLProvider API operation for AWS Identity and Access Management.

Creates an IAM resource that describes an identity provider (IdP) that supports SAML 2.0.

The SAML provider resource that you create with this operation can be used as a principal in an IAM role's trust policy to enable federated users who sign-in using the SAML IdP to assume the role. You can create an IAM role that supports Web-based single sign-on (SSO) to the AWS Management Console or one that supports API access to AWS.

When you create the SAML provider resource, you upload an a SAML metadata document that you get from your IdP and that includes the issuer's name, expiration information, and keys that can be used to validate the SAML authentication response (assertions) that the IdP sends. You must generate the metadata document using the identity management software that is used as your organization's IdP.

This operation requires Signature Version 4 (http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html).

For more information, see Enabling SAML 2.0 Federated Users to Access the AWS Management Console (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_enable-console-saml.html) and About SAML 2.0-based Federation (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_saml.html) in the IAM User Guide.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Identity and Access Management's API operation CreateSAMLProvider for usage and error information.

Returned Error Codes:

* ErrCodeInvalidInputException "InvalidInput"
The request was rejected because an invalid or out-of-range value was supplied
for an input parameter.

* ErrCodeEntityAlreadyExistsException "EntityAlreadyExists"
The request was rejected because it attempted to create a resource that already
exists.

* ErrCodeLimitExceededException "LimitExceeded"
The request was rejected because it attempted to create resources beyond
the current AWS account limits. The error message describes the limit exceeded.

* ErrCodeServiceFailureException "ServiceFailure"
The request processing has failed because of an unknown error, exception
or failure.

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateSAMLProvider

func (*IAM) CreateSAMLProviderRequest

func (c *IAM) CreateSAMLProviderRequest(input *CreateSAMLProviderInput) (req *request.Request, output *CreateSAMLProviderOutput)

CreateSAMLProviderRequest generates a "aws/request.Request" representing the client's request for the CreateSAMLProvider operation. The "output" return value will be populated with the request's response once the request complets successfuly.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateSAMLProvider for more information on using the CreateSAMLProvider API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateSAMLProviderRequest method.
req, resp := client.CreateSAMLProviderRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateSAMLProvider

func (*IAM) CreateSAMLProviderWithContext

func (c *IAM) CreateSAMLProviderWithContext(ctx aws.Context, input *CreateSAMLProviderInput, opts ...request.Option) (*CreateSAMLProviderOutput, error)

CreateSAMLProviderWithContext is the same as CreateSAMLProvider with the addition of the ability to pass a context and additional request options.

See CreateSAMLProvider for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*IAM) CreateServiceLinkedRole

func (c *IAM) CreateServiceLinkedRole(input *CreateServiceLinkedRoleInput) (*CreateServiceLinkedRoleOutput, error)

CreateServiceLinkedRole API operation for AWS Identity and Access Management.

Creates an IAM role that is linked to a specific AWS service. The service controls the attached policies and when the role can be deleted. This helps ensure that the service is not broken by an unexpectedly changed or deleted role, which could put your AWS resources into an unknown state. Allowing the service to control the role helps improve service stability and proper cleanup when a service and its role are no longer needed.

The name of the role is autogenerated by combining the string that you specify for the AWSServiceName parameter with the string that you specify for the CustomSuffix parameter. The resulting name must be unique in your account or the request fails.

To attach a policy to this service-linked role, you must make the request using the AWS service that depends on this role.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Identity and Access Management's API operation CreateServiceLinkedRole for usage and error information.

Returned Error Codes:

* ErrCodeInvalidInputException "InvalidInput"
The request was rejected because an invalid or out-of-range value was supplied
for an input parameter.

* ErrCodeLimitExceededException "LimitExceeded"
The request was rejected because it attempted to create resources beyond
the current AWS account limits. The error message describes the limit exceeded.

* ErrCodeNoSuchEntityException "NoSuchEntity"
The request was rejected because it referenced an entity that does not exist.
The error message describes the entity.

* ErrCodeServiceFailureException "ServiceFailure"
The request processing has failed because of an unknown error, exception
or failure.

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateServiceLinkedRole

func (*IAM) CreateServiceLinkedRoleRequest

func (c *IAM) CreateServiceLinkedRoleRequest(input *CreateServiceLinkedRoleInput) (req *request.Request, output *CreateServiceLinkedRoleOutput)

CreateServiceLinkedRoleRequest generates a "aws/request.Request" representing the client's request for the CreateServiceLinkedRole operation. The "output" return value will be populated with the request's response once the request complets successfuly.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateServiceLinkedRole for more information on using the CreateServiceLinkedRole API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateServiceLinkedRoleRequest method.
req, resp := client.CreateServiceLinkedRoleRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateServiceLinkedRole

func (*IAM) CreateServiceLinkedRoleWithContext

func (c *IAM) CreateServiceLinkedRoleWithContext(ctx aws.Context, input *CreateServiceLinkedRoleInput, opts ...request.Option) (*CreateServiceLinkedRoleOutput, error)

CreateServiceLinkedRoleWithContext is the same as CreateServiceLinkedRole with the addition of the ability to pass a context and additional request options.

See CreateServiceLinkedRole for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*IAM) CreateServiceSpecificCredential

func (c *IAM) CreateServiceSpecificCredential(input *CreateServiceSpecificCredentialInput) (*CreateServiceSpecificCredentialOutput, error)

CreateServiceSpecificCredential API operation for AWS Identity and Access Management.

Generates a set of credentials consisting of a user name and password that can be used to access the service specified in the request. These credentials are generated by IAM, and can be used only for the specified service.

You can have a maximum of two sets of service-specific credentials for each supported service per user.

The only supported service at this time is AWS CodeCommit.

You can reset the password to a new service-generated value by calling ResetServiceSpecificCredential.

For more information about service-specific credentials, see Using IAM with AWS CodeCommit: Git Credentials, SSH Keys, and AWS Access Keys (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_ssh-keys.html) in the IAM User Guide.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Identity and Access Management's API operation CreateServiceSpecificCredential for usage and error information.

Returned Error Codes:

* ErrCodeLimitExceededException "LimitExceeded"
The request was rejected because it attempted to create resources beyond
the current AWS account limits. The error message describes the limit exceeded.

* ErrCodeNoSuchEntityException "NoSuchEntity"
The request was rejected because it referenced an entity that does not exist.
The error message describes the entity.

* ErrCodeServiceNotSupportedException "NotSupportedService"
The specified service does not support service-specific credentials.

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateServiceSpecificCredential

func (*IAM) CreateServiceSpecificCredentialRequest

func (c *IAM) CreateServiceSpecificCredentialRequest(input *CreateServiceSpecificCredentialInput) (req *request.Request, output *CreateServiceSpecificCredentialOutput)

CreateServiceSpecificCredentialRequest generates a "aws/request.Request" representing the client's request for the CreateServiceSpecificCredential operation. The "output" return value will be populated with the request's response once the request complets successfuly.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateServiceSpecificCredential for more information on using the CreateServiceSpecificCredential API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateServiceSpecificCredentialRequest method.
req, resp := client.CreateServiceSpecificCredentialRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateServiceSpecificCredential

func (*IAM) CreateServiceSpecificCredentialWithContext

func (c *IAM) CreateServiceSpecificCredentialWithContext(ctx aws.Context, input *CreateServiceSpecificCredentialInput, opts ...request.Option) (*CreateServiceSpecificCredentialOutput, error)

CreateServiceSpecificCredentialWithContext is the same as CreateServiceSpecificCredential with the addition of the ability to pass a context and additional request options.

See CreateServiceSpecificCredential for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*IAM) CreateUser

func (c *IAM) CreateUser(input *CreateUserInput) (*CreateUserOutput, error)

CreateUser API operation for AWS Identity and Access Management.

Creates a new IAM user for your AWS account.

For information about limitations on the number of IAM users you can create, see Limitations on IAM Entities (http://docs.aws.amazon.com/IAM/latest/UserGuide/LimitationsOnEntities.html) in the IAM User Guide.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Identity and Access Management's API operation CreateUser for usage and error information.

Returned Error Codes:

* ErrCodeLimitExceededException "LimitExceeded"
The request was rejected because it attempted to create resources beyond
the current AWS account limits. The error message describes the limit exceeded.

* ErrCodeEntityAlreadyExistsException "EntityAlreadyExists"
The request was rejected because it attempted to create a resource that already
exists.

* ErrCodeNoSuchEntityException "NoSuchEntity"
The request was rejected because it referenced an entity that does not exist.
The error message describes the entity.

* ErrCodeServiceFailureException "ServiceFailure"
The request processing has failed because of an unknown error, exception
or failure.

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateUser

Example (Shared00)

To create an IAM user The following create-user command creates an IAM user named Bob in the current account.

Code:

svc := iam.New(session.New())
input := &iam.CreateUserInput{
    UserName: aws.String("Bob"),
}

result, err := svc.CreateUser(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case iam.ErrCodeLimitExceededException:
            fmt.Println(iam.ErrCodeLimitExceededException, aerr.Error())
        case iam.ErrCodeEntityAlreadyExistsException:
            fmt.Println(iam.ErrCodeEntityAlreadyExistsException, aerr.Error())
        case iam.ErrCodeNoSuchEntityException:
            fmt.Println(iam.ErrCodeNoSuchEntityException, aerr.Error())
        case iam.ErrCodeServiceFailureException:
            fmt.Println(iam.ErrCodeServiceFailureException, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*IAM) CreateUserRequest

func (c *IAM) CreateUserRequest(input *CreateUserInput) (req *request.Request, output *CreateUserOutput)

CreateUserRequest generates a "aws/request.Request" representing the client's request for the CreateUser operation. The "output" return value will be populated with the request's response once the request complets successfuly.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateUser for more information on using the CreateUser API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateUserRequest method.
req, resp := client.CreateUserRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateUser

func (*IAM) CreateUserWithContext

func (c *IAM) CreateUserWithContext(ctx aws.Context, input *CreateUserInput, opts ...request.Option) (*CreateUserOutput, error)

CreateUserWithContext is the same as CreateUser with the addition of the ability to pass a context and additional request options.

See CreateUser for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*IAM) CreateVirtualMFADevice

func (c *IAM) CreateVirtualMFADevice(input *CreateVirtualMFADeviceInput) (*CreateVirtualMFADeviceOutput, error)

CreateVirtualMFADevice API operation for AWS Identity and Access Management.

Creates a new virtual MFA device for the AWS account. After creating the virtual MFA, use EnableMFADevice to attach the MFA device to an IAM user. For more information about creating and working with virtual MFA devices, go to Using a Virtual MFA Device (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_VirtualMFA.html) in the IAM User Guide.

For information about limits on the number of MFA devices you can create, see Limitations on Entities (http://docs.aws.amazon.com/IAM/latest/UserGuide/LimitationsOnEntities.html) in the IAM User Guide.

The seed information contained in the QR code and the Base32 string should be treated like any other secret access information, such as your AWS access keys or your passwords. After you provision your virtual device, you should ensure that the information is destroyed following secure procedures.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Identity and Access Management's API operation CreateVirtualMFADevice for usage and error information.

Returned Error Codes:

* ErrCodeLimitExceededException "LimitExceeded"
The request was rejected because it attempted to create resources beyond
the current AWS account limits. The error message describes the limit exceeded.

* ErrCodeEntityAlreadyExistsException "EntityAlreadyExists"
The request was rejected because it attempted to create a resource that already
exists.

* ErrCodeServiceFailureException "ServiceFailure"
The request processing has failed because of an unknown error, exception
or failure.

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateVirtualMFADevice

func (*IAM) CreateVirtualMFADeviceRequest

func (c *IAM) CreateVirtualMFADeviceRequest(input *CreateVirtualMFADeviceInput) (req *request.Request, output *CreateVirtualMFADeviceOutput)

CreateVirtualMFADeviceRequest generates a "aws/request.Request" representing the client's request for the CreateVirtualMFADevice operation. The "output" return value will be populated with the request's response once the request complets successfuly.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateVirtualMFADevice for more information on using the CreateVirtualMFADevice API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateVirtualMFADeviceRequest method.
req, resp := client.CreateVirtualMFADeviceRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateVirtualMFADevice

func (*IAM) CreateVirtualMFADeviceWithContext

func (c *IAM) CreateVirtualMFADeviceWithContext(ctx aws.Context, input *CreateVirtualMFADeviceInput, opts ...request.Option) (*CreateVirtualMFADeviceOutput, error)

CreateVirtualMFADeviceWithContext is the same as CreateVirtualMFADevice with the addition of the ability to pass a context and additional request options.

See CreateVirtualMFADevice for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*IAM) DeactivateMFADevice

func (c *IAM) DeactivateMFADevice(input *DeactivateMFADeviceInput) (*DeactivateMFADeviceOutput, error)

DeactivateMFADevice API operation for AWS Identity and Access Management.

Deactivates the specified MFA device and removes it from association with the user name for which it was originally enabled.

For more information about creating and working with virtual MFA devices, go to Using a Virtual MFA Device (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_VirtualMFA.html) in the IAM User Guide.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Identity and Access Management's API operation DeactivateMFADevice for usage and error information.

Returned Error Codes:

* ErrCodeEntityTemporarilyUnmodifiableException "EntityTemporarilyUnmodifiable"
The request was rejected because it referenced an entity that is temporarily
unmodifiable, such as a user name that was deleted and then recreated. The
error indicates that the request is likely to succeed if you try again after
waiting several minutes. The error message describes the entity.

* ErrCodeNoSuchEntityException "NoSuchEntity"
The request was rejected because it referenced an entity that does not exist.
The error message describes the entity.

* ErrCodeLimitExceededException "LimitExceeded"
The request was rejected because it attempted to create resources beyond
the current AWS account limits. The error message describes the limit exceeded.

* ErrCodeServiceFailureException "ServiceFailure"
The request processing has failed because of an unknown error, exception
or failure.

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeactivateMFADevice

func (*IAM) DeactivateMFADeviceRequest

func (c *IAM) DeactivateMFADeviceRequest(input *DeactivateMFADeviceInput) (req *request.Request, output *DeactivateMFADeviceOutput)

DeactivateMFADeviceRequest generates a "aws/request.Request" representing the client's request for the DeactivateMFADevice operation. The "output" return value will be populated with the request's response once the request complets successfuly.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeactivateMFADevice for more information on using the DeactivateMFADevice API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeactivateMFADeviceRequest method.
req, resp := client.DeactivateMFADeviceRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeactivateMFADevice

func (*IAM) DeactivateMFADeviceWithContext

func (c *IAM) DeactivateMFADeviceWithContext(ctx aws.Context, input *DeactivateMFADeviceInput, opts ...request.Option) (*DeactivateMFADeviceOutput, error)

DeactivateMFADeviceWithContext is the same as DeactivateMFADevice with the addition of the ability to pass a context and additional request options.

See DeactivateMFADevice for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*IAM) DeleteAccessKey

func (c *IAM) DeleteAccessKey(input *DeleteAccessKeyInput) (*DeleteAccessKeyOutput, error)

DeleteAccessKey API operation for AWS Identity and Access Management.

Deletes the access key pair associated with the specified IAM user.

If you do not specify a user name, IAM determines the user name implicitly based on the AWS access key ID signing the request. Because this action works for access keys under the AWS account, you can use this action to manage root credentials even if the AWS account has no associated users.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Identity and Access Management's API operation DeleteAccessKey for usage and error information.

Returned Error Codes:

* ErrCodeNoSuchEntityException "NoSuchEntity"
The request was rejected because it referenced an entity that does not exist.
The error message describes the entity.

* ErrCodeLimitExceededException "LimitExceeded"
The request was rejected because it attempted to create resources beyond
the current AWS account limits. The error message describes the limit exceeded.

* ErrCodeServiceFailureException "ServiceFailure"
The request processing has failed because of an unknown error, exception
or failure.

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteAccessKey

Example (Shared00)

To delete an access key for an IAM user The following command deletes one access key (access key ID and secret access key) assigned to the IAM user named Bob.

Code:

svc := iam.New(session.New())
input := &iam.DeleteAccessKeyInput{
    AccessKeyId: aws.String("AKIDPMS9RO4H3FEXAMPLE"),
    UserName:    aws.String("Bob"),
}

result, err := svc.DeleteAccessKey(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case iam.ErrCodeNoSuchEntityException:
            fmt.Println(iam.ErrCodeNoSuchEntityException, aerr.Error())
        case iam.ErrCodeLimitExceededException:
            fmt.Println(iam.ErrCodeLimitExceededException, aerr.Error())
        case iam.ErrCodeServiceFailureException:
            fmt.Println(iam.ErrCodeServiceFailureException, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*IAM) DeleteAccessKeyRequest

func (c *IAM) DeleteAccessKeyRequest(input *DeleteAccessKeyInput) (req *request.Request, output *DeleteAccessKeyOutput)

DeleteAccessKeyRequest generates a "aws/request.Request" representing the client's request for the DeleteAccessKey operation. The "output" return value will be populated with the request's response once the request complets successfuly.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteAccessKey for more information on using the DeleteAccessKey API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteAccessKeyRequest method.
req, resp := client.DeleteAccessKeyRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteAccessKey

func (*IAM) DeleteAccessKeyWithContext

func (c *IAM) DeleteAccessKeyWithContext(ctx aws.Context, input *DeleteAccessKeyInput, opts ...request.Option) (*DeleteAccessKeyOutput, error)

DeleteAccessKeyWithContext is the same as DeleteAccessKey with the addition of the ability to pass a context and additional request options.

See DeleteAccessKey for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*IAM) DeleteAccountAlias

func (c *IAM) DeleteAccountAlias(input *DeleteAccountAliasInput) (*DeleteAccountAliasOutput, error)

DeleteAccountAlias API operation for AWS Identity and Access Management.

Deletes the specified AWS account alias. For information about using an AWS account alias, see Using an Alias for Your AWS Account ID (http://docs.aws.amazon.com/IAM/latest/UserGuide/AccountAlias.html) in the IAM User Guide.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Identity and Access Management's API operation DeleteAccountAlias for usage and error information.

Returned Error Codes:

* ErrCodeNoSuchEntityException "NoSuchEntity"
The request was rejected because it referenced an entity that does not exist.
The error message describes the entity.

* ErrCodeLimitExceededException "LimitExceeded"
The request was rejected because it attempted to create resources beyond
the current AWS account limits. The error message describes the limit exceeded.

* ErrCodeServiceFailureException "ServiceFailure"
The request processing has failed because of an unknown error, exception
or failure.

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteAccountAlias

Example (Shared00)

To delete an account alias The following command removes the alias mycompany from the current AWS account:

Code:

svc := iam.New(session.New())
input := &iam.DeleteAccountAliasInput{
    AccountAlias: aws.String("mycompany"),
}

result, err := svc.DeleteAccountAlias(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case iam.ErrCodeNoSuchEntityException:
            fmt.Println(iam.ErrCodeNoSuchEntityException, aerr.Error())
        case iam.ErrCodeLimitExceededException:
            fmt.Println(iam.ErrCodeLimitExceededException, aerr.Error())
        case iam.ErrCodeServiceFailureException:
            fmt.Println(iam.ErrCodeServiceFailureException, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*IAM) DeleteAccountAliasRequest

func (c *IAM) DeleteAccountAliasRequest(input *DeleteAccountAliasInput) (req *request.Request, output *DeleteAccountAliasOutput)

DeleteAccountAliasRequest generates a "aws/request.Request" representing the client's request for the DeleteAccountAlias operation. The "output" return value will be populated with the request's response once the request complets successfuly.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteAccountAlias for more information on using the DeleteAccountAlias API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteAccountAliasRequest method.
req, resp := client.DeleteAccountAliasRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteAccountAlias

func (*IAM) DeleteAccountAliasWithContext

func (c *IAM) DeleteAccountAliasWithContext(ctx aws.Context, input *DeleteAccountAliasInput, opts ...request.Option) (*DeleteAccountAliasOutput, error)

DeleteAccountAliasWithContext is the same as DeleteAccountAlias with the addition of the ability to pass a context and additional request options.

See DeleteAccountAlias for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*IAM) DeleteAccountPasswordPolicy

func (c *IAM) DeleteAccountPasswordPolicy(input *DeleteAccountPasswordPolicyInput) (*DeleteAccountPasswordPolicyOutput, error)

DeleteAccountPasswordPolicy API operation for AWS Identity and Access Management.

Deletes the password policy for the AWS account. There are no parameters.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Identity and Access Management's API operation DeleteAccountPasswordPolicy for usage and error information.

Returned Error Codes:

* ErrCodeNoSuchEntityException "NoSuchEntity"
The request was rejected because it referenced an entity that does not exist.
The error message describes the entity.

* ErrCodeLimitExceededException "LimitExceeded"
The request was rejected because it attempted to create resources beyond
the current AWS account limits. The error message describes the limit exceeded.

* ErrCodeServiceFailureException "ServiceFailure"
The request processing has failed because of an unknown error, exception
or failure.

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteAccountPasswordPolicy

Example (Shared00)

To delete the current account password policy The following command removes the password policy from the current AWS account:

Code:

svc := iam.New(session.New())
input := &iam.DeleteAccountPasswordPolicyInput{}

result, err := svc.DeleteAccountPasswordPolicy(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case iam.ErrCodeNoSuchEntityException:
            fmt.Println(iam.ErrCodeNoSuchEntityException, aerr.Error())
        case iam.ErrCodeLimitExceededException:
            fmt.Println(iam.ErrCodeLimitExceededException, aerr.Error())
        case iam.ErrCodeServiceFailureException:
            fmt.Println(iam.ErrCodeServiceFailureException, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*IAM) DeleteAccountPasswordPolicyRequest

func (c *IAM) DeleteAccountPasswordPolicyRequest(input *DeleteAccountPasswordPolicyInput) (req *request.Request, output *DeleteAccountPasswordPolicyOutput)

DeleteAccountPasswordPolicyRequest generates a "aws/request.Request" representing the client's request for the DeleteAccountPasswordPolicy operation. The "output" return value will be populated with the request's response once the request complets successfuly.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteAccountPasswordPolicy for more information on using the DeleteAccountPasswordPolicy API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteAccountPasswordPolicyRequest method.
req, resp := client.DeleteAccountPasswordPolicyRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteAccountPasswordPolicy

func (*IAM) DeleteAccountPasswordPolicyWithContext

func (c *IAM) DeleteAccountPasswordPolicyWithContext(ctx aws.Context, input *DeleteAccountPasswordPolicyInput, opts ...request.Option) (*DeleteAccountPasswordPolicyOutput, error)

DeleteAccountPasswordPolicyWithContext is the same as DeleteAccountPasswordPolicy with the addition of the ability to pass a context and additional request options.

See DeleteAccountPasswordPolicy for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*IAM) DeleteGroup

func (c *IAM) DeleteGroup(input *DeleteGroupInput) (*DeleteGroupOutput, error)

DeleteGroup API operation for AWS Identity and Access Management.

Deletes the specified IAM group. The group must not contain any users or have any attached policies.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Identity and Access Management's API operation DeleteGroup for usage and error information.

Returned Error Codes:

* ErrCodeNoSuchEntityException "NoSuchEntity"
The request was rejected because it referenced an entity that does not exist.
The error message describes the entity.

* ErrCodeDeleteConflictException "DeleteConflict"
The request was rejected because it attempted to delete a resource that has
attached subordinate entities. The error message describes these entities.

* ErrCodeLimitExceededException "LimitExceeded"
The request was rejected because it attempted to create resources beyond
the current AWS account limits. The error message describes the limit exceeded.

* ErrCodeServiceFailureException "ServiceFailure"
The request processing has failed because of an unknown error, exception
or failure.

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteGroup

func (*IAM) DeleteGroupPolicy

func (c *IAM) DeleteGroupPolicy(input *DeleteGroupPolicyInput) (*DeleteGroupPolicyOutput, error)

DeleteGroupPolicy API operation for AWS Identity and Access Management.

Deletes the specified inline policy that is embedded in the specified IAM group.

A group can also have managed policies attached to it. To detach a managed policy from a group, use DetachGroupPolicy. For more information about policies, refer to Managed Policies and Inline Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) in the IAM User Guide.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Identity and Access Management's API operation DeleteGroupPolicy for usage and error information.

Returned Error Codes:

* ErrCodeNoSuchEntityException "NoSuchEntity"
The request was rejected because it referenced an entity that does not exist.
The error message describes the entity.

* ErrCodeLimitExceededException "LimitExceeded"
The request was rejected because it attempted to create resources beyond
the current AWS account limits. The error message describes the limit exceeded.

* ErrCodeServiceFailureException "ServiceFailure"
The request processing has failed because of an unknown error, exception
or failure.

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteGroupPolicy

Example (Shared00)

To delete a policy from an IAM group The following command deletes the policy named ExamplePolicy from the group named Admins:

Code:

svc := iam.New(session.New())
input := &iam.DeleteGroupPolicyInput{
    GroupName:  aws.String("Admins"),
    PolicyName: aws.String("ExamplePolicy"),
}

result, err := svc.DeleteGroupPolicy(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case iam.ErrCodeNoSuchEntityException:
            fmt.Println(iam.ErrCodeNoSuchEntityException, aerr.Error())
        case iam.ErrCodeLimitExceededException:
            fmt.Println(iam.ErrCodeLimitExceededException, aerr.Error())
        case iam.ErrCodeServiceFailureException:
            fmt.Println(iam.ErrCodeServiceFailureException, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*IAM) DeleteGroupPolicyRequest

func (c *IAM) DeleteGroupPolicyRequest(input *DeleteGroupPolicyInput) (req *request.Request, output *DeleteGroupPolicyOutput)

DeleteGroupPolicyRequest generates a "aws/request.Request" representing the client's request for the DeleteGroupPolicy operation. The "output" return value will be populated with the request's response once the request complets successfuly.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteGroupPolicy for more information on using the DeleteGroupPolicy API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteGroupPolicyRequest method.
req, resp := client.DeleteGroupPolicyRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteGroupPolicy

func (*IAM) DeleteGroupPolicyWithContext

func (c *IAM) DeleteGroupPolicyWithContext(ctx aws.Context, input *DeleteGroupPolicyInput, opts ...request.Option) (*DeleteGroupPolicyOutput, error)

DeleteGroupPolicyWithContext is the same as DeleteGroupPolicy with the addition of the ability to pass a context and additional request options.

See DeleteGroupPolicy for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*IAM) DeleteGroupRequest

func (c *IAM) DeleteGroupRequest(input *DeleteGroupInput) (req *request.Request, output *DeleteGroupOutput)

DeleteGroupRequest generates a "aws/request.Request" representing the client's request for the DeleteGroup operation. The "output" return value will be populated with the request's response once the request complets successfuly.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteGroup for more information on using the DeleteGroup API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteGroupRequest method.
req, resp := client.DeleteGroupRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteGroup

func (*IAM) DeleteGroupWithContext

func (c *IAM) DeleteGroupWithContext(ctx aws.Context, input *DeleteGroupInput, opts ...request.Option) (*DeleteGroupOutput, error)

DeleteGroupWithContext is the same as DeleteGroup with the addition of the ability to pass a context and additional request options.

See DeleteGroup for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*IAM) DeleteInstanceProfile

func (c *IAM) DeleteInstanceProfile(input *DeleteInstanceProfileInput) (*DeleteInstanceProfileOutput, error)

DeleteInstanceProfile API operation for AWS Identity and Access Management.

Deletes the specified instance profile. The instance profile must not have an associated role.

Make sure you do not have any Amazon EC2 instances running with the instance profile you are about to delete. Deleting a role or instance profile that is associated with a running instance will break any applications running on the instance.

For more information about instance profiles, go to About Instance Profiles (http://docs.aws.amazon.com/IAM/latest/UserGuide/AboutInstanceProfiles.html).

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Identity and Access Management's API operation DeleteInstanceProfile for usage and error information.

Returned Error Codes:

* ErrCodeNoSuchEntityException "NoSuchEntity"
The request was rejected because it referenced an entity that does not exist.
The error message describes the entity.

* ErrCodeDeleteConflictException "DeleteConflict"
The request was rejected because it attempted to delete a resource that has
attached subordinate entities. The error message describes these entities.

* ErrCodeLimitExceededException "LimitExceeded"
The request was rejected because it attempted to create resources beyond
the current AWS account limits. The error message describes the limit exceeded.

* ErrCodeServiceFailureException "ServiceFailure"
The request processing has failed because of an unknown error, exception
or failure.

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteInstanceProfile

Example (Shared00)

To delete an instance profile The following command deletes the instance profile named ExampleInstanceProfile

Code:

svc := iam.New(session.New())
input := &iam.DeleteInstanceProfileInput{
    InstanceProfileName: aws.String("ExampleInstanceProfile"),
}

result, err := svc.DeleteInstanceProfile(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case iam.ErrCodeNoSuchEntityException:
            fmt.Println(iam.ErrCodeNoSuchEntityException, aerr.Error())
        case iam.ErrCodeDeleteConflictException:
            fmt.Println(iam.ErrCodeDeleteConflictException, aerr.Error())
        case iam.ErrCodeLimitExceededException:
            fmt.Println(iam.ErrCodeLimitExceededException, aerr.Error())
        case iam.ErrCodeServiceFailureException:
            fmt.Println(iam.ErrCodeServiceFailureException, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*IAM) DeleteInstanceProfileRequest

func (c *IAM) DeleteInstanceProfileRequest(input *DeleteInstanceProfileInput) (req *request.Request, output *DeleteInstanceProfileOutput)

DeleteInstanceProfileRequest generates a "aws/request.Request" representing the client's request for the DeleteInstanceProfile operation. The "output" return value will be populated with the request's response once the request complets successfuly.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteInstanceProfile for more information on using the DeleteInstanceProfile API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteInstanceProfileRequest method.
req, resp := client.DeleteInstanceProfileRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteInstanceProfile

func (*IAM) DeleteInstanceProfileWithContext

func (c *IAM) DeleteInstanceProfileWithContext(ctx aws.Context, input *DeleteInstanceProfileInput, opts ...request.Option) (*DeleteInstanceProfileOutput, error)

DeleteInstanceProfileWithContext is the same as DeleteInstanceProfile with the addition of the ability to pass a context and additional request options.

See DeleteInstanceProfile for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*IAM) DeleteLoginProfile

func (c *IAM) DeleteLoginProfile(input *DeleteLoginProfileInput) (*DeleteLoginProfileOutput, error)

DeleteLoginProfile API operation for AWS Identity and Access Management.

Deletes the password for the specified IAM user, which terminates the user's ability to access AWS services through the AWS Management Console.

Deleting a user's password does not prevent a user from accessing AWS through the command line interface or the API. To prevent all user access you must also either make any access keys inactive or delete them. For more information about making keys inactive or deleting them, see UpdateAccessKey and DeleteAccessKey.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Identity and Access Management's API operation DeleteLoginProfile for usage and error information.

Returned Error Codes:

* ErrCodeEntityTemporarilyUnmodifiableException "EntityTemporarilyUnmodifiable"
The request was rejected because it referenced an entity that is temporarily
unmodifiable, such as a user name that was deleted and then recreated. The
error indicates that the request is likely to succeed if you try again after
waiting several minutes. The error message describes the entity.

* ErrCodeNoSuchEntityException "NoSuchEntity"
The request was rejected because it referenced an entity that does not exist.
The error message describes the entity.

* ErrCodeLimitExceededException "LimitExceeded"
The request was rejected because it attempted to create resources beyond
the current AWS account limits. The error message describes the limit exceeded.

* ErrCodeServiceFailureException "ServiceFailure"
The request processing has failed because of an unknown error, exception
or failure.

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteLoginProfile

Example (Shared00)

To delete a password for an IAM user The following command deletes the password for the IAM user named Bob.

Code:

svc := iam.New(session.New())
input := &iam.DeleteLoginProfileInput{
    UserName: aws.String("Bob"),
}

result, err := svc.DeleteLoginProfile(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case iam.ErrCodeEntityTemporarilyUnmodifiableException:
            fmt.Println(iam.ErrCodeEntityTemporarilyUnmodifiableException, aerr.Error())
        case iam.ErrCodeNoSuchEntityException:
            fmt.Println(iam.ErrCodeNoSuchEntityException, aerr.Error())
        case iam.ErrCodeLimitExceededException:
            fmt.Println(iam.ErrCodeLimitExceededException, aerr.Error())
        case iam.ErrCodeServiceFailureException:
            fmt.Println(iam.ErrCodeServiceFailureException, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*IAM) DeleteLoginProfileRequest

func (c *IAM) DeleteLoginProfileRequest(input *DeleteLoginProfileInput) (req *request.Request, output *DeleteLoginProfileOutput)

DeleteLoginProfileRequest generates a "aws/request.Request" representing the client's request for the DeleteLoginProfile operation. The "output" return value will be populated with the request's response once the request complets successfuly.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteLoginProfile for more information on using the DeleteLoginProfile API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteLoginProfileRequest method.
req, resp := client.DeleteLoginProfileRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteLoginProfile

func (*IAM) DeleteLoginProfileWithContext

func (c *IAM) DeleteLoginProfileWithContext(ctx aws.Context, input *DeleteLoginProfileInput, opts ...request.Option) (*DeleteLoginProfileOutput, error)

DeleteLoginProfileWithContext is the same as DeleteLoginProfile with the addition of the ability to pass a context and additional request options.

See DeleteLoginProfile for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*IAM) DeleteOpenIDConnectProvider

func (c *IAM) DeleteOpenIDConnectProvider(input *DeleteOpenIDConnectProviderInput) (*DeleteOpenIDConnectProviderOutput, error)

DeleteOpenIDConnectProvider API operation for AWS Identity and Access Management.

Deletes an OpenID Connect identity provider (IdP) resource object in IAM.

Deleting an IAM OIDC provider resource does not update any roles that reference the provider as a principal in their trust policies. Any attempt to assume a role that references a deleted provider fails.

This action is idempotent; it does not fail or return an error if you call the action for a provider that does not exist.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Identity and Access Management's API operation DeleteOpenIDConnectProvider for usage and error information.

Returned Error Codes:

* ErrCodeInvalidInputException "InvalidInput"
The request was rejected because an invalid or out-of-range value was supplied
for an input parameter.

* ErrCodeNoSuchEntityException "NoSuchEntity"
The request was rejected because it referenced an entity that does not exist.
The error message describes the entity.

* ErrCodeServiceFailureException "ServiceFailure"
The request processing has failed because of an unknown error, exception
or failure.

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteOpenIDConnectProvider

func (*IAM) DeleteOpenIDConnectProviderRequest

func (c *IAM) DeleteOpenIDConnectProviderRequest(input *DeleteOpenIDConnectProviderInput) (req *request.Request, output *DeleteOpenIDConnectProviderOutput)

DeleteOpenIDConnectProviderRequest generates a "aws/request.Request" representing the client's request for the DeleteOpenIDConnectProvider operation. The "output" return value will be populated with the request's response once the request complets successfuly.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteOpenIDConnectProvider for more information on using the DeleteOpenIDConnectProvider API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteOpenIDConnectProviderRequest method.
req, resp := client.DeleteOpenIDConnectProviderRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteOpenIDConnectProvider

func (*IAM) DeleteOpenIDConnectProviderWithContext

func (c *IAM) DeleteOpenIDConnectProviderWithContext(ctx aws.Context, input *DeleteOpenIDConnectProviderInput, opts ...request.Option) (*DeleteOpenIDConnectProviderOutput, error)

DeleteOpenIDConnectProviderWithContext is the same as DeleteOpenIDConnectProvider with the addition of the ability to pass a context and additional request options.

See DeleteOpenIDConnectProvider for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*IAM) DeletePolicy

func (c *IAM) DeletePolicy(input *DeletePolicyInput) (*DeletePolicyOutput, error)

DeletePolicy API operation for AWS Identity and Access Management.

Deletes the specified managed policy.

Before you can delete a managed policy, you must first detach the policy from all users, groups, and roles that it is attached to, and you must delete all of the policy's versions. The following steps describe the process for deleting a managed policy:

* Detach the policy from all users, groups, and roles that the policy
is attached to, using the DetachUserPolicy, DetachGroupPolicy, or DetachRolePolicy
APIs. To list all the users, groups, and roles that a policy is attached
to, use ListEntitiesForPolicy.

* Delete all versions of the policy using DeletePolicyVersion. To list
the policy's versions, use ListPolicyVersions. You cannot use DeletePolicyVersion
to delete the version that is marked as the default version. You delete
the policy's default version in the next step of the process.

* Delete the policy (this automatically deletes the policy's default version)
using this API.

For information about managed policies, see Managed Policies and Inline Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) in the IAM User Guide.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Identity and Access Management's API operation DeletePolicy for usage and error information.

Returned Error Codes:

* ErrCodeNoSuchEntityException "NoSuchEntity"
The request was rejected because it referenced an entity that does not exist.
The error message describes the entity.

* ErrCodeLimitExceededException "LimitExceeded"
The request was rejected because it attempted to create resources beyond
the current AWS account limits. The error message describes the limit exceeded.

* ErrCodeInvalidInputException "InvalidInput"
The request was rejected because an invalid or out-of-range value was supplied
for an input parameter.

* ErrCodeDeleteConflictException "DeleteConflict"
The request was rejected because it attempted to delete a resource that has
attached subordinate entities. The error message describes these entities.

* ErrCodeServiceFailureException "ServiceFailure"
The request processing has failed because of an unknown error, exception
or failure.

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeletePolicy

func (*IAM) DeletePolicyRequest

func (c *IAM) DeletePolicyRequest(input *DeletePolicyInput) (req *request.Request, output *DeletePolicyOutput)

DeletePolicyRequest generates a "aws/request.Request" representing the client's request for the DeletePolicy operation. The "output" return value will be populated with the request's response once the request complets successfuly.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeletePolicy for more information on using the DeletePolicy API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeletePolicyRequest method.
req, resp := client.DeletePolicyRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeletePolicy

func (*IAM) DeletePolicyVersion

func (c *IAM) DeletePolicyVersion(input *DeletePolicyVersionInput) (*DeletePolicyVersionOutput, error)

DeletePolicyVersion API operation for AWS Identity and Access Management.

Deletes the specified version from the specified managed policy.

You cannot delete the default version from a policy using this API. To delete the default version from a policy, use DeletePolicy. To find out which version of a policy is marked as the default version, use ListPolicyVersions.

For information about versions for managed policies, see Versioning for Managed Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-versions.html) in the IAM User Guide.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Identity and Access Management's API operation DeletePolicyVersion for usage and error information.

Returned Error Codes:

* ErrCodeNoSuchEntityException "NoSuchEntity"
The request was rejected because it referenced an entity that does not exist.
The error message describes the entity.

* ErrCodeLimitExceededException "LimitExceeded"
The request was rejected because it attempted to create resources beyond
the current AWS account limits. The error message describes the limit exceeded.

* ErrCodeInvalidInputException "InvalidInput"
The request was rejected because an invalid or out-of-range value was supplied
for an input parameter.

* ErrCodeDeleteConflictException "DeleteConflict"
The request was rejected because it attempted to delete a resource that has
attached subordinate entities. The error message describes these entities.

* ErrCodeServiceFailureException "ServiceFailure"
The request processing has failed because of an unknown error, exception
or failure.

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeletePolicyVersion

func (*IAM) DeletePolicyVersionRequest

func (c *IAM) DeletePolicyVersionRequest(input *DeletePolicyVersionInput) (req *request.Request, output *DeletePolicyVersionOutput)

DeletePolicyVersionRequest generates a "aws/request.Request" representing the client's request for the DeletePolicyVersion operation. The "output" return value will be populated with the request's response once the request complets successfuly.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeletePolicyVersion for more information on using the DeletePolicyVersion API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeletePolicyVersionRequest method.
req, resp := client.DeletePolicyVersionRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeletePolicyVersion

func (*IAM) DeletePolicyVersionWithContext

func (c *IAM) DeletePolicyVersionWithContext(ctx aws.Context, input *DeletePolicyVersionInput, opts ...request.Option) (*DeletePolicyVersionOutput, error)

DeletePolicyVersionWithContext is the same as DeletePolicyVersion with the addition of the ability to pass a context and additional request options.

See DeletePolicyVersion for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*IAM) DeletePolicyWithContext

func (c *IAM) DeletePolicyWithContext(ctx aws.Context, input *DeletePolicyInput, opts ...request.Option) (*DeletePolicyOutput, error)

DeletePolicyWithContext is the same as DeletePolicy with the addition of the ability to pass a context and additional request options.

See DeletePolicy for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*IAM) DeleteRole

func (c *IAM) DeleteRole(input *DeleteRoleInput) (*DeleteRoleOutput, error)

DeleteRole API operation for AWS Identity and Access Management.

Deletes the specified role. The role must not have any policies attached. For more information about roles, go to Working with Roles (http://docs.aws.amazon.com/IAM/latest/UserGuide/WorkingWithRoles.html).

Make sure you do not have any Amazon EC2 instances running with the role you are about to delete. Deleting a role or instance profile that is associated with a running instance will break any applications running on the instance.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Identity and Access Management's API operation DeleteRole for usage and error information.

Returned Error Codes:

* ErrCodeNoSuchEntityException "NoSuchEntity"
The request was rejected because it referenced an entity that does not exist.
The error message describes the entity.

* ErrCodeDeleteConflictException "DeleteConflict"
The request was rejected because it attempted to delete a resource that has
attached subordinate entities. The error message describes these entities.

* ErrCodeLimitExceededException "LimitExceeded"
The request was rejected because it attempted to create resources beyond
the current AWS account limits. The error message describes the limit exceeded.

* ErrCodeUnmodifiableEntityException "UnmodifiableEntity"
The request was rejected because only the service that depends on the service-linked
role can modify or delete the role on your behalf. The error message includes
the name of the service that depends on this service-linked role. You must
request the change through that service.

* ErrCodeServiceFailureException "ServiceFailure"
The request processing has failed because of an unknown error, exception
or failure.

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteRole

Example (Shared00)

To delete an IAM role The following command removes the role named Test-Role.

Code:

svc := iam.New(session.New())
input := &iam.DeleteRoleInput{
    RoleName: aws.String("Test-Role"),
}

result, err := svc.DeleteRole(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case iam.ErrCodeNoSuchEntityException:
            fmt.Println(iam.ErrCodeNoSuchEntityException, aerr.Error())
        case iam.ErrCodeDeleteConflictException:
            fmt.Println(iam.ErrCodeDeleteConflictException, aerr.Error())
        case iam.ErrCodeLimitExceededException:
            fmt.Println(iam.ErrCodeLimitExceededException, aerr.Error())
        case iam.ErrCodeUnmodifiableEntityException:
            fmt.Println(iam.ErrCodeUnmodifiableEntityException, aerr.Error())
        case iam.ErrCodeServiceFailureException:
            fmt.Println(iam.ErrCodeServiceFailureException, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*IAM) DeleteRolePolicy

func (c *IAM) DeleteRolePolicy(input *DeleteRolePolicyInput) (*DeleteRolePolicyOutput, error)

DeleteRolePolicy API operation for AWS Identity and Access Management.

Deletes the specified inline policy that is embedded in the specified IAM role.

A role can also have managed policies attached to it. To detach a managed policy from a role, use DetachRolePolicy. For more information about policies, refer to Managed Policies and Inline Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) in the IAM User Guide.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Identity and Access Management's API operation DeleteRolePolicy for usage and error information.

Returned Error Codes:

* ErrCodeNoSuchEntityException "NoSuchEntity"
The request was rejected because it referenced an entity that does not exist.
The error message describes the entity.

* ErrCodeLimitExceededException "LimitExceeded"
The request was rejected because it attempted to create resources beyond
the current AWS account limits. The error message describes the limit exceeded.

* ErrCodeUnmodifiableEntityException "UnmodifiableEntity"
The request was rejected because only the service that depends on the service-linked
role can modify or delete the role on your behalf. The error message includes
the name of the service that depends on this service-linked role. You must
request the change through that service.

* ErrCodeServiceFailureException "ServiceFailure"
The request processing has failed because of an unknown error, exception
or failure.

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteRolePolicy

Example (Shared00)

To remove a policy from an IAM role The following command removes the policy named ExamplePolicy from the role named Test-Role.

Code:

svc := iam.New(session.New())
input := &iam.DeleteRolePolicyInput{
    PolicyName: aws.String("ExamplePolicy"),
    RoleName:   aws.String("Test-Role"),
}

result, err := svc.DeleteRolePolicy(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case iam.ErrCodeNoSuchEntityException:
            fmt.Println(iam.ErrCodeNoSuchEntityException, aerr.Error())
        case iam.ErrCodeLimitExceededException:
            fmt.Println(iam.ErrCodeLimitExceededException, aerr.Error())
        case iam.ErrCodeUnmodifiableEntityException:
            fmt.Println(iam.ErrCodeUnmodifiableEntityException, aerr.Error())
        case iam.ErrCodeServiceFailureException:
            fmt.Println(iam.ErrCodeServiceFailureException, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*IAM) DeleteRolePolicyRequest

func (c *IAM) DeleteRolePolicyRequest(input *DeleteRolePolicyInput) (req *request.Request, output *DeleteRolePolicyOutput)

DeleteRolePolicyRequest generates a "aws/request.Request" representing the client's request for the DeleteRolePolicy operation. The "output" return value will be populated with the request's response once the request complets successfuly.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteRolePolicy for more information on using the DeleteRolePolicy API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteRolePolicyRequest method.
req, resp := client.DeleteRolePolicyRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteRolePolicy

func (*IAM) DeleteRolePolicyWithContext

func (c *IAM) DeleteRolePolicyWithContext(ctx aws.Context, input *DeleteRolePolicyInput, opts ...request.Option) (*DeleteRolePolicyOutput, error)

DeleteRolePolicyWithContext is the same as DeleteRolePolicy with the addition of the ability to pass a context and additional request options.

See DeleteRolePolicy for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*IAM) DeleteRoleRequest

func (c *IAM) DeleteRoleRequest(input *DeleteRoleInput) (req *request.Request, output *DeleteRoleOutput)

DeleteRoleRequest generates a "aws/request.Request" representing the client's request for the DeleteRole operation. The "output" return value will be populated with the request's response once the request complets successfuly.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteRole for more information on using the DeleteRole API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteRoleRequest method.
req, resp := client.DeleteRoleRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteRole

func (*IAM) DeleteRoleWithContext

func (c *IAM) DeleteRoleWithContext(ctx aws.Context, input *DeleteRoleInput, opts ...request.Option) (*DeleteRoleOutput, error)

DeleteRoleWithContext is the same as DeleteRole with the addition of the ability to pass a context and additional request options.

See DeleteRole for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*IAM) DeleteSAMLProvider

func (c *IAM) DeleteSAMLProvider(input *DeleteSAMLProviderInput) (*DeleteSAMLProviderOutput, error)

DeleteSAMLProvider API operation for AWS Identity and Access Management.

Deletes a SAML provider resource in IAM.

Deleting the provider resource from IAM does not update any roles that reference the SAML provider resource's ARN as a principal in their trust policies. Any attempt to assume a role that references a non-existent provider resource ARN fails.

This operation requires Signature Version 4 (http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html).

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Identity and Access Management's API operation DeleteSAMLProvider for usage and error information.

Returned Error Codes:

* ErrCodeInvalidInputException "InvalidInput"
The request was rejected because an invalid or out-of-range value was supplied
for an input parameter.

* ErrCodeLimitExceededException "LimitExceeded"
The request was rejected because it attempted to create resources beyond
the current AWS account limits. The error message describes the limit exceeded.

* ErrCodeNoSuchEntityException "NoSuchEntity"
The request was rejected because it referenced an entity that does not exist.
The error message describes the entity.

* ErrCodeServiceFailureException "ServiceFailure"
The request processing has failed because of an unknown error, exception
or failure.

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteSAMLProvider

func (*IAM) DeleteSAMLProviderRequest

func (c *IAM) DeleteSAMLProviderRequest(input *DeleteSAMLProviderInput) (req *request.Request, output *DeleteSAMLProviderOutput)

DeleteSAMLProviderRequest generates a "aws/request.Request" representing the client's request for the DeleteSAMLProvider operation. The "output" return value will be populated with the request's response once the request complets successfuly.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteSAMLProvider for more information on using the DeleteSAMLProvider API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteSAMLProviderRequest method.
req, resp := client.DeleteSAMLProviderRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteSAMLProvider

func (*IAM) DeleteSAMLProviderWithContext

func (c *IAM) DeleteSAMLProviderWithContext(ctx aws.Context, input *DeleteSAMLProviderInput, opts ...request.Option) (*DeleteSAMLProviderOutput, error)

DeleteSAMLProviderWithContext is the same as DeleteSAMLProvider with the addition of the ability to pass a context and additional request options.

See DeleteSAMLProvider for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*IAM) DeleteSSHPublicKey

func (c *IAM) DeleteSSHPublicKey(input *DeleteSSHPublicKeyInput) (*DeleteSSHPublicKeyOutput, error)

DeleteSSHPublicKey API operation for AWS Identity and Access Management.

Deletes the specified SSH public key.

The SSH public key deleted by this action is used only for authenticating the associated IAM user to an AWS CodeCommit repository. For more information about using SSH keys to authenticate to an AWS CodeCommit repository, see Set up AWS CodeCommit for SSH Connections (http://docs.aws.amazon.com/codecommit/latest/userguide/setting-up-credentials-ssh.html) in the AWS CodeCommit User Guide.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Identity and Access Management's API operation DeleteSSHPublicKey for usage and error information.

Returned Error Codes:

* ErrCodeNoSuchEntityException "NoSuchEntity"
The request was rejected because it referenced an entity that does not exist.
The error message describes the entity.

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteSSHPublicKey

func (*IAM) DeleteSSHPublicKeyRequest

func (c *IAM) DeleteSSHPublicKeyRequest(input *DeleteSSHPublicKeyInput) (req *request.Request, output *DeleteSSHPublicKeyOutput)

DeleteSSHPublicKeyRequest generates a "aws/request.Request" representing the client's request for the DeleteSSHPublicKey operation. The "output" return value will be populated with the request's response once the request complets successfuly.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteSSHPublicKey for more information on using the DeleteSSHPublicKey API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteSSHPublicKeyRequest method.
req, resp := client.DeleteSSHPublicKeyRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteSSHPublicKey

func (*IAM) DeleteSSHPublicKeyWithContext

func (c *IAM) DeleteSSHPublicKeyWithContext(ctx aws.Context, input *DeleteSSHPublicKeyInput, opts ...request.Option) (*DeleteSSHPublicKeyOutput, error)

DeleteSSHPublicKeyWithContext is the same as DeleteSSHPublicKey with the addition of the ability to pass a context and additional request options.

See DeleteSSHPublicKey for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*IAM) DeleteServerCertificate

func (c *IAM) DeleteServerCertificate(input *DeleteServerCertificateInput) (*DeleteServerCertificateOutput, error)

DeleteServerCertificate API operation for AWS Identity and Access Management.

Deletes the specified server certificate.

For more information about working with server certificates, including a list of AWS services that can use the server certificates that you manage with IAM, go to Working with Server Certificates (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_server-certs.html) in the IAM User Guide.

If you are using a server certificate with Elastic Load Balancing, deleting the certificate could have implications for your application. If Elastic Load Balancing doesn't detect the deletion of bound certificates, it may continue to use the certificates. This could cause Elastic Load Balancing to stop accepting traffic. We recommend that you remove the reference to the certificate from Elastic Load Balancing before using this command to delete the certificate. For more information, go to DeleteLoadBalancerListeners (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/APIReference/API_DeleteLoadBalancerListeners.html) in the Elastic Load Balancing API Reference.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Identity and Access Management's API operation DeleteServerCertificate for usage and error information.

Returned Error Codes:

* ErrCodeNoSuchEntityException "NoSuchEntity"
The request was rejected because it referenced an entity that does not exist.
The error message describes the entity.

* ErrCodeDeleteConflictException "DeleteConflict"
The request was rejected because it attempted to delete a resource that has
attached subordinate entities. The error message describes these entities.

* ErrCodeLimitExceededException "LimitExceeded"
The request was rejected because it attempted to create resources beyond
the current AWS account limits. The error message describes the limit exceeded.

* ErrCodeServiceFailureException "ServiceFailure"
The request processing has failed because of an unknown error, exception
or failure.

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteServerCertificate

func (*IAM) DeleteServerCertificateRequest

func (c *IAM) DeleteServerCertificateRequest(input *DeleteServerCertificateInput) (req *request.Request, output *DeleteServerCertificateOutput)

DeleteServerCertificateRequest generates a "aws/request.Request" representing the client's request for the DeleteServerCertificate operation. The "output" return value will be populated with the request's response once the request complets successfuly.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteServerCertificate for more information on using the DeleteServerCertificate API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteServerCertificateRequest method.
req, resp := client.DeleteServerCertificateRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteServerCertificate

func (*IAM) DeleteServerCertificateWithContext

func (c *IAM) DeleteServerCertificateWithContext(ctx aws.Context, input *DeleteServerCertificateInput, opts ...request.Option) (*DeleteServerCertificateOutput, error)

DeleteServerCertificateWithContext is the same as DeleteServerCertificate with the addition of the ability to pass a context and additional request options.

See DeleteServerCertificate for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*IAM) DeleteServiceLinkedRole

func (c *IAM) DeleteServiceLinkedRole(input *DeleteServiceLinkedRoleInput) (*DeleteServiceLinkedRoleOutput, error)

DeleteServiceLinkedRole API operation for AWS Identity and Access Management.

Submits a service-linked role deletion request and returns a DeletionTaskId, which you can use to check the status of the deletion. Before you call this operation, confirm that the role has no active sessions and that any resources used by the role in the linked service are deleted. If you call this operation more than once for the same service-linked role and an earlier deletion task is not complete, then the DeletionTaskId of the earlier request is returned.

If you submit a deletion request for a service-linked role whose linked service is still accessing a resource, then the deletion task fails. If it fails, the GetServiceLinkedRoleDeletionStatus API operation returns the reason for the failure, including the resources that must be deleted. To delete the service-linked role, you must first remove those resources from the linked service and then submit the deletion request again. Resources are specific to the service that is linked to the role. For more information about removing resources from a service, see the AWS documentation (http://docs.aws.amazon.com/) for your service.

For more information about service-linked roles, see Roles Terms and Concepts: AWS Service-Linked Role (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts.html#iam-term-service-linked-role) in the IAM User Guide.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Identity and Access Management's API operation DeleteServiceLinkedRole for usage and error information.

Returned Error Codes:

* ErrCodeNoSuchEntityException "NoSuchEntity"
The request was rejected because it referenced an entity that does not exist.
The error message describes the entity.

* ErrCodeLimitExceededException "LimitExceeded"
The request was rejected because it attempted to create resources beyond
the current AWS account limits. The error message describes the limit exceeded.

* ErrCodeServiceFailureException "ServiceFailure"
The request processing has failed because of an unknown error, exception
or failure.

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteServiceLinkedRole

func (*IAM) DeleteServiceLinkedRoleRequest

func (c *IAM) DeleteServiceLinkedRoleRequest(input *DeleteServiceLinkedRoleInput) (req *request.Request, output *DeleteServiceLinkedRoleOutput)

DeleteServiceLinkedRoleRequest generates a "aws/request.Request" representing the client's request for the DeleteServiceLinkedRole operation. The "output" return value will be populated with the request's response once the request complets successfuly.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteServiceLinkedRole for more information on using the DeleteServiceLinkedRole API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteServiceLinkedRoleRequest method.
req, resp := client.DeleteServiceLinkedRoleRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteServiceLinkedRole

func (*IAM) DeleteServiceLinkedRoleWithContext

func (c *IAM) DeleteServiceLinkedRoleWithContext(ctx aws.Context, input *DeleteServiceLinkedRoleInput, opts ...request.Option) (*DeleteServiceLinkedRoleOutput, error)

DeleteServiceLinkedRoleWithContext is the same as DeleteServiceLinkedRole with the addition of the ability to pass a context and additional request options.

See DeleteServiceLinkedRole for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*IAM) DeleteServiceSpecificCredential

func (c *IAM) DeleteServiceSpecificCredential(input *DeleteServiceSpecificCredentialInput) (*DeleteServiceSpecificCredentialOutput, error)

DeleteServiceSpecificCredential API operation for AWS Identity and Access Management.

Deletes the specified service-specific credential.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Identity and Access Management's API operation DeleteServiceSpecificCredential for usage and error information.

Returned Error Codes:

* ErrCodeNoSuchEntityException "NoSuchEntity"
The request was rejected because it referenced an entity that does not exist.
The error message describes the entity.

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteServiceSpecificCredential

func (*IAM) DeleteServiceSpecificCredentialRequest

func (c *IAM) DeleteServiceSpecificCredentialRequest(input *DeleteServiceSpecificCredentialInput) (req *request.Request, output *DeleteServiceSpecificCredentialOutput)

DeleteServiceSpecificCredentialRequest generates a "aws/request.Request" representing the client's request for the DeleteServiceSpecificCredential operation. The "output" return value will be populated with the request's response once the request complets successfuly.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteServiceSpecificCredential for more information on using the DeleteServiceSpecificCredential API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteServiceSpecificCredentialRequest method.
req, resp := client.DeleteServiceSpecificCredentialRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteServiceSpecificCredential

func (*IAM) DeleteServiceSpecificCredentialWithContext

func (c *IAM) DeleteServiceSpecificCredentialWithContext(ctx aws.Context, input *DeleteServiceSpecificCredentialInput, opts ...request.Option) (*DeleteServiceSpecificCredentialOutput, error)

DeleteServiceSpecificCredentialWithContext is the same as DeleteServiceSpecificCredential with the addition of the ability to pass a context and additional request options.

See DeleteServiceSpecificCredential for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*IAM) DeleteSigningCertificate

func (c *IAM) DeleteSigningCertificate(input *DeleteSigningCertificateInput) (*DeleteSigningCertificateOutput, error)

DeleteSigningCertificate API operation for AWS Identity and Access Management.

Deletes a signing certificate associated with the specified IAM user.

If you do not specify a user name, IAM determines the user name implicitly based on the AWS access key ID signing the request. Because this action works for access keys under the AWS account, you can use this action to manage root credentials even if the AWS account has no associated IAM users.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Identity and Access Management's API operation DeleteSigningCertificate for usage and error information.

Returned Error Codes:

* ErrCodeNoSuchEntityException "NoSuchEntity"
The request was rejected because it referenced an entity that does not exist.
The error message describes the entity.

* ErrCodeLimitExceededException "LimitExceeded"
The request was rejected because it attempted to create resources beyond
the current AWS account limits. The error message describes the limit exceeded.

* ErrCodeServiceFailureException "ServiceFailure"
The request processing has failed because of an unknown error, exception
or failure.

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteSigningCertificate

Example (Shared00)

To delete a signing certificate for an IAM user The following command deletes the specified signing certificate for the IAM user named Anika.

Code:

svc := iam.New(session.New())
input := &iam.DeleteSigningCertificateInput{
    CertificateId: aws.String("TA7SMP42TDN5Z26OBPJE7EXAMPLE"),
    UserName:      aws.String("Anika"),
}

result, err := svc.DeleteSigningCertificate(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case iam.ErrCodeNoSuchEntityException:
            fmt.Println(iam.ErrCodeNoSuchEntityException, aerr.Error())
        case iam.ErrCodeLimitExceededException:
            fmt.Println(iam.ErrCodeLimitExceededException, aerr.Error())
        case iam.ErrCodeServiceFailureException:
            fmt.Println(iam.ErrCodeServiceFailureException, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*IAM) DeleteSigningCertificateRequest

func (c *IAM) DeleteSigningCertificateRequest(input *DeleteSigningCertificateInput) (req *request.Request, output *DeleteSigningCertificateOutput)

DeleteSigningCertificateRequest generates a "aws/request.Request" representing the client's request for the DeleteSigningCertificate operation. The "output" return value will be populated with the request's response once the request complets successfuly.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteSigningCertificate for more information on using the DeleteSigningCertificate API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteSigningCertificateRequest method.
req, resp := client.DeleteSigningCertificateRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteSigningCertificate

func (*IAM) DeleteSigningCertificateWithContext

func (c *IAM) DeleteSigningCertificateWithContext(ctx aws.Context, input *DeleteSigningCertificateInput, opts ...request.Option) (*DeleteSigningCertificateOutput, error)

DeleteSigningCertificateWithContext is the same as DeleteSigningCertificate with the addition of the ability to pass a context and additional request options.

See DeleteSigningCertificate for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*IAM) DeleteUser

func (c *IAM) DeleteUser(input *DeleteUserInput) (*DeleteUserOutput, error)

DeleteUser API operation for AWS Identity and Access Management.

Deletes the specified IAM user. The user must not belong to any groups or have any access keys, signing certificates, or attached policies.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Identity and Access Management's API operation DeleteUser for usage and error information.

Returned Error Codes:

* ErrCodeLimitExceededException "LimitExceeded"
The request was rejected because it attempted to create resources beyond
the current AWS account limits. The error message describes the limit exceeded.

* ErrCodeNoSuchEntityException "NoSuchEntity"
The request was rejected because it referenced an entity that does not exist.
The error message describes the entity.

* ErrCodeDeleteConflictException "DeleteConflict"
The request was rejected because it attempted to delete a resource that has
attached subordinate entities. The error message describes these entities.

* ErrCodeServiceFailureException "ServiceFailure"
The request processing has failed because of an unknown error, exception
or failure.

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteUser

Example (Shared00)

To delete an IAM user The following command removes the IAM user named Bob from the current account.

Code:

svc := iam.New(session.New())
input := &iam.DeleteUserInput{
    UserName: aws.String("Bob"),
}

result, err := svc.DeleteUser(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case iam.ErrCodeLimitExceededException:
            fmt.Println(iam.ErrCodeLimitExceededException, aerr.Error())
        case iam.ErrCodeNoSuchEntityException:
            fmt.Println(iam.ErrCodeNoSuchEntityException, aerr.Error())
        case iam.ErrCodeDeleteConflictException:
            fmt.Println(iam.ErrCodeDeleteConflictException, aerr.Error())
        case iam.ErrCodeServiceFailureException:
            fmt.Println(iam.ErrCodeServiceFailureException, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*IAM) DeleteUserPolicy

func (c *IAM) DeleteUserPolicy(input *DeleteUserPolicyInput) (*DeleteUserPolicyOutput, error)

DeleteUserPolicy API operation for AWS Identity and Access Management.

Deletes the specified inline policy that is embedded in the specified IAM user.

A user can also have managed policies attached to it. To detach a managed policy from a user, use DetachUserPolicy. For more information about policies, refer to Managed Policies and Inline Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) in the IAM User Guide.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Identity and Access Management's API operation DeleteUserPolicy for usage and error information.

Returned Error Codes:

* ErrCodeNoSuchEntityException "NoSuchEntity"
The request was rejected because it referenced an entity that does not exist.
The error message describes the entity.

* ErrCodeLimitExceededException "LimitExceeded"
The request was rejected because it attempted to create resources beyond
the current AWS account limits. The error message describes the limit exceeded.

* ErrCodeServiceFailureException "ServiceFailure"
The request processing has failed because of an unknown error, exception
or failure.

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteUserPolicy

Example (Shared00)

To remove a policy from an IAM user The following delete-user-policy command removes the specified policy from the IAM user named Juan:

Code:

svc := iam.New(session.New())
input := &iam.DeleteUserPolicyInput{
    PolicyName: aws.String("ExamplePolicy"),
    UserName:   aws.String("Juan"),
}

result, err := svc.DeleteUserPolicy(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case iam.ErrCodeNoSuchEntityException:
            fmt.Println(iam.ErrCodeNoSuchEntityException, aerr.Error())
        case iam.ErrCodeLimitExceededException:
            fmt.Println(iam.ErrCodeLimitExceededException, aerr.Error())
        case iam.ErrCodeServiceFailureException:
            fmt.Println(iam.ErrCodeServiceFailureException, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*IAM) DeleteUserPolicyRequest

func (c *IAM) DeleteUserPolicyRequest(input *DeleteUserPolicyInput) (req *request.Request, output *DeleteUserPolicyOutput)

DeleteUserPolicyRequest generates a "aws/request.Request" representing the client's request for the DeleteUserPolicy operation. The "output" return value will be populated with the request's response once the request complets successfuly.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteUserPolicy for more information on using the DeleteUserPolicy API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteUserPolicyRequest method.
req, resp := client.DeleteUserPolicyRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteUserPolicy

func (*IAM) DeleteUserPolicyWithContext

func (c *IAM) DeleteUserPolicyWithContext(ctx aws.Context, input *DeleteUserPolicyInput, opts ...request.Option) (*DeleteUserPolicyOutput, error)

DeleteUserPolicyWithContext is the same as DeleteUserPolicy with the addition of the ability to pass a context and additional request options.

See DeleteUserPolicy for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*IAM) DeleteUserRequest

func (c *IAM) DeleteUserRequest(input *DeleteUserInput) (req *request.Request, output *DeleteUserOutput)

DeleteUserRequest generates a "aws/request.Request" representing the client's request for the DeleteUser operation. The "output" return value will be populated with the request's response once the request complets successfuly.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteUser for more information on using the DeleteUser API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteUserRequest method.
req, resp := client.DeleteUserRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteUser

func (*IAM) DeleteUserWithContext

func (c *IAM) DeleteUserWithContext(ctx aws.Context, input *DeleteUserInput, opts ...request.Option) (*DeleteUserOutput, error)

DeleteUserWithContext is the same as DeleteUser with the addition of the ability to pass a context and additional request options.

See DeleteUser for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*IAM) DeleteVirtualMFADevice

func (c *IAM) DeleteVirtualMFADevice(input *DeleteVirtualMFADeviceInput) (*DeleteVirtualMFADeviceOutput, error)

DeleteVirtualMFADevice API operation for AWS Identity and Access Management.

Deletes a virtual MFA device.

You must deactivate a user's virtual MFA device before you can delete it. For information about deactivating MFA devices, see DeactivateMFADevice.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Identity and Access Management's API operation DeleteVirtualMFADevice for usage and error information.

Returned Error Codes:

* ErrCodeNoSuchEntityException "NoSuchEntity"
The request was rejected because it referenced an entity that does not exist.
The error message describes the entity.

* ErrCodeDeleteConflictException "DeleteConflict"
The request was rejected because it attempted to delete a resource that has
attached subordinate entities. The error message describes these entities.

* ErrCodeLimitExceededException "LimitExceeded"
The request was rejected because it attempted to create resources beyond
the current AWS account limits. The error message describes the limit exceeded.

* ErrCodeServiceFailureException "ServiceFailure"
The request processing has failed because of an unknown error, exception
or failure.

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteVirtualMFADevice

Example (Shared00)

To remove a virtual MFA device The following delete-virtual-mfa-device command removes the specified MFA device from the current AWS account.

Code:

svc := iam.New(session.New())
input := &iam.DeleteVirtualMFADeviceInput{
    SerialNumber: aws.String("arn:aws:iam::123456789012:mfa/ExampleName"),
}

result, err := svc.DeleteVirtualMFADevice(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case iam.ErrCodeNoSuchEntityException:
            fmt.Println(iam.ErrCodeNoSuchEntityException, aerr.Error())
        case iam.ErrCodeDeleteConflictException:
            fmt.Println(iam.ErrCodeDeleteConflictException, aerr.Error())
        case iam.ErrCodeLimitExceededException:
            fmt.Println(iam.ErrCodeLimitExceededException, aerr.Error())
        case iam.ErrCodeServiceFailureException:
            fmt.Println(iam.ErrCodeServiceFailureException, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*IAM) DeleteVirtualMFADeviceRequest

func (c *IAM) DeleteVirtualMFADeviceRequest(input *DeleteVirtualMFADeviceInput) (req *request.Request, output *DeleteVirtualMFADeviceOutput)

DeleteVirtualMFADeviceRequest generates a "aws/request.Request" representing the client's request for the DeleteVirtualMFADevice operation. The "output" return value will be populated with the request's response once the request complets successfuly.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteVirtualMFADevice for more information on using the DeleteVirtualMFADevice API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteVirtualMFADeviceRequest method.
req, resp := client.DeleteVirtualMFADeviceRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteVirtualMFADevice

func (*IAM) DeleteVirtualMFADeviceWithContext

func (c *IAM) DeleteVirtualMFADeviceWithContext(ctx aws.Context, input *DeleteVirtualMFADeviceInput, opts ...request.Option) (*DeleteVirtualMFADeviceOutput, error)

DeleteVirtualMFADeviceWithContext is the same as DeleteVirtualMFADevice with the addition of the ability to pass a context and additional request options.

See DeleteVirtualMFADevice for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*IAM) DetachGroupPolicy

func (c *IAM) DetachGroupPolicy(input *DetachGroupPolicyInput) (*DetachGroupPolicyOutput, error)

DetachGroupPolicy API operation for AWS Identity and Access Management.

Removes the specified managed policy from the specified IAM group.

A group can also have inline policies embedded with it. To delete an inline policy, use the DeleteGroupPolicy API. For information about policies, see Managed Policies and Inline Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) in the IAM User Guide.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Identity and Access Management's API operation DetachGroupPolicy for usage and error information.

Returned Error Codes:

* ErrCodeNoSuchEntityException "NoSuchEntity"
The request was rejected because it referenced an entity that does not exist.
The error message describes the entity.

* ErrCodeLimitExceededException "LimitExceeded"
The request was rejected because it attempted to create resources beyond
the current AWS account limits. The error message describes the limit exceeded.

* ErrCodeInvalidInputException "InvalidInput"
The request was rejected because an invalid or out-of-range value was supplied
for an input parameter.

* ErrCodeServiceFailureException "ServiceFailure"
The request processing has failed because of an unknown error, exception
or failure.

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DetachGroupPolicy

func (*IAM) DetachGroupPolicyRequest

func (c *IAM) DetachGroupPolicyRequest(input *DetachGroupPolicyInput) (req *request.Request, output *DetachGroupPolicyOutput)

DetachGroupPolicyRequest generates a "aws/request.Request" representing the client's request for the DetachGroupPolicy operation. The "output" return value will be populated with the request's response once the request complets successfuly.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DetachGroupPolicy for more information on using the DetachGroupPolicy API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DetachGroupPolicyRequest method.
req, resp := client.DetachGroupPolicyRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DetachGroupPolicy

func (*IAM) DetachGroupPolicyWithContext

func (c *IAM) DetachGroupPolicyWithContext(ctx aws.Context, input *DetachGroupPolicyInput, opts ...request.Option) (*DetachGroupPolicyOutput, error)

DetachGroupPolicyWithContext is the same as DetachGroupPolicy with the addition of the ability to pass a context and additional request options.

See DetachGroupPolicy for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*IAM) DetachRolePolicy

func (c *IAM) DetachRolePolicy(input *DetachRolePolicyInput) (*DetachRolePolicyOutput, error)

DetachRolePolicy API operation for AWS Identity and Access Management.

Removes the specified managed policy from the specified role.

A role can also have inline policies embedded with it. To delete an inline policy, use the DeleteRolePolicy API. For information about policies, see Managed Policies and Inline Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) in the IAM User Guide.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Identity and Access Management's API operation DetachRolePolicy for usage and error information.

Returned Error Codes:

* ErrCodeNoSuchEntityException "NoSuchEntity"
The request was rejected because it referenced an entity that does not exist.
The error message describes the entity.

* ErrCodeLimitExceededException "LimitExceeded"
The request was rejected because it attempted to create resources beyond
the current AWS account limits. The error message describes the limit exceeded.

* ErrCodeInvalidInputException "InvalidInput"
The request was rejected because an invalid or out-of-range value was supplied
for an input parameter.

* ErrCodeUnmodifiableEntityException "UnmodifiableEntity"
The request was rejected because only the service that depends on the service-linked
role can modify or delete the role on your behalf. The error message includes
the name of the service that depends on this service-linked role. You must
request the change through that service.

* ErrCodeServiceFailureException "ServiceFailure"
The request processing has failed because of an unknown error, exception
or failure.

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DetachRolePolicy

func (*IAM) DetachRolePolicyRequest

func (c *IAM) DetachRolePolicyRequest(input *DetachRolePolicyInput) (req *request.Request, output *DetachRolePolicyOutput)

DetachRolePolicyRequest generates a "aws/request.Request" representing the client's request for the DetachRolePolicy operation. The "output" return value will be populated with the request's response once the request complets successfuly.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DetachRolePolicy for more information on using the DetachRolePolicy API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DetachRolePolicyRequest method.
req, resp := client.DetachRolePolicyRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DetachRolePolicy

func (*IAM) DetachRolePolicyWithContext

func (c *IAM) DetachRolePolicyWithContext(ctx aws.Context, input *DetachRolePolicyInput, opts ...request.Option) (*DetachRolePolicyOutput, error)

DetachRolePolicyWithContext is the same as DetachRolePolicy with the addition of the ability to pass a context and additional request options.

See DetachRolePolicy for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*IAM) DetachUserPolicy

func (c *IAM) DetachUserPolicy(input *DetachUserPolicyInput) (*DetachUserPolicyOutput, error)

DetachUserPolicy API operation for AWS Identity and Access Management.

Removes the specified managed policy from the specified user.

A user can also have inline policies embedded with it. To delete an inline policy, use the DeleteUserPolicy API. For information about policies, see Managed Policies and Inline Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) in the IAM User Guide.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Identity and Access Management's API operation DetachUserPolicy for usage and error information.

Returned Error Codes:

* ErrCodeNoSuchEntityException "NoSuchEntity"
The request was rejected because it referenced an entity that does not exist.
The error message describes the entity.

* ErrCodeLimitExceededException "LimitExceeded"
The request was rejected because it attempted to create resources beyond
the current AWS account limits. The error message describes the limit exceeded.

* ErrCodeInvalidInputException "InvalidInput"
The request was rejected because an invalid or out-of-range value was supplied
for an input parameter.

* ErrCodeServiceFailureException "ServiceFailure"
The request processing has failed because of an unknown error, exception
or failure.

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DetachUserPolicy

func (*IAM) DetachUserPolicyRequest

func (c *IAM) DetachUserPolicyRequest(input *DetachUserPolicyInput) (req *request.Request, output *DetachUserPolicyOutput)

DetachUserPolicyRequest generates a "aws/request.Request" representing the client's request for the DetachUserPolicy operation. The "output" return value will be populated with the request's response once the request complets successfuly.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DetachUserPolicy for more information on using the DetachUserPolicy API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DetachUserPolicyRequest method.
req, resp := client.DetachUserPolicyRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DetachUserPolicy

func (*IAM) DetachUserPolicyWithContext

func (c *IAM) DetachUserPolicyWithContext(ctx aws.Context, input *DetachUserPolicyInput, opts ...request.Option) (*DetachUserPolicyOutput, error)

DetachUserPolicyWithContext is the same as DetachUserPolicy with the addition of the ability to pass a context and additional request options.

See DetachUserPolicy for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*IAM) EnableMFADevice

func (c *IAM) EnableMFADevice(input *EnableMFADeviceInput) (*EnableMFADeviceOutput, error)

EnableMFADevice API operation for AWS Identity and Access Management.

Enables the specified MFA device and associates it with the specified IAM user. When enabled, the MFA device is required for every subsequent login by the IAM user associated with the device.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Identity and Access Management's API operation EnableMFADevice for usage and error information.

Returned Error Codes:

* ErrCodeEntityAlreadyExistsException "EntityAlreadyExists"
The request was rejected because it attempted to create a resource that already
exists.

* ErrCodeEntityTemporarilyUnmodifiableException "EntityTemporarilyUnmodifiable"
The request was rejected because it referenced an entity that is temporarily
unmodifiable, such as a user name that was deleted and then recreated. The
error indicates that the request is likely to succeed if you try again after
waiting several minutes. The error message describes the entity.

* ErrCodeInvalidAuthenticationCodeException "InvalidAuthenticationCode"
The request was rejected because the authentication code was not recognized.
The error message describes the specific error.

* ErrCodeLimitExceededException "LimitExceeded"
The request was rejected because it attempted to create resources beyond
the current AWS account limits. The error message describes the limit exceeded.

* ErrCodeNoSuchEntityException "NoSuchEntity"
The request was rejected because it referenced an entity that does not exist.
The error message describes the entity.

* ErrCodeServiceFailureException "ServiceFailure"
The request processing has failed because of an unknown error, exception
or failure.

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/EnableMFADevice

func (*IAM) EnableMFADeviceRequest

func (c *IAM) EnableMFADeviceRequest(input *EnableMFADeviceInput) (req *request.Request, output *EnableMFADeviceOutput)

EnableMFADeviceRequest generates a "aws/request.Request" representing the client's request for the EnableMFADevice operation. The "output" return value will be populated with the request's response once the request complets successfuly.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See EnableMFADevice for more information on using the EnableMFADevice API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the EnableMFADeviceRequest method.
req, resp := client.EnableMFADeviceRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/EnableMFADevice

func (*IAM) EnableMFADeviceWithContext

func (c *IAM) EnableMFADeviceWithContext(ctx aws.Context, input *EnableMFADeviceInput, opts ...request.Option) (*EnableMFADeviceOutput, error)

EnableMFADeviceWithContext is the same as EnableMFADevice with the addition of the ability to pass a context and additional request options.

See EnableMFADevice for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*IAM) GenerateCredentialReport

func (c *IAM) GenerateCredentialReport(input *GenerateCredentialReportInput) (*GenerateCredentialReportOutput, error)

GenerateCredentialReport API operation for AWS Identity and Access Management.

Generates a credential report for the AWS account. For more information about the credential report, see Getting Credential Reports (http://docs.aws.amazon.com/IAM/latest/UserGuide/credential-reports.html) in the IAM User Guide.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Identity and Access Management's API operation GenerateCredentialReport for usage and error information.

Returned Error Codes:

* ErrCodeLimitExceededException "LimitExceeded"
The request was rejected because it attempted to create resources beyond
the current AWS account limits. The error message describes the limit exceeded.

* ErrCodeServiceFailureException "ServiceFailure"
The request processing has failed because of an unknown error, exception
or failure.

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GenerateCredentialReport

func (*IAM) GenerateCredentialReportRequest

func (c *IAM) GenerateCredentialReportRequest(input *GenerateCredentialReportInput) (req *request.Request, output *GenerateCredentialReportOutput)

GenerateCredentialReportRequest generates a "aws/request.Request" representing the client's request for the GenerateCredentialReport operation. The "output" return value will be populated with the request's response once the request complets successfuly.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GenerateCredentialReport for more information on using the GenerateCredentialReport API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GenerateCredentialReportRequest method.
req, resp := client.GenerateCredentialReportRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GenerateCredentialReport

func (*IAM) GenerateCredentialReportWithContext

func (c *IAM) GenerateCredentialReportWithContext(ctx aws.Context, input *GenerateCredentialReportInput, opts ...request.Option) (*GenerateCredentialReportOutput, error)

GenerateCredentialReportWithContext is the same as GenerateCredentialReport with the addition of the ability to pass a context and additional request options.

See GenerateCredentialReport for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*IAM) GetAccessKeyLastUsed

func (c *IAM) GetAccessKeyLastUsed(input *GetAccessKeyLastUsedInput) (*GetAccessKeyLastUsedOutput, error)

GetAccessKeyLastUsed API operation for AWS Identity and Access Management.

Retrieves information about when the specified access key was last used. The information includes the date and time of last use, along with the AWS service and region that were specified in the last request made with that key.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Identity and Access Management's API operation GetAccessKeyLastUsed for usage and error information.

Returned Error Codes:

* ErrCodeNoSuchEntityException "NoSuchEntity"
The request was rejected because it referenced an entity that does not exist.
The error message describes the entity.

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetAccessKeyLastUsed

func (*IAM) GetAccessKeyLastUsedRequest

func (c *IAM) GetAccessKeyLastUsedRequest(input *GetAccessKeyLastUsedInput) (req *request.Request, output *GetAccessKeyLastUsedOutput)

GetAccessKeyLastUsedRequest generates a "aws/request.Request" representing the client's request for the GetAccessKeyLastUsed operation. The "output" return value will be populated with the request's response once the request complets successfuly.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetAccessKeyLastUsed for more information on using the GetAccessKeyLastUsed API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetAccessKeyLastUsedRequest method.
req, resp := client.GetAccessKeyLastUsedRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetAccessKeyLastUsed

func (*IAM) GetAccessKeyLastUsedWithContext

func (c *IAM) GetAccessKeyLastUsedWithContext(ctx aws.Context, input *GetAccessKeyLastUsedInput, opts ...request.Option) (*GetAccessKeyLastUsedOutput, error)

GetAccessKeyLastUsedWithContext is the same as GetAccessKeyLastUsed with the addition of the ability to pass a context and additional request options.

See GetAccessKeyLastUsed for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*IAM) GetAccountAuthorizationDetails

func (c *IAM) GetAccountAuthorizationDetails(input *GetAccountAuthorizationDetailsInput) (*GetAccountAuthorizationDetailsOutput, error)

GetAccountAuthorizationDetails API operation for AWS Identity and Access Management.

Retrieves information about all IAM users, groups, roles, and policies in your AWS account, including their relationships to one another. Use this API to obtain a snapshot of the configuration of IAM permissions (users, groups, roles, and policies) in your account.

You can optionally filter the results using the Filter parameter. You can paginate the results using the MaxItems and Marker parameters.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Identity and Access Management's API operation GetAccountAuthorizationDetails for usage and error information.

Returned Error Codes:

* ErrCodeServiceFailureException "ServiceFailure"
The request processing has failed because of an unknown error, exception
or failure.

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetAccountAuthorizationDetails

func (*IAM) GetAccountAuthorizationDetailsPages

func (c *IAM) GetAccountAuthorizationDetailsPages(input *GetAccountAuthorizationDetailsInput, fn func(*GetAccountAuthorizationDetailsOutput, bool) bool) error

GetAccountAuthorizationDetailsPages iterates over the pages of a GetAccountAuthorizationDetails operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See GetAccountAuthorizationDetails method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a GetAccountAuthorizationDetails operation.
pageNum := 0
err := client.GetAccountAuthorizationDetailsPages(params,
    func(page *GetAccountAuthorizationDetailsOutput, lastPage bool) bool {
        pageNum++
        fmt.Println(page)
        return pageNum <= 3
    })

func (*IAM) GetAccountAuthorizationDetailsPagesWithContext

func (c *IAM) GetAccountAuthorizationDetailsPagesWithContext(ctx aws.Context, input *GetAccountAuthorizationDetailsInput, fn func(*GetAccountAuthorizationDetailsOutput, bool) bool, opts ...request.Option) error

GetAccountAuthorizationDetailsPagesWithContext same as GetAccountAuthorizationDetailsPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*IAM) GetAccountAuthorizationDetailsRequest

func (c *IAM) GetAccountAuthorizationDetailsRequest(input *GetAccountAuthorizationDetailsInput) (req *request.Request, output *GetAccountAuthorizationDetailsOutput)

GetAccountAuthorizationDetailsRequest generates a "aws/request.Request" representing the client's request for the GetAccountAuthorizationDetails operation. The "output" return value will be populated with the request's response once the request complets successfuly.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetAccountAuthorizationDetails for more information on using the GetAccountAuthorizationDetails API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetAccountAuthorizationDetailsRequest method.
req, resp := client.GetAccountAuthorizationDetailsRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetAccountAuthorizationDetails

func (*IAM) GetAccountAuthorizationDetailsWithContext

func (c *IAM) GetAccountAuthorizationDetailsWithContext(ctx aws.Context, input *GetAccountAuthorizationDetailsInput, opts ...request.Option) (*GetAccountAuthorizationDetailsOutput, error)

GetAccountAuthorizationDetailsWithContext is the same as GetAccountAuthorizationDetails with the addition of the ability to pass a context and additional request options.

See GetAccountAuthorizationDetails for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*IAM) GetAccountPasswordPolicy

func (c *IAM) GetAccountPasswordPolicy(input *GetAccountPasswordPolicyInput) (*GetAccountPasswordPolicyOutput, error)

GetAccountPasswordPolicy API operation for AWS Identity and Access Management.

Retrieves the password policy for the AWS account. For more information about using a password policy, go to Managing an IAM Password Policy (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_ManagingPasswordPolicies.html).

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Identity and Access Management's API operation GetAccountPasswordPolicy for usage and error information.

Returned Error Codes:

* ErrCodeNoSuchEntityException "NoSuchEntity"
The request was rejected because it referenced an entity that does not exist.
The error message describes the entity.

* ErrCodeServiceFailureException "ServiceFailure"
The request processing has failed because of an unknown error, exception
or failure.

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetAccountPasswordPolicy

Example (Shared00)

To see the current account password policy The following command displays details about the password policy for the current AWS account.

Code:

svc := iam.New(session.New())
input := &iam.GetAccountPasswordPolicyInput{}

result, err := svc.GetAccountPasswordPolicy(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case iam.ErrCodeNoSuchEntityException:
            fmt.Println(iam.ErrCodeNoSuchEntityException, aerr.Error())
        case iam.ErrCodeServiceFailureException:
            fmt.Println(iam.ErrCodeServiceFailureException, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*IAM) GetAccountPasswordPolicyRequest

func (c *IAM) GetAccountPasswordPolicyRequest(input *GetAccountPasswordPolicyInput) (req *request.Request, output *GetAccountPasswordPolicyOutput)

GetAccountPasswordPolicyRequest generates a "aws/request.Request" representing the client's request for the GetAccountPasswordPolicy operation. The "output" return value will be populated with the request's response once the request complets successfuly.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetAccountPasswordPolicy for more information on using the GetAccountPasswordPolicy API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetAccountPasswordPolicyRequest method.
req, resp := client.GetAccountPasswordPolicyRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetAccountPasswordPolicy

func (*IAM) GetAccountPasswordPolicyWithContext

func (c *IAM) GetAccountPasswordPolicyWithContext(ctx aws.Context, input *GetAccountPasswordPolicyInput, opts ...request.Option) (*GetAccountPasswordPolicyOutput, error)

GetAccountPasswordPolicyWithContext is the same as GetAccountPasswordPolicy with the addition of the ability to pass a context and additional request options.

See GetAccountPasswordPolicy for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*IAM) GetAccountSummary

func (c *IAM) GetAccountSummary(input *GetAccountSummaryInput) (*GetAccountSummaryOutput, error)

GetAccountSummary API operation for AWS Identity and Access Management.

Retrieves information about IAM entity usage and IAM quotas in the AWS account.

For information about limitations on IAM entities, see Limitations on IAM Entities (http://docs.aws.amazon.com/IAM/latest/UserGuide/LimitationsOnEntities.html) in the IAM User Guide.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Identity and Access Management's API operation GetAccountSummary for usage and error information.

Returned Error Codes:

* ErrCodeServiceFailureException "ServiceFailure"
The request processing has failed because of an unknown error, exception
or failure.

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetAccountSummary

Example (Shared00)

To get information about IAM entity quotas and usage in the current account The following command returns information about the IAM entity quotas and usage in the current AWS account.

Code:

svc := iam.New(session.New())
input := &iam.GetAccountSummaryInput{}

result, err := svc.GetAccountSummary(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case iam.ErrCodeServiceFailureException:
            fmt.Println(iam.ErrCodeServiceFailureException, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*IAM) GetAccountSummaryRequest

func (c *IAM) GetAccountSummaryRequest(input *GetAccountSummaryInput) (req *request.Request, output *GetAccountSummaryOutput)

GetAccountSummaryRequest generates a "aws/request.Request" representing the client's request for the GetAccountSummary operation. The "output" return value will be populated with the request's response once the request complets successfuly.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetAccountSummary for more information on using the GetAccountSummary API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetAccountSummaryRequest method.
req, resp := client.GetAccountSummaryRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetAccountSummary

func (*IAM) GetAccountSummaryWithContext

func (c *IAM) GetAccountSummaryWithContext(ctx aws.Context, input *GetAccountSummaryInput, opts ...request.Option) (*GetAccountSummaryOutput, error)

GetAccountSummaryWithContext is the same as GetAccountSummary with the addition of the ability to pass a context and additional request options.

See GetAccountSummary for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*IAM) GetContextKeysForCustomPolicy

func (c *IAM) GetContextKeysForCustomPolicy(input *GetContextKeysForCustomPolicyInput) (*GetContextKeysForPolicyResponse, error)

GetContextKeysForCustomPolicy API operation for AWS Identity and Access Management.

Gets a list of all of the context keys referenced in the input policies. The policies are supplied as a list of one or more strings. To get the context keys from policies associated with an IAM user, group, or role, use GetContextKeysForPrincipalPolicy.

Context keys are variables maintained by AWS and its services that provide details about the context of an API query request, and can be evaluated by testing against a value specified in an IAM policy. Use GetContextKeysForCustomPolicy to understand what key names and values you must supply when you call SimulateCustomPolicy. Note that all parameters are shown in unencoded form here for clarity, but must be URL encoded to be included as a part of a real HTML request.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Identity and Access Management's API operation GetContextKeysForCustomPolicy for usage and error information.

Returned Error Codes:

* ErrCodeInvalidInputException "InvalidInput"
The request was rejected because an invalid or out-of-range value was supplied
for an input parameter.

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetContextKeysForCustomPolicy

func (*IAM) GetContextKeysForCustomPolicyRequest

func (c *IAM) GetContextKeysForCustomPolicyRequest(input *GetContextKeysForCustomPolicyInput) (req *request.Request, output *GetContextKeysForPolicyResponse)

GetContextKeysForCustomPolicyRequest generates a "aws/request.Request" representing the client's request for the GetContextKeysForCustomPolicy operation. The "output" return value will be populated with the request's response once the request complets successfuly.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetContextKeysForCustomPolicy for more information on using the GetContextKeysForCustomPolicy API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetContextKeysForCustomPolicyRequest method.
req, resp := client.GetContextKeysForCustomPolicyRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetContextKeysForCustomPolicy

func (*IAM) GetContextKeysForCustomPolicyWithContext

func (c *IAM) GetContextKeysForCustomPolicyWithContext(ctx aws.Context, input *GetContextKeysForCustomPolicyInput, opts ...request.Option) (*GetContextKeysForPolicyResponse, error)

GetContextKeysForCustomPolicyWithContext is the same as GetContextKeysForCustomPolicy with the addition of the ability to pass a context and additional request options.

See GetContextKeysForCustomPolicy for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*IAM) GetContextKeysForPrincipalPolicy

func (c *IAM) GetContextKeysForPrincipalPolicy(input *GetContextKeysForPrincipalPolicyInput) (*GetContextKeysForPolicyResponse, error)

GetContextKeysForPrincipalPolicy API operation for AWS Identity and Access Management.

Gets a list of all of the context keys referenced in all of the IAM policies attached to the specified IAM entity. The entity can be an IAM user, group, or role. If you specify a user, then the request also includes all of the policies attached to groups that the user is a member of.

You can optionally include a list of one or more additional policies, specified as strings. If you want to include only a list of policies by string, use GetContextKeysForCustomPolicy instead.

Note: This API discloses information about the permissions granted to other users. If you do not want users to see other user's permissions, then consider allowing them to use GetContextKeysForCustomPolicy instead.

Context keys are variables maintained by AWS and its services that provide details about the context of an API query request, and can be evaluated by testing against a value in an IAM policy. Use GetContextKeysForPrincipalPolicy to understand what key names and values you must supply when you call SimulatePrincipalPolicy.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Identity and Access Management's API operation GetContextKeysForPrincipalPolicy for usage and error information.

Returned Error Codes:

* ErrCodeNoSuchEntityException "NoSuchEntity"
The request was rejected because it referenced an entity that does not exist.
The error message describes the entity.

* ErrCodeInvalidInputException "InvalidInput"
The request was rejected because an invalid or out-of-range value was supplied
for an input parameter.

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetContextKeysForPrincipalPolicy

func (*IAM) GetContextKeysForPrincipalPolicyRequest

func (c *IAM) GetContextKeysForPrincipalPolicyRequest(input *GetContextKeysForPrincipalPolicyInput) (req *request.Request, output *GetContextKeysForPolicyResponse)

GetContextKeysForPrincipalPolicyRequest generates a "aws/request.Request" representing the client's request for the GetContextKeysForPrincipalPolicy operation. The "output" return value will be populated with the request's response once the request complets successfuly.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetContextKeysForPrincipalPolicy for more information on using the GetContextKeysForPrincipalPolicy API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetContextKeysForPrincipalPolicyRequest method.
req, resp := client.GetContextKeysForPrincipalPolicyRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetContextKeysForPrincipalPolicy

func (*IAM) GetContextKeysForPrincipalPolicyWithContext

func (c *IAM) GetContextKeysForPrincipalPolicyWithContext(ctx aws.Context, input *GetContextKeysForPrincipalPolicyInput, opts ...request.Option) (*GetContextKeysForPolicyResponse, error)

GetContextKeysForPrincipalPolicyWithContext is the same as GetContextKeysForPrincipalPolicy with the addition of the ability to pass a context and additional request options.

See GetContextKeysForPrincipalPolicy for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*IAM) GetCredentialReport

func (c *IAM) GetCredentialReport(input *GetCredentialReportInput) (*GetCredentialReportOutput, error)

GetCredentialReport API operation for AWS Identity and Access Management.

Retrieves a credential report for the AWS account. For more information about the credential report, see Getting Credential Reports (http://docs.aws.amazon.com/IAM/latest/UserGuide/credential-reports.html) in the IAM User Guide.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Identity and Access Management's API operation GetCredentialReport for usage and error information.

Returned Error Codes:

* ErrCodeCredentialReportNotPresentException "ReportNotPresent"
The request was rejected because the credential report does not exist. To
generate a credential report, use GenerateCredentialReport.

* ErrCodeCredentialReportExpiredException "ReportExpired"
The request was rejected because the most recent credential report has expired.
To generate a new credential report, use GenerateCredentialReport. For more
information about credential report expiration, see Getting Credential Reports
(http://docs.aws.amazon.com/IAM/latest/UserGuide/credential-reports.html)
in the IAM User Guide.

* ErrCodeCredentialReportNotReadyException "ReportInProgress"
The request was rejected because the credential report is still being generated.

* ErrCodeServiceFailureException "ServiceFailure"
The request processing has failed because of an unknown error, exception
or failure.

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetCredentialReport

func (*IAM) GetCredentialReportRequest

func (c *IAM) GetCredentialReportRequest(input *GetCredentialReportInput) (req *request.Request, output *GetCredentialReportOutput)

GetCredentialReportRequest generates a "aws/request.Request" representing the client's request for the GetCredentialReport operation. The "output" return value will be populated with the request's response once the request complets successfuly.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetCredentialReport for more information on using the GetCredentialReport API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetCredentialReportRequest method.
req, resp := client.GetCredentialReportRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetCredentialReport

func (*IAM) GetCredentialReportWithContext

func (c *IAM) GetCredentialReportWithContext(ctx aws.Context, input *GetCredentialReportInput, opts ...request.Option) (*GetCredentialReportOutput, error)

GetCredentialReportWithContext is the same as GetCredentialReport with the addition of the ability to pass a context and additional request options.

See GetCredentialReport for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*IAM) GetGroup

func (c *IAM) GetGroup(input *GetGroupInput) (*GetGroupOutput, error)

GetGroup API operation for AWS Identity and Access Management.

Returns a list of IAM users that are in the specified IAM group. You can paginate the results using the MaxItems and Marker parameters.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Identity and Access Management's API operation GetGroup for usage and error information.

Returned Error Codes:

* ErrCodeNoSuchEntityException "NoSuchEntity"
The request was rejected because it referenced an entity that does not exist.
The error message describes the entity.

* ErrCodeServiceFailureException "ServiceFailure"
The request processing has failed because of an unknown error, exception
or failure.

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetGroup

func (*IAM) GetGroupPages

func (c *IAM) GetGroupPages(input *GetGroupInput, fn func(*GetGroupOutput, bool) bool) error

GetGroupPages iterates over the pages of a GetGroup operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See GetGroup method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a GetGroup operation.
pageNum := 0
err := client.GetGroupPages(params,
    func(page *GetGroupOutput, lastPage bool) bool {
        pageNum++
        fmt.Println(page)
        return pageNum <= 3
    })

func (*IAM) GetGroupPagesWithContext

func (c *IAM) GetGroupPagesWithContext(ctx aws.Context, input *GetGroupInput, fn func(*GetGroupOutput, bool) bool, opts ...request.Option) error

GetGroupPagesWithContext same as GetGroupPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*IAM) GetGroupPolicy

func (c *IAM) GetGroupPolicy(input *GetGroupPolicyInput) (*GetGroupPolicyOutput, error)

GetGroupPolicy API operation for AWS Identity and Access Management.

Retrieves the specified inline policy document that is embedded in the specified IAM group.

Policies returned by this API are URL-encoded compliant with RFC 3986 (https://tools.ietf.org/html/rfc3986). You can use a URL decoding method to convert the policy back to plain JSON text. For example, if you use Java, you can use the decode method of the java.net.URLDecoder utility class in the Java SDK. Other languages and SDKs provide similar functionality.

An IAM group can also have managed policies attached to it. To retrieve a managed policy document that is attached to a group, use GetPolicy to determine the policy's default version, then use GetPolicyVersion to retrieve the policy document.

For more information about policies, see Managed Policies and Inline Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) in the IAM User Guide.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Identity and Access Management's API operation GetGroupPolicy for usage and error information.

Returned Error Codes:

* ErrCodeNoSuchEntityException "NoSuchEntity"
The request was rejected because it referenced an entity that does not exist.
The error message describes the entity.

* ErrCodeServiceFailureException "ServiceFailure"
The request processing has failed because of an unknown error, exception
or failure.

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetGroupPolicy

func (*IAM) GetGroupPolicyRequest

func (c *IAM) GetGroupPolicyRequest(input *GetGroupPolicyInput) (req *request.Request, output *GetGroupPolicyOutput)

GetGroupPolicyRequest generates a "aws/request.Request" representing the client's request for the GetGroupPolicy operation. The "output" return value will be populated with the request's response once the request complets successfuly.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetGroupPolicy for more information on using the GetGroupPolicy API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetGroupPolicyRequest method.
req, resp := client.GetGroupPolicyRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetGroupPolicy

func (*IAM) GetGroupPolicyWithContext

func (c *IAM) GetGroupPolicyWithContext(ctx aws.Context, input *GetGroupPolicyInput, opts ...request.Option) (*GetGroupPolicyOutput, error)

GetGroupPolicyWithContext is the same as GetGroupPolicy with the addition of the ability to pass a context and additional request options.

See GetGroupPolicy for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*IAM) GetGroupRequest

func (c *IAM) GetGroupRequest(input *GetGroupInput) (req *request.Request, output *GetGroupOutput)

GetGroupRequest generates a "aws/request.Request" representing the client's request for the GetGroup operation. The "output" return value will be populated with the request's response once the request complets successfuly.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetGroup for more information on using the GetGroup API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetGroupRequest method.
req, resp := client.GetGroupRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetGroup

func (*IAM) GetGroupWithContext

func (c *IAM) GetGroupWithContext(ctx aws.Context, input *GetGroupInput, opts ...request.Option) (*GetGroupOutput, error)

GetGroupWithContext is the same as GetGroup with the addition of the ability to pass a context and additional request options.

See GetGroup for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*IAM) GetInstanceProfile

func (c *IAM) GetInstanceProfile(input *GetInstanceProfileInput) (*GetInstanceProfileOutput, error)

GetInstanceProfile API operation for AWS Identity and Access Management.

Retrieves information about the specified instance profile, including the instance profile's path, GUID, ARN, and role. For more information about instance profiles, see About Instance Profiles (http://docs.aws.amazon.com/IAM/latest/UserGuide/AboutInstanceProfiles.html) in the IAM User Guide.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Identity and Access Management's API operation GetInstanceProfile for usage and error information.

Returned Error Codes:

* ErrCodeNoSuchEntityException "NoSuchEntity"
The request was rejected because it referenced an entity that does not exist.
The error message describes the entity.

* ErrCodeServiceFailureException "ServiceFailure"
The request processing has failed because of an unknown error, exception
or failure.

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetInstanceProfile

Example (Shared00)

To get information about an instance profile The following command gets information about the instance profile named ExampleInstanceProfile.

Code:

svc := iam.New(session.New())
input := &iam.GetInstanceProfileInput{
    InstanceProfileName: aws.String("ExampleInstanceProfile"),
}

result, err := svc.GetInstanceProfile(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case iam.ErrCodeNoSuchEntityException:
            fmt.Println(iam.ErrCodeNoSuchEntityException, aerr.Error())
        case iam.ErrCodeServiceFailureException:
            fmt.Println(iam.ErrCodeServiceFailureException, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*IAM) GetInstanceProfileRequest

func (c *IAM) GetInstanceProfileRequest(input *GetInstanceProfileInput) (req *request.Request, output *GetInstanceProfileOutput)

GetInstanceProfileRequest generates a "aws/request.Request" representing the client's request for the GetInstanceProfile operation. The "output" return value will be populated with the request's response once the request complets successfuly.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetInstanceProfile for more information on using the GetInstanceProfile API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetInstanceProfileRequest method.
req, resp := client.GetInstanceProfileRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetInstanceProfile

func (*IAM) GetInstanceProfileWithContext

func (c *IAM) GetInstanceProfileWithContext(ctx aws.Context, input *GetInstanceProfileInput, opts ...request.Option) (*GetInstanceProfileOutput, error)

GetInstanceProfileWithContext is the same as GetInstanceProfile with the addition of the ability to pass a context and additional request options.

See GetInstanceProfile for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*IAM) GetLoginProfile

func (c *IAM) GetLoginProfile(input *GetLoginProfileInput) (*GetLoginProfileOutput, error)

GetLoginProfile API operation for AWS Identity and Access Management.

Retrieves the user name and password-creation date for the specified IAM user. If the user has not been assigned a password, the action returns a 404 (NoSuchEntity) error.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Identity and Access Management's API operation GetLoginProfile for usage and error information.

Returned Error Codes:

* ErrCodeNoSuchEntityException "NoSuchEntity"
The request was rejected because it referenced an entity that does not exist.
The error message describes the entity.

* ErrCodeServiceFailureException "ServiceFailure"
The request processing has failed because of an unknown error, exception
or failure.

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetLoginProfile

Example (Shared00)

To get password information for an IAM user The following command gets information about the password for the IAM user named Anika.

Code:

svc := iam.New(session.New())
input := &iam.GetLoginProfileInput{
    UserName: aws.String("Anika"),
}

result, err := svc.GetLoginProfile(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case iam.ErrCodeNoSuchEntityException:
            fmt.Println(iam.ErrCodeNoSuchEntityException, aerr.Error())
        case iam.ErrCodeServiceFailureException:
            fmt.Println(iam.ErrCodeServiceFailureException, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*IAM) GetLoginProfileRequest

func (c *IAM) GetLoginProfileRequest(input *GetLoginProfileInput) (req *request.Request, output *GetLoginProfileOutput)

GetLoginProfileRequest generates a "aws/request.Request" representing the client's request for the GetLoginProfile operation. The "output" return value will be populated with the request's response once the request complets successfuly.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetLoginProfile for more information on using the GetLoginProfile API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetLoginProfileRequest method.
req, resp := client.GetLoginProfileRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetLoginProfile

func (*IAM) GetLoginProfileWithContext

func (c *IAM) GetLoginProfileWithContext(ctx aws.Context, input *GetLoginProfileInput, opts ...request.Option) (*GetLoginProfileOutput, error)

GetLoginProfileWithContext is the same as GetLoginProfile with the addition of the ability to pass a context and additional request options.

See GetLoginProfile for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*IAM) GetOpenIDConnectProvider

func (c *IAM) GetOpenIDConnectProvider(input *GetOpenIDConnectProviderInput) (*GetOpenIDConnectProviderOutput, error)

GetOpenIDConnectProvider API operation for AWS Identity and Access Management.

Returns information about the specified OpenID Connect (OIDC) provider resource object in IAM.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Identity and Access Management's API operation GetOpenIDConnectProvider for usage and error information.

Returned Error Codes:

* ErrCodeInvalidInputException "InvalidInput"
The request was rejected because an invalid or out-of-range value was supplied
for an input parameter.

* ErrCodeNoSuchEntityException "NoSuchEntity"
The request was rejected because it referenced an entity that does not exist.
The error message describes the entity.

* ErrCodeServiceFailureException "ServiceFailure"
The request processing has failed because of an unknown error, exception
or failure.

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetOpenIDConnectProvider

func (*IAM) GetOpenIDConnectProviderRequest

func (c *IAM) GetOpenIDConnectProviderRequest(input *GetOpenIDConnectProviderInput) (req *request.Request, output *GetOpenIDConnectProviderOutput)

GetOpenIDConnectProviderRequest generates a "aws/request.Request" representing the client's request for the GetOpenIDConnectProvider operation. The "output" return value will be populated with the request's response once the request complets successfuly.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetOpenIDConnectProvider for more information on using the GetOpenIDConnectProvider API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetOpenIDConnectProviderRequest method.
req, resp := client.GetOpenIDConnectProviderRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetOpenIDConnectProvider

func (*IAM) GetOpenIDConnectProviderWithContext

func (c *IAM) GetOpenIDConnectProviderWithContext(ctx aws.Context, input *