GlacierServiceResource
Auto-generated documentation for Glacier type annotations stubs module mypy-boto3-glacier.
GlacierServiceResource
Type annotations and code completion for boto3.resource("glacier"), included resources and collections.
boto3 documentation
from mypy_boto3_glacier.service_resource import GlacierServiceResource
def get_glacier_resource() -> GlacierServiceResource:
return boto3.resource("glacier")
Attributes
-
meta: GlacierResourceMeta -
vaults: ServiceResourceVaultsCollection
Collections
ServiceResourceVaultsCollection
Provides access to Vault resource.
Type annotations and code completion for boto3.resource("glacier").vaults collection.
boto3 documentation
from mypy_boto3_glacier.service_resource import ServiceResourceVaultsCollection
def get_collection() -> ServiceResourceVaultsCollection:
return boto3.resource("glacier").vaults
Methods
GlacierServiceResource.Account method
Creates a Account resource.
Type annotations and code completion for boto3.resource("glacier").Account method.
boto3 documentation
kwargs: ServiceResourceAccountRequestTypeDef = { # (1)
"id": ...,
}
parent.Account(**kwargs)
GlacierServiceResource.Archive method
Creates a Archive resource.
Type annotations and code completion for boto3.resource("glacier").Archive method.
boto3 documentation
kwargs: ServiceResourceArchiveRequestTypeDef = { # (1)
"account_id": ...,
"vault_name": ...,
"id": ...,
}
parent.Archive(**kwargs)
GlacierServiceResource.Job method
Creates a Job resource.
Type annotations and code completion for boto3.resource("glacier").Job method.
boto3 documentation
kwargs: ServiceResourceJobRequestTypeDef = { # (1)
"account_id": ...,
"vault_name": ...,
"id": ...,
}
parent.Job(**kwargs)
GlacierServiceResource.MultipartUpload method
Creates a MultipartUpload resource.
Type annotations and code completion for boto3.resource("glacier").MultipartUpload method.
boto3 documentation
def MultipartUpload(
self,
account_id: str,
vault_name: str,
id: str,
) -> MultipartUpload:
...
kwargs: ServiceResourceMultipartUploadRequestTypeDef = { # (1)
"account_id": ...,
"vault_name": ...,
"id": ...,
}
parent.MultipartUpload(**kwargs)
GlacierServiceResource.Notification method
Creates a Notification resource.
Type annotations and code completion for boto3.resource("glacier").Notification method.
boto3 documentation
kwargs: ServiceResourceNotificationRequestTypeDef = { # (1)
"account_id": ...,
"vault_name": ...,
}
parent.Notification(**kwargs)
GlacierServiceResource.Vault method
Creates a Vault resource.
Type annotations and code completion for boto3.resource("glacier").Vault method.
boto3 documentation
kwargs: ServiceResourceVaultRequestTypeDef = { # (1)
"account_id": ...,
"name": ...,
}
parent.Vault(**kwargs)
GlacierServiceResource.create_vault method
This operation creates a new vault with the specified name.
Type annotations and code completion for boto3.resource("glacier").create_vault method.
boto3 documentation
kwargs: CreateVaultInputServiceResourceCreateVaultTypeDef = { # (1)
"vaultName": ...,
}
parent.create_vault(**kwargs)
GlacierServiceResource.get_available_subresources method
Returns a list of all the available sub-resources for this Resource.
Type annotations and code completion for boto3.resource("glacier").get_available_subresources method.
boto3 documentation
Account
Type annotations and code completion for boto3.resource("glacier").Account class.
boto3 documentation
from mypy_boto3_glacier.service_resource import Account
def get_resource() -> Account:
return boto3.resource("glacier").Account(...)
Account attributes
id:strvaults: AccountVaultsCollection
Account collections
Account.vaults
Provides access to Vault resource.
Type annotations and code completion for boto3.resource("glacier").Account(...).vaults collection.
boto3 documentation
from mypy_boto3_glacier.service_resource import AccountVaultsCollection
def get_collection() -> AccountVaultsCollection:
resource = boto3.resource("glacier").Account(...)
return resource.vaults
Account methods
Account.Vault method
Creates a Vault resource.
Type annotations and code completion for boto3.resource("glacier").Vault method.
boto3 documentation
kwargs: AccountVaultRequestTypeDef = { # (1)
"name": ...,
}
parent.Vault(**kwargs)
Account.create_vault method
This operation creates a new vault with the specified name.
Type annotations and code completion for boto3.resource("glacier").create_vault method.
boto3 documentation
kwargs: CreateVaultInputAccountCreateVaultTypeDef = { # (1)
"vaultName": ...,
}
parent.create_vault(**kwargs)
Account.get_available_subresources method
Returns a list of all the available sub-resources for this Resource.
Type annotations and code completion for boto3.resource("glacier").get_available_subresources method.
boto3 documentation
Archive
Type annotations and code completion for boto3.resource("glacier").Archive class.
boto3 documentation
from mypy_boto3_glacier.service_resource import Archive
def get_resource() -> Archive:
return boto3.resource("glacier").Archive(...)
Archive attributes
account_id:strvault_name:strid:str
Archive methods
Archive.Vault method
Creates a Vault resource.
Type annotations and code completion for boto3.resource("glacier").Vault method.
boto3 documentation
Archive.delete method
This operation deletes an archive from a vault.
Type annotations and code completion for boto3.resource("glacier").delete method.
boto3 documentation
Archive.get_available_subresources method
Returns a list of all the available sub-resources for this Resource.
Type annotations and code completion for boto3.resource("glacier").get_available_subresources method.
boto3 documentation
Archive.initiate_archive_retrieval method
This operation initiates a job of the specified type, which can be a select, an archival retrieval, or a vault retrieval.
Type annotations and code completion for boto3.resource("glacier").initiate_archive_retrieval method.
boto3 documentation
Job
Type annotations and code completion for boto3.resource("glacier").Job class.
boto3 documentation
from mypy_boto3_glacier.service_resource import Job
def get_resource() -> Job:
return boto3.resource("glacier").Job(...)
Job attributes
job_id:strjob_description:straction: ActionCodeTypearchive_id:strvault_arn:strcreation_date:strcompleted:boolstatus_code: StatusCodeTypestatus_message:strarchive_size_in_bytes:intinventory_size_in_bytes:intsns_topic:strcompletion_date:strsha256_tree_hash:strarchive_sha256_tree_hash:strretrieval_byte_range:strtier:strinventory_retrieval_parameters: InventoryRetrievalJobDescriptionResponseMetadataTypeDefjob_output_path:strselect_parameters: SelectParametersResponseMetadataTypeDefoutput_location: OutputLocationResponseMetadataTypeDefaccount_id:strvault_name:strid:str
Job methods
Job.Vault method
Creates a Vault resource.
Type annotations and code completion for boto3.resource("glacier").Vault method.
boto3 documentation
Job.get_available_subresources method
Returns a list of all the available sub-resources for this Resource.
Type annotations and code completion for boto3.resource("glacier").get_available_subresources method.
boto3 documentation
Job.get_output method
This operation downloads the output of the job you initiated using InitiateJob.
Type annotations and code completion for boto3.resource("glacier").get_output method.
boto3 documentation
def get_output(
self,
*,
range: str = ...,
) -> GetJobOutputOutputTypeDef: # (1)
...
kwargs: GetJobOutputInputJobGetOutputTypeDef = { # (1)
"range": ...,
}
parent.get_output(**kwargs)
Job.load method
Calls meth:
Glacier.Client.describe_job to update the attributes of the Job
resource.
Type annotations and code completion for boto3.resource("glacier").load method.
boto3 documentation
Job.reload method
Calls meth:
Glacier.Client.describe_job to update the attributes of the Job
resource.
Type annotations and code completion for boto3.resource("glacier").reload method.
boto3 documentation
MultipartUpload
Type annotations and code completion for boto3.resource("glacier").MultipartUpload class.
boto3 documentation
from mypy_boto3_glacier.service_resource import MultipartUpload
def get_resource() -> MultipartUpload:
return boto3.resource("glacier").MultipartUpload(...)
MultipartUpload attributes
multipart_upload_id:strvault_arn:strarchive_description:strpart_size_in_bytes:intcreation_date:straccount_id:strvault_name:strid:str
MultipartUpload methods
MultipartUpload.Vault method
Creates a Vault resource.
Type annotations and code completion for boto3.resource("glacier").Vault method.
boto3 documentation
MultipartUpload.abort method
This operation aborts a multipart upload identified by the upload ID.
Type annotations and code completion for boto3.resource("glacier").abort method.
boto3 documentation
MultipartUpload.complete method
You call this operation to inform Amazon S3 Glacier (Glacier) that all the archive parts have been uploaded and that Glacier can now assemble the archive from the uploaded parts.
Type annotations and code completion for boto3.resource("glacier").complete method.
boto3 documentation
def complete(
self,
*,
archiveSize: str = ...,
checksum: str = ...,
) -> ArchiveCreationOutputTypeDef: # (1)
...
kwargs: CompleteMultipartUploadInputMultipartUploadCompleteTypeDef = { # (1)
"archiveSize": ...,
}
parent.complete(**kwargs)
MultipartUpload.get_available_subresources method
Returns a list of all the available sub-resources for this Resource.
Type annotations and code completion for boto3.resource("glacier").get_available_subresources method.
boto3 documentation
MultipartUpload.parts method
This operation lists the parts of an archive that have been uploaded in a specific multipart upload.
Type annotations and code completion for boto3.resource("glacier").parts method.
boto3 documentation
def parts(
self,
*,
marker: str = ...,
limit: str = ...,
) -> ListPartsOutputTypeDef: # (1)
...
kwargs: ListPartsInputMultipartUploadPartsTypeDef = { # (1)
"marker": ...,
}
parent.parts(**kwargs)
MultipartUpload.upload_part method
This operation uploads a part of an archive.
Type annotations and code completion for boto3.resource("glacier").upload_part method.
boto3 documentation
def upload_part(
self,
*,
checksum: str = ...,
range: str = ...,
body: Union[str, bytes, IO[Any], StreamingBody] = ...,
) -> UploadMultipartPartOutputTypeDef: # (1)
...
kwargs: UploadMultipartPartInputMultipartUploadUploadPartTypeDef = { # (1)
"checksum": ...,
}
parent.upload_part(**kwargs)
Notification
Type annotations and code completion for boto3.resource("glacier").Notification class.
boto3 documentation
from mypy_boto3_glacier.service_resource import Notification
def get_resource() -> Notification:
return boto3.resource("glacier").Notification(...)
Notification attributes
sns_topic:strevents:List[str]account_id:strvault_name:str
Notification methods
Notification.Vault method
Creates a Vault resource.
Type annotations and code completion for boto3.resource("glacier").Vault method.
boto3 documentation
Notification.delete method
This operation deletes the notification configuration set for a vault.
Type annotations and code completion for boto3.resource("glacier").delete method.
boto3 documentation
Notification.get_available_subresources method
Returns a list of all the available sub-resources for this Resource.
Type annotations and code completion for boto3.resource("glacier").get_available_subresources method.
boto3 documentation
Notification.load method
Calls meth:
Glacier.Client.get_vault_notifications to update the attributes
of the Notification resource.
Type annotations and code completion for boto3.resource("glacier").load method.
boto3 documentation
Notification.reload method
Calls meth:
Glacier.Client.get_vault_notifications to update the attributes
of the Notification resource.
Type annotations and code completion for boto3.resource("glacier").reload method.
boto3 documentation
Notification.set method
This operation configures notifications that will be sent when specific events happen to a vault.
Type annotations and code completion for boto3.resource("glacier").set method.
boto3 documentation
def set(
self,
*,
vaultNotificationConfig: VaultNotificationConfigTypeDef = ..., # (1)
) -> None:
...
kwargs: SetVaultNotificationsInputNotificationSetTypeDef = { # (1)
"vaultNotificationConfig": ...,
}
parent.set(**kwargs)
Vault
Type annotations and code completion for boto3.resource("glacier").Vault class.
boto3 documentation
from mypy_boto3_glacier.service_resource import Vault
def get_resource() -> Vault:
return boto3.resource("glacier").Vault(...)
Vault attributes
vault_arn:strvault_name:strcreation_date:strlast_inventory_date:strnumber_of_archives:intsize_in_bytes:intaccount_id:strname:strcompleted_jobs: VaultCompletedJobsCollectionfailed_jobs: VaultFailedJobsCollectionjobs: VaultJobsCollectionjobs_in_progress: VaultJobsInProgressCollectionmultipart_uplaods: VaultMultipartUplaodsCollectionmultipart_uploads: VaultMultipartUploadsCollectionsucceeded_jobs: VaultSucceededJobsCollection
Vault collections
Vault.completed_jobs
Provides access to Job resource.
Type annotations and code completion for boto3.resource("glacier").Vault(...).completed_jobs collection.
boto3 documentation
from mypy_boto3_glacier.service_resource import VaultCompletedJobsCollection
def get_collection() -> VaultCompletedJobsCollection:
resource = boto3.resource("glacier").Vault(...)
return resource.completed_jobs
Vault.failed_jobs
Provides access to Job resource.
Type annotations and code completion for boto3.resource("glacier").Vault(...).failed_jobs collection.
boto3 documentation
from mypy_boto3_glacier.service_resource import VaultFailedJobsCollection
def get_collection() -> VaultFailedJobsCollection:
resource = boto3.resource("glacier").Vault(...)
return resource.failed_jobs
Vault.jobs
Provides access to Job resource.
Type annotations and code completion for boto3.resource("glacier").Vault(...).jobs collection.
boto3 documentation
from mypy_boto3_glacier.service_resource import VaultJobsCollection
def get_collection() -> VaultJobsCollection:
resource = boto3.resource("glacier").Vault(...)
return resource.jobs
Vault.jobs_in_progress
Provides access to Job resource.
Type annotations and code completion for boto3.resource("glacier").Vault(...).jobs_in_progress collection.
boto3 documentation
from mypy_boto3_glacier.service_resource import VaultJobsInProgressCollection
def get_collection() -> VaultJobsInProgressCollection:
resource = boto3.resource("glacier").Vault(...)
return resource.jobs_in_progress
Vault.multipart_uplaods
Provides access to MultipartUpload resource.
Type annotations and code completion for boto3.resource("glacier").Vault(...).multipart_uplaods collection.
boto3 documentation
from mypy_boto3_glacier.service_resource import VaultMultipartUplaodsCollection
def get_collection() -> VaultMultipartUplaodsCollection:
resource = boto3.resource("glacier").Vault(...)
return resource.multipart_uplaods
Vault.multipart_uploads
Provides access to MultipartUpload resource.
Type annotations and code completion for boto3.resource("glacier").Vault(...).multipart_uploads collection.
boto3 documentation
from mypy_boto3_glacier.service_resource import VaultMultipartUploadsCollection
def get_collection() -> VaultMultipartUploadsCollection:
resource = boto3.resource("glacier").Vault(...)
return resource.multipart_uploads
Vault.succeeded_jobs
Provides access to Job resource.
Type annotations and code completion for boto3.resource("glacier").Vault(...).succeeded_jobs collection.
boto3 documentation
from mypy_boto3_glacier.service_resource import VaultSucceededJobsCollection
def get_collection() -> VaultSucceededJobsCollection:
resource = boto3.resource("glacier").Vault(...)
return resource.succeeded_jobs
Vault methods
Vault.Account method
Creates a Account resource.
Type annotations and code completion for boto3.resource("glacier").Account method.
boto3 documentation
Vault.Archive method
Creates a Archive resource.
Type annotations and code completion for boto3.resource("glacier").Archive method.
boto3 documentation
kwargs: VaultArchiveRequestTypeDef = { # (1)
"id": ...,
}
parent.Archive(**kwargs)
Vault.Job method
Creates a Job resource.
Type annotations and code completion for boto3.resource("glacier").Job method.
boto3 documentation
Vault.MultipartUpload method
Creates a MultipartUpload resource.
Type annotations and code completion for boto3.resource("glacier").MultipartUpload method.
boto3 documentation
kwargs: VaultMultipartUploadRequestTypeDef = { # (1)
"id": ...,
}
parent.MultipartUpload(**kwargs)
Vault.Notification method
Creates a Notification resource.
Type annotations and code completion for boto3.resource("glacier").Notification method.
boto3 documentation
Vault.create method
This operation creates a new vault with the specified name.
Type annotations and code completion for boto3.resource("glacier").create method.
boto3 documentation
Vault.delete method
This operation deletes a vault.
Type annotations and code completion for boto3.resource("glacier").delete method.
boto3 documentation
Vault.get_available_subresources method
Returns a list of all the available sub-resources for this Resource.
Type annotations and code completion for boto3.resource("glacier").get_available_subresources method.
boto3 documentation
Vault.initiate_inventory_retrieval method
This operation initiates a job of the specified type, which can be a select, an archival retrieval, or a vault retrieval.
Type annotations and code completion for boto3.resource("glacier").initiate_inventory_retrieval method.
boto3 documentation
Vault.initiate_multipart_upload method
This operation initiates a multipart upload.
Type annotations and code completion for boto3.resource("glacier").initiate_multipart_upload method.
boto3 documentation
def initiate_multipart_upload(
self,
*,
archiveDescription: str = ...,
partSize: str = ...,
) -> MultipartUpload:
...
kwargs: InitiateMultipartUploadInputVaultInitiateMultipartUploadTypeDef = { # (1)
"archiveDescription": ...,
}
parent.initiate_multipart_upload(**kwargs)
Vault.load method
Calls meth:
Glacier.Client.describe_vault to update the attributes of the
Vault resource.
Type annotations and code completion for boto3.resource("glacier").load method.
boto3 documentation
Vault.reload method
Calls meth:
Glacier.Client.describe_vault to update the attributes of the
Vault resource.
Type annotations and code completion for boto3.resource("glacier").reload method.
boto3 documentation
Vault.upload_archive method
This operation adds an archive to a vault.
Type annotations and code completion for boto3.resource("glacier").upload_archive method.
boto3 documentation
def upload_archive(
self,
*,
archiveDescription: str = ...,
checksum: str = ...,
body: Union[str, bytes, IO[Any], StreamingBody] = ...,
) -> Archive:
...