IAMServiceResource#
Auto-generated documentation for IAM type annotations stubs module mypy-boto3-iam.
IAMServiceResource#
Type annotations and code completion for boto3.resource("iam")
, included resources and collections.
boto3 documentation
# IAMServiceResource usage example
from mypy_boto3_iam.service_resource import IAMServiceResource
def get_iam_resource() -> IAMServiceResource:
return boto3.resource("iam")
Attributes#
-
meta
: IAMResourceMeta -
groups
: ServiceResourceGroupsCollection -
instance_profiles
: ServiceResourceInstanceProfilesCollection -
policies
: ServiceResourcePoliciesCollection -
saml_providers
: ServiceResourceSamlProvidersCollection -
server_certificates
: ServiceResourceServerCertificatesCollection -
virtual_mfa_devices
: ServiceResourceVirtualMfaDevicesCollection
Collections#
ServiceResourceGroupsCollection#
Provides access to Group resource.
Type annotations and code completion for boto3.resource("iam").groups
collection.
boto3 documentation
# ServiceResourceGroupsCollection usage example
from mypy_boto3_iam.service_resource import ServiceResourceGroupsCollection
def get_collection() -> ServiceResourceGroupsCollection:
return boto3.resource("iam").groups
ServiceResourceInstanceProfilesCollection#
Provides access to InstanceProfile resource.
Type annotations and code completion for boto3.resource("iam").instance_profiles
collection.
boto3 documentation
# ServiceResourceInstanceProfilesCollection usage example
from mypy_boto3_iam.service_resource import ServiceResourceInstanceProfilesCollection
def get_collection() -> ServiceResourceInstanceProfilesCollection:
return boto3.resource("iam").instance_profiles
ServiceResourcePoliciesCollection#
Provides access to Policy resource.
Type annotations and code completion for boto3.resource("iam").policies
collection.
boto3 documentation
# ServiceResourcePoliciesCollection usage example
from mypy_boto3_iam.service_resource import ServiceResourcePoliciesCollection
def get_collection() -> ServiceResourcePoliciesCollection:
return boto3.resource("iam").policies
ServiceResourceRolesCollection#
Provides access to Role resource.
Type annotations and code completion for boto3.resource("iam").roles
collection.
boto3 documentation
# ServiceResourceRolesCollection usage example
from mypy_boto3_iam.service_resource import ServiceResourceRolesCollection
def get_collection() -> ServiceResourceRolesCollection:
return boto3.resource("iam").roles
ServiceResourceSamlProvidersCollection#
Provides access to SamlProvider resource.
Type annotations and code completion for boto3.resource("iam").saml_providers
collection.
boto3 documentation
# ServiceResourceSamlProvidersCollection usage example
from mypy_boto3_iam.service_resource import ServiceResourceSamlProvidersCollection
def get_collection() -> ServiceResourceSamlProvidersCollection:
return boto3.resource("iam").saml_providers
ServiceResourceServerCertificatesCollection#
Provides access to ServerCertificate resource.
Type annotations and code completion for boto3.resource("iam").server_certificates
collection.
boto3 documentation
# ServiceResourceServerCertificatesCollection usage example
from mypy_boto3_iam.service_resource import ServiceResourceServerCertificatesCollection
def get_collection() -> ServiceResourceServerCertificatesCollection:
return boto3.resource("iam").server_certificates
ServiceResourceUsersCollection#
Provides access to User resource.
Type annotations and code completion for boto3.resource("iam").users
collection.
boto3 documentation
# ServiceResourceUsersCollection usage example
from mypy_boto3_iam.service_resource import ServiceResourceUsersCollection
def get_collection() -> ServiceResourceUsersCollection:
return boto3.resource("iam").users
ServiceResourceVirtualMfaDevicesCollection#
Provides access to VirtualMfaDevice resource.
Type annotations and code completion for boto3.resource("iam").virtual_mfa_devices
collection.
boto3 documentation
# ServiceResourceVirtualMfaDevicesCollection usage example
from mypy_boto3_iam.service_resource import ServiceResourceVirtualMfaDevicesCollection
def get_collection() -> ServiceResourceVirtualMfaDevicesCollection:
return boto3.resource("iam").virtual_mfa_devices
Methods#
IAMServiceResource.AccessKey method#
Creates a AccessKey resource.
Type annotations and code completion for boto3.resource("iam").AccessKey
method.
boto3 documentation
# AccessKey method definition
def AccessKey(
self,
user_name: str,
id: str,
) -> AccessKey:
...
IAMServiceResource.AccessKeyPair method#
Creates a AccessKeyPair resource.
Type annotations and code completion for boto3.resource("iam").AccessKeyPair
method.
boto3 documentation
# AccessKeyPair method definition
def AccessKeyPair(
self,
user_name: str,
id: str,
secret: str,
) -> AccessKeyPair:
...
IAMServiceResource.AccountPasswordPolicy method#
Creates a AccountPasswordPolicy resource.
Type annotations and code completion for boto3.resource("iam").AccountPasswordPolicy
method.
boto3 documentation
# AccountPasswordPolicy method definition
def AccountPasswordPolicy(
self,
) -> AccountPasswordPolicy:
...
IAMServiceResource.AccountSummary method#
Creates a AccountSummary resource.
Type annotations and code completion for boto3.resource("iam").AccountSummary
method.
boto3 documentation
# AccountSummary method definition
def AccountSummary(
self,
) -> AccountSummary:
...
IAMServiceResource.AssumeRolePolicy method#
Creates a AssumeRolePolicy resource.
Type annotations and code completion for boto3.resource("iam").AssumeRolePolicy
method.
boto3 documentation
# AssumeRolePolicy method definition
def AssumeRolePolicy(
self,
role_name: str,
) -> AssumeRolePolicy:
...
IAMServiceResource.CurrentUser method#
Creates a CurrentUser resource.
Type annotations and code completion for boto3.resource("iam").CurrentUser
method.
boto3 documentation
# CurrentUser method definition
def CurrentUser(
self,
) -> CurrentUser:
...
IAMServiceResource.Group method#
Creates a Group resource.
Type annotations and code completion for boto3.resource("iam").Group
method.
boto3 documentation
# Group method definition
def Group(
self,
name: str,
) -> Group:
...
IAMServiceResource.GroupPolicy method#
Creates a GroupPolicy resource.
Type annotations and code completion for boto3.resource("iam").GroupPolicy
method.
boto3 documentation
# GroupPolicy method definition
def GroupPolicy(
self,
group_name: str,
name: str,
) -> GroupPolicy:
...
IAMServiceResource.InstanceProfile method#
Creates a InstanceProfile resource.
Type annotations and code completion for boto3.resource("iam").InstanceProfile
method.
boto3 documentation
# InstanceProfile method definition
def InstanceProfile(
self,
name: str,
) -> InstanceProfile:
...
IAMServiceResource.LoginProfile method#
Creates a LoginProfile resource.
Type annotations and code completion for boto3.resource("iam").LoginProfile
method.
boto3 documentation
# LoginProfile method definition
def LoginProfile(
self,
user_name: str,
) -> LoginProfile:
...
IAMServiceResource.MfaDevice method#
Creates a MfaDevice resource.
Type annotations and code completion for boto3.resource("iam").MfaDevice
method.
boto3 documentation
# MfaDevice method definition
def MfaDevice(
self,
user_name: str,
serial_number: str,
) -> MfaDevice:
...
IAMServiceResource.Policy method#
Creates a Policy resource.
Type annotations and code completion for boto3.resource("iam").Policy
method.
boto3 documentation
# Policy method definition
def Policy(
self,
arn: str,
) -> Policy:
...
IAMServiceResource.PolicyVersion method#
Creates a PolicyVersion resource.
Type annotations and code completion for boto3.resource("iam").PolicyVersion
method.
boto3 documentation
# PolicyVersion method definition
def PolicyVersion(
self,
arn: str,
version_id: str,
) -> PolicyVersion:
...
IAMServiceResource.Role method#
Creates a Role resource.
Type annotations and code completion for boto3.resource("iam").Role
method.
boto3 documentation
# Role method definition
def Role(
self,
name: str,
) -> Role:
...
IAMServiceResource.RolePolicy method#
Creates a RolePolicy resource.
Type annotations and code completion for boto3.resource("iam").RolePolicy
method.
boto3 documentation
# RolePolicy method definition
def RolePolicy(
self,
role_name: str,
name: str,
) -> RolePolicy:
...
IAMServiceResource.SamlProvider method#
Creates a SamlProvider resource.
Type annotations and code completion for boto3.resource("iam").SamlProvider
method.
boto3 documentation
# SamlProvider method definition
def SamlProvider(
self,
arn: str,
) -> SamlProvider:
...
IAMServiceResource.ServerCertificate method#
Creates a ServerCertificate resource.
Type annotations and code completion for boto3.resource("iam").ServerCertificate
method.
boto3 documentation
# ServerCertificate method definition
def ServerCertificate(
self,
name: str,
) -> ServerCertificate:
...
IAMServiceResource.SigningCertificate method#
Creates a SigningCertificate resource.
Type annotations and code completion for boto3.resource("iam").SigningCertificate
method.
boto3 documentation
# SigningCertificate method definition
def SigningCertificate(
self,
user_name: str,
id: str,
) -> SigningCertificate:
...
IAMServiceResource.User method#
Creates a User resource.
Type annotations and code completion for boto3.resource("iam").User
method.
boto3 documentation
# User method definition
def User(
self,
name: str,
) -> User:
...
IAMServiceResource.UserPolicy method#
Creates a UserPolicy resource.
Type annotations and code completion for boto3.resource("iam").UserPolicy
method.
boto3 documentation
# UserPolicy method definition
def UserPolicy(
self,
user_name: str,
name: str,
) -> UserPolicy:
...
IAMServiceResource.VirtualMfaDevice method#
Creates a VirtualMfaDevice resource.
Type annotations and code completion for boto3.resource("iam").VirtualMfaDevice
method.
boto3 documentation
# VirtualMfaDevice method definition
def VirtualMfaDevice(
self,
serial_number: str,
) -> VirtualMfaDevice:
...
IAMServiceResource.change_password method#
Changes the password of the IAM user who is calling this operation.
Type annotations and code completion for boto3.resource("iam").change_password
method.
boto3 documentation
# change_password method definition
def change_password(
self,
*,
OldPassword: str,
NewPassword: str,
) -> None:
...
# change_password method usage example with argument unpacking
kwargs: ChangePasswordRequestServiceResourceChangePasswordTypeDef = { # (1)
"OldPassword": ...,
"NewPassword": ...,
}
parent.change_password(**kwargs)
IAMServiceResource.create_account_alias method#
Creates an alias for your Amazon Web Services account.
Type annotations and code completion for boto3.resource("iam").create_account_alias
method.
boto3 documentation
# create_account_alias method definition
def create_account_alias(
self,
*,
AccountAlias: str,
) -> None:
...
# create_account_alias method usage example with argument unpacking
kwargs: CreateAccountAliasRequestServiceResourceCreateAccountAliasTypeDef = { # (1)
"AccountAlias": ...,
}
parent.create_account_alias(**kwargs)
IAMServiceResource.create_account_password_policy method#
Updates the password policy settings for the Amazon Web Services account.
Type annotations and code completion for boto3.resource("iam").create_account_password_policy
method.
boto3 documentation
# create_account_password_policy method definition
def create_account_password_policy(
self,
*,
MinimumPasswordLength: int = ...,
RequireSymbols: bool = ...,
RequireNumbers: bool = ...,
RequireUppercaseCharacters: bool = ...,
RequireLowercaseCharacters: bool = ...,
AllowUsersToChangePassword: bool = ...,
MaxPasswordAge: int = ...,
PasswordReusePrevention: int = ...,
HardExpiry: bool = ...,
) -> AccountPasswordPolicy:
...
# create_account_password_policy method usage example with argument unpacking
kwargs: UpdateAccountPasswordPolicyRequestServiceResourceCreateAccountPasswordPolicyTypeDef = { # (1)
"MinimumPasswordLength": ...,
}
parent.create_account_password_policy(**kwargs)
IAMServiceResource.create_group method#
Creates a new group.
Type annotations and code completion for boto3.resource("iam").create_group
method.
boto3 documentation
# create_group method definition
def create_group(
self,
*,
GroupName: str,
Path: str = ...,
) -> Group:
...
# create_group method usage example with argument unpacking
kwargs: CreateGroupRequestServiceResourceCreateGroupTypeDef = { # (1)
"GroupName": ...,
}
parent.create_group(**kwargs)
IAMServiceResource.create_instance_profile method#
Creates a new instance profile.
Type annotations and code completion for boto3.resource("iam").create_instance_profile
method.
boto3 documentation
# create_instance_profile method definition
def create_instance_profile(
self,
*,
InstanceProfileName: str,
Path: str = ...,
Tags: Sequence[TagTypeDef] = ..., # (1)
) -> InstanceProfile:
...
- See TagTypeDef
# create_instance_profile method usage example with argument unpacking
kwargs: CreateInstanceProfileRequestServiceResourceCreateInstanceProfileTypeDef = { # (1)
"InstanceProfileName": ...,
}
parent.create_instance_profile(**kwargs)
IAMServiceResource.create_policy method#
Creates a new managed policy for your Amazon Web Services account.
Type annotations and code completion for boto3.resource("iam").create_policy
method.
boto3 documentation
# create_policy method definition
def create_policy(
self,
*,
PolicyName: str,
PolicyDocument: str,
Path: str = ...,
Description: str = ...,
Tags: Sequence[TagTypeDef] = ..., # (1)
) -> Policy:
...
- See TagTypeDef
# create_policy method usage example with argument unpacking
kwargs: CreatePolicyRequestServiceResourceCreatePolicyTypeDef = { # (1)
"PolicyName": ...,
"PolicyDocument": ...,
}
parent.create_policy(**kwargs)
IAMServiceResource.create_role method#
Creates a new role for your Amazon Web Services account.
Type annotations and code completion for boto3.resource("iam").create_role
method.
boto3 documentation
# create_role method definition
def create_role(
self,
*,
RoleName: str,
AssumeRolePolicyDocument: str,
Path: str = ...,
Description: str = ...,
MaxSessionDuration: int = ...,
PermissionsBoundary: str = ...,
Tags: Sequence[TagTypeDef] = ..., # (1)
) -> Role:
...
- See TagTypeDef
# create_role method usage example with argument unpacking
kwargs: CreateRoleRequestServiceResourceCreateRoleTypeDef = { # (1)
"RoleName": ...,
"AssumeRolePolicyDocument": ...,
}
parent.create_role(**kwargs)
IAMServiceResource.create_saml_provider method#
Creates an IAM resource that describes an identity provider (IdP) that supports SAML 2.0.
Type annotations and code completion for boto3.resource("iam").create_saml_provider
method.
boto3 documentation
# create_saml_provider method definition
def create_saml_provider(
self,
*,
SAMLMetadataDocument: str,
Name: str,
Tags: Sequence[TagTypeDef] = ..., # (1)
) -> SamlProvider:
...
- See TagTypeDef
# create_saml_provider method usage example with argument unpacking
kwargs: CreateSAMLProviderRequestServiceResourceCreateSamlProviderTypeDef = { # (1)
"SAMLMetadataDocument": ...,
"Name": ...,
}
parent.create_saml_provider(**kwargs)
IAMServiceResource.create_server_certificate method#
Uploads a server certificate entity for the Amazon Web Services account.
Type annotations and code completion for boto3.resource("iam").create_server_certificate
method.
boto3 documentation
# create_server_certificate method definition
def create_server_certificate(
self,
*,
ServerCertificateName: str,
CertificateBody: str,
PrivateKey: str,
Path: str = ...,
CertificateChain: str = ...,
Tags: Sequence[TagTypeDef] = ..., # (1)
) -> ServerCertificate:
...
- See TagTypeDef
# create_server_certificate method usage example with argument unpacking
kwargs: UploadServerCertificateRequestServiceResourceCreateServerCertificateTypeDef = { # (1)
"ServerCertificateName": ...,
"CertificateBody": ...,
"PrivateKey": ...,
}
parent.create_server_certificate(**kwargs)
IAMServiceResource.create_signing_certificate method#
Uploads an X.509 signing certificate and associates it with the specified IAM user.
Type annotations and code completion for boto3.resource("iam").create_signing_certificate
method.
boto3 documentation
# create_signing_certificate method definition
def create_signing_certificate(
self,
*,
CertificateBody: str,
UserName: str = ...,
) -> SigningCertificate:
...
# create_signing_certificate method usage example with argument unpacking
kwargs: UploadSigningCertificateRequestServiceResourceCreateSigningCertificateTypeDef = { # (1)
"CertificateBody": ...,
}
parent.create_signing_certificate(**kwargs)
IAMServiceResource.create_user method#
Creates a new IAM user for your Amazon Web Services account.
Type annotations and code completion for boto3.resource("iam").create_user
method.
boto3 documentation
# create_user method definition
def create_user(
self,
*,
UserName: str,
Path: str = ...,
PermissionsBoundary: str = ...,
Tags: Sequence[TagTypeDef] = ..., # (1)
) -> User:
...
- See TagTypeDef
# create_user method usage example with argument unpacking
kwargs: CreateUserRequestServiceResourceCreateUserTypeDef = { # (1)
"UserName": ...,
}
parent.create_user(**kwargs)
IAMServiceResource.create_virtual_mfa_device method#
Creates a new virtual MFA device for the Amazon Web Services account.
Type annotations and code completion for boto3.resource("iam").create_virtual_mfa_device
method.
boto3 documentation
# create_virtual_mfa_device method definition
def create_virtual_mfa_device(
self,
*,
VirtualMFADeviceName: str,
Path: str = ...,
Tags: Sequence[TagTypeDef] = ..., # (1)
) -> VirtualMfaDevice:
...
- See TagTypeDef
# create_virtual_mfa_device method usage example with argument unpacking
kwargs: CreateVirtualMFADeviceRequestServiceResourceCreateVirtualMfaDeviceTypeDef = { # (1)
"VirtualMFADeviceName": ...,
}
parent.create_virtual_mfa_device(**kwargs)
IAMServiceResource.get_available_subresources method#
Returns a list of all the available sub-resources for this Resource.
Type annotations and code completion for boto3.resource("iam").get_available_subresources
method.
boto3 documentation
# get_available_subresources method definition
def get_available_subresources(
self,
) -> Sequence[str]:
...
AccessKey#
Type annotations and code completion for boto3.resource("iam").AccessKey
class.
boto3 documentation
# AccessKey usage example
from mypy_boto3_iam.service_resource import AccessKey
def get_resource() -> AccessKey:
return boto3.resource("iam").AccessKey(...)
AccessKey attributes#
access_key_id
:str
status
: statusTypeTypecreate_date
:datetime
user_name
:str
id
:str
AccessKey methods#
AccessKey.User method#
Creates a User resource.
Type annotations and code completion for boto3.resource("iam").User
method.
boto3 documentation
# User method definition
def User(
self,
) -> User:
...
AccessKey.activate method#
Changes the status of the specified access key from Active to Inactive, or vice versa.
Type annotations and code completion for boto3.resource("iam").activate
method.
boto3 documentation
# activate method definition
def activate(
self,
*,
Status: statusTypeType = 'Active', # (1)
) -> None:
...
- See statusTypeType
# activate method usage example with argument unpacking
kwargs: UpdateAccessKeyRequestAccessKeyActivateTypeDef = { # (1)
"Status": ...,
}
parent.activate(**kwargs)
AccessKey.deactivate method#
Changes the status of the specified access key from Active to Inactive, or vice versa.
Type annotations and code completion for boto3.resource("iam").deactivate
method.
boto3 documentation
# deactivate method definition
def deactivate(
self,
*,
Status: statusTypeType = 'Inactive', # (1)
) -> None:
...
- See statusTypeType
# deactivate method usage example with argument unpacking
kwargs: UpdateAccessKeyRequestAccessKeyDeactivateTypeDef = { # (1)
"Status": ...,
}
parent.deactivate(**kwargs)
AccessKey.delete method#
Deletes the access key pair associated with the specified IAM user.
Type annotations and code completion for boto3.resource("iam").delete
method.
boto3 documentation
# delete method definition
def delete(
self,
) -> None:
...
AccessKey.get_available_subresources method#
Returns a list of all the available sub-resources for this Resource.
Type annotations and code completion for boto3.resource("iam").get_available_subresources
method.
boto3 documentation
# get_available_subresources method definition
def get_available_subresources(
self,
) -> Sequence[str]:
...
AccessKeyPair#
Type annotations and code completion for boto3.resource("iam").AccessKeyPair
class.
boto3 documentation
# AccessKeyPair usage example
from mypy_boto3_iam.service_resource import AccessKeyPair
def get_resource() -> AccessKeyPair:
return boto3.resource("iam").AccessKeyPair(...)
AccessKeyPair attributes#
access_key_id
:str
status
: statusTypeTypesecret_access_key
:str
create_date
:datetime
user_name
:str
id
:str
secret
:str
AccessKeyPair methods#
AccessKeyPair.activate method#
Changes the status of the specified access key from Active to Inactive, or vice versa.
Type annotations and code completion for boto3.resource("iam").activate
method.
boto3 documentation
# activate method definition
def activate(
self,
*,
Status: statusTypeType = 'Active', # (1)
) -> None:
...
- See statusTypeType
# activate method usage example with argument unpacking
kwargs: UpdateAccessKeyRequestAccessKeyPairActivateTypeDef = { # (1)
"Status": ...,
}
parent.activate(**kwargs)
AccessKeyPair.deactivate method#
Changes the status of the specified access key from Active to Inactive, or vice versa.
Type annotations and code completion for boto3.resource("iam").deactivate
method.
boto3 documentation
# deactivate method definition
def deactivate(
self,
*,
Status: statusTypeType = 'Inactive', # (1)
) -> None:
...
- See statusTypeType
# deactivate method usage example with argument unpacking
kwargs: UpdateAccessKeyRequestAccessKeyPairDeactivateTypeDef = { # (1)
"Status": ...,
}
parent.deactivate(**kwargs)
AccessKeyPair.delete method#
Deletes the access key pair associated with the specified IAM user.
Type annotations and code completion for boto3.resource("iam").delete
method.
boto3 documentation
# delete method definition
def delete(
self,
) -> None:
...
AccessKeyPair.get_available_subresources method#
Returns a list of all the available sub-resources for this Resource.
Type annotations and code completion for boto3.resource("iam").get_available_subresources
method.
boto3 documentation
# get_available_subresources method definition
def get_available_subresources(
self,
) -> Sequence[str]:
...
AccountPasswordPolicy#
Type annotations and code completion for boto3.resource("iam").AccountPasswordPolicy
class.
boto3 documentation
# AccountPasswordPolicy usage example
from mypy_boto3_iam.service_resource import AccountPasswordPolicy
def get_resource() -> AccountPasswordPolicy:
return boto3.resource("iam").AccountPasswordPolicy(...)
AccountPasswordPolicy attributes#
minimum_password_length
:int
require_symbols
:bool
require_numbers
:bool
require_uppercase_characters
:bool
require_lowercase_characters
:bool
allow_users_to_change_password
:bool
expire_passwords
:bool
max_password_age
:int
password_reuse_prevention
:int
hard_expiry
:bool
AccountPasswordPolicy methods#
AccountPasswordPolicy.delete method#
Deletes the password policy for the Amazon Web Services account.
Type annotations and code completion for boto3.resource("iam").delete
method.
boto3 documentation
# delete method definition
def delete(
self,
) -> None:
...
AccountPasswordPolicy.get_available_subresources method#
Returns a list of all the available sub-resources for this Resource.
Type annotations and code completion for boto3.resource("iam").get_available_subresources
method.
boto3 documentation
# get_available_subresources method definition
def get_available_subresources(
self,
) -> Sequence[str]:
...
AccountPasswordPolicy.load method#
Calls meth:
IAM.Client.get_account_password_policy
to update the attributes
of the AccountPasswordPolicy resource.
Type annotations and code completion for boto3.resource("iam").load
method.
boto3 documentation
# load method definition
def load(
self,
) -> None:
...
AccountPasswordPolicy.reload method#
Calls meth:
IAM.Client.get_account_password_policy
to update the attributes
of the AccountPasswordPolicy resource.
Type annotations and code completion for boto3.resource("iam").reload
method.
boto3 documentation
# reload method definition
def reload(
self,
) -> None:
...
AccountPasswordPolicy.update method#
Updates the password policy settings for the Amazon Web Services account.
Type annotations and code completion for boto3.resource("iam").update
method.
boto3 documentation
# update method definition
def update(
self,
*,
MinimumPasswordLength: int = ...,
RequireSymbols: bool = ...,
RequireNumbers: bool = ...,
RequireUppercaseCharacters: bool = ...,
RequireLowercaseCharacters: bool = ...,
AllowUsersToChangePassword: bool = ...,
MaxPasswordAge: int = ...,
PasswordReusePrevention: int = ...,
HardExpiry: bool = ...,
) -> None:
...
# update method usage example with argument unpacking
kwargs: UpdateAccountPasswordPolicyRequestAccountPasswordPolicyUpdateTypeDef = { # (1)
"MinimumPasswordLength": ...,
}
parent.update(**kwargs)
AccountSummary#
Type annotations and code completion for boto3.resource("iam").AccountSummary
class.
boto3 documentation
# AccountSummary usage example
from mypy_boto3_iam.service_resource import AccountSummary
def get_resource() -> AccountSummary:
return boto3.resource("iam").AccountSummary(...)
AccountSummary attributes#
summary_map
:Dict
[summaryKeyTypeType,int
]
AccountSummary methods#
AccountSummary.get_available_subresources method#
Returns a list of all the available sub-resources for this Resource.
Type annotations and code completion for boto3.resource("iam").get_available_subresources
method.
boto3 documentation
# get_available_subresources method definition
def get_available_subresources(
self,
) -> Sequence[str]:
...
AccountSummary.load method#
Calls meth:
IAM.Client.get_account_summary
to update the attributes of the
AccountSummary resource.
Type annotations and code completion for boto3.resource("iam").load
method.
boto3 documentation
# load method definition
def load(
self,
) -> None:
...
AccountSummary.reload method#
Calls meth:
IAM.Client.get_account_summary
to update the attributes of the
AccountSummary resource.
Type annotations and code completion for boto3.resource("iam").reload
method.
boto3 documentation
# reload method definition
def reload(
self,
) -> None:
...
AssumeRolePolicy#
Type annotations and code completion for boto3.resource("iam").AssumeRolePolicy
class.