Skip to content

GlacierServiceResource#

Index > Glacier > 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

# GlacierServiceResource usage example

from mypy_boto3_glacier.service_resource import GlacierServiceResource

def get_glacier_resource() -> GlacierServiceResource:
    return boto3.resource("glacier")

Attributes#

Collections#

ServiceResourceVaultsCollection#

Provides access to Vault resource.

Type annotations and code completion for boto3.resource("glacier").vaults collection. boto3 documentation

# ServiceResourceVaultsCollection usage example

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

# Account method definition

def Account(
    self,
    id: str,
) -> Account:
    ...

GlacierServiceResource.Archive method#

Creates a Archive resource.

Type annotations and code completion for boto3.resource("glacier").Archive method. boto3 documentation

# Archive method definition

def Archive(
    self,
    account_id: str,
    vault_name: str,
    id: str,
) -> Archive:
    ...

GlacierServiceResource.Job method#

Creates a Job resource.

Type annotations and code completion for boto3.resource("glacier").Job method. boto3 documentation

# Job method definition

def Job(
    self,
    account_id: str,
    vault_name: str,
    id: str,
) -> Job:
    ...

GlacierServiceResource.MultipartUpload method#

Creates a MultipartUpload resource.

Type annotations and code completion for boto3.resource("glacier").MultipartUpload method. boto3 documentation

# MultipartUpload method definition

def MultipartUpload(
    self,
    account_id: str,
    vault_name: str,
    id: str,
) -> MultipartUpload:
    ...

GlacierServiceResource.Notification method#

Creates a Notification resource.

Type annotations and code completion for boto3.resource("glacier").Notification method. boto3 documentation

# Notification method definition

def Notification(
    self,
    account_id: str,
    vault_name: str,
) -> Notification:
    ...

GlacierServiceResource.Vault method#

Creates a Vault resource.

Type annotations and code completion for boto3.resource("glacier").Vault method. boto3 documentation

# Vault method definition

def Vault(
    self,
    account_id: str,
    name: str,
) -> Vault:
    ...

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

# create_vault method definition

def create_vault(
    self,
    *,
    vaultName: str,
    accountId: str = '-',
) -> Vault:
    ...
# create_vault method usage example with argument unpacking

kwargs: CreateVaultInputServiceResourceCreateVaultTypeDef = {  # (1)
    "vaultName": ...,
}

parent.create_vault(**kwargs)
  1. See CreateVaultInputServiceResourceCreateVaultTypeDef

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.