Há mais AWS SDK exemplos disponíveis no GitHub repositório AWS Doc SDK Examples
As traduções são geradas por tradução automática. Em caso de conflito entre o conteúdo da tradução e da versão original em inglês, a versão em inglês prevalecerá.
Exemplos básicos de IAM uso AWS SDKs
Os exemplos de código a seguir mostram como usar o básico do AWS Identity and Access Management with AWS SDKs.
Exemplos
- Olá, IAM
- Aprender os conceitos básicos
- Ações
- AddClientIdToOpenIdConnectProvider
- AddRoleToInstanceProfile
- AddUserToGroup
- AttachGroupPolicy
- AttachRolePolicy
- AttachUserPolicy
- ChangePassword
- CreateAccessKey
- CreateAccountAlias
- CreateGroup
- CreateInstanceProfile
- CreateLoginProfile
- CreateOpenIdConnectProvider
- CreatePolicy
- CreatePolicyVersion
- CreateRole
- CreateSAMLProvider
- CreateServiceLinkedRole
- CreateUser
- CreateVirtualMfaDevice
- DeactivateMfaDevice
- DeleteAccessKey
- DeleteAccountAlias
- DeleteAccountPasswordPolicy
- DeleteGroup
- DeleteGroupPolicy
- DeleteInstanceProfile
- DeleteLoginProfile
- DeleteOpenIdConnectProvider
- DeletePolicy
- DeletePolicyVersion
- DeleteRole
- DeleteRolePermissionsBoundary
- DeleteRolePolicy
- DeleteSAMLProvider
- DeleteServerCertificate
- DeleteServiceLinkedRole
- DeleteSigningCertificate
- DeleteUser
- DeleteUserPermissionsBoundary
- DeleteUserPolicy
- DeleteVirtualMfaDevice
- DetachGroupPolicy
- DetachRolePolicy
- DetachUserPolicy
- EnableMfaDevice
- GenerateCredentialReport
- GenerateServiceLastAccessedDetails
- GetAccessKeyLastUsed
- GetAccountAuthorizationDetails
- GetAccountPasswordPolicy
- GetAccountSummary
- GetContextKeysForCustomPolicy
- GetContextKeysForPrincipalPolicy
- GetCredentialReport
- GetGroup
- GetGroupPolicy
- GetInstanceProfile
- GetLoginProfile
- GetOpenIdConnectProvider
- GetPolicy
- GetPolicyVersion
- GetRole
- GetRolePolicy
- GetSamlProvider
- GetServerCertificate
- GetServiceLastAccessedDetails
- GetServiceLastAccessedDetailsWithEntities
- GetServiceLinkedRoleDeletionStatus
- GetUser
- GetUserPolicy
- ListAccessKeys
- ListAccountAliases
- ListAttachedGroupPolicies
- ListAttachedRolePolicies
- ListAttachedUserPolicies
- ListEntitiesForPolicy
- ListGroupPolicies
- ListGroups
- ListGroupsForUser
- ListInstanceProfiles
- ListInstanceProfilesForRole
- ListMfaDevices
- ListOpenIdConnectProviders
- ListPolicies
- ListPolicyVersions
- ListRolePolicies
- ListRoleTags
- ListRoles
- ListSAMLProviders
- ListServerCertificates
- ListSigningCertificates
- ListUserPolicies
- ListUserTags
- ListUsers
- ListVirtualMfaDevices
- PutGroupPolicy
- PutRolePermissionsBoundary
- PutRolePolicy
- PutUserPermissionsBoundary
- PutUserPolicy
- RemoveClientIdFromOpenIdConnectProvider
- RemoveRoleFromInstanceProfile
- RemoveUserFromGroup
- ResyncMfaDevice
- SetDefaultPolicyVersion
- TagRole
- TagUser
- UntagRole
- UntagUser
- UpdateAccessKey
- UpdateAccountPasswordPolicy
- UpdateAssumeRolePolicy
- UpdateGroup
- UpdateLoginProfile
- UpdateOpenIdConnectProviderThumbprint
- UpdateRole
- UpdateRoleDescription
- UpdateSamlProvider
- UpdateServerCertificate
- UpdateSigningCertificate
- UpdateUser
- UploadServerCertificate
- UploadSigningCertificate