Skip to content

SSMClient.put_parameter

rboto-ssm==0.4.0 · Service index · Types

Model summary (excerpt): Create or update a parameter in Parameter Store. Parameter Store throughput defines the number of API transactions per second (TPS) that Systems Manager can process. This applies to GetParameter , GetParameters , and PutParameter API calls for your Amazon Web Services account and Amazon Web Services Region. By default, Parameter Store is configured with a standard throughput quota suitable for...

Install and imports

python -m pip install "rboto[ssm]==0.4.0"
from rboto import SSMClient
from collections.abc import Sequence
from rboto_ssm.types import (
    ParameterTier,
    ParameterType,
    PutParameterOutput,
    Tag,
)

Signature

async def put_parameter(
    *,
    name: str,
    value: str,
    description: str | None = None,
    type: ParameterType | None = None,
    key_id: str | None = None,
    overwrite: bool | None = None,
    allowed_pattern: str | None = None,
    tags: Sequence[Tag] | None = None,
    tier: ParameterTier | None = None,
    policies: str | None = None,
    data_type: str | None = None,
) -> PutParameterOutput: ...

Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.

Arguments

Argument Required Model notes (excerpt)
name Yes The fully qualified name of the parameter that you want to create or update. You can't enter the Amazon Resource Name (ARN) for a parameter, only the parameter name itself. The fully qualified name includes the complete hierarchy of the parameter path and name. For parameters in a hierarchy, you must include a leading forward slash character (/) when you create or reference a parameter. For...
value Yes The parameter value that you want to add to the system. Standard parameters have a value limit of 4 KB. Advanced parameters have a value limit of 8 KB. Parameters can't be referenced or nested in the values of other parameters. You can't include values wrapped in double brackets {{}} or {{ssm: parameter-name }} in a parameter value.
description No Information about the parameter that you want to add to the system. Optional but recommended. Don't enter personally identifiable information in this field.
type No The type of parameter that you want to create. SecureString isn't currently supported for CloudFormation templates. Items in a StringList must be separated by a comma (,). You can't use other punctuation or special character to escape items in the list. If you have a parameter value that requires a comma, then use the String data type. Specifying a parameter type isn't required when updating a...
key_id No The Key Management Service (KMS) ID that you want to use to encrypt a parameter. Use a custom key for better security. Required for parameters that use the SecureString data type. If you don't specify a key ID, the system uses the default key associated with your Amazon Web Services account, which is not as secure as using a custom key. To use a custom KMS key, choose the SecureString data...
overwrite No Overwrite an existing parameter. The default value is false .
allowed_pattern No A regular expression used to validate the parameter value. For example, for String types with values restricted to numbers, you can specify the following: AllowedPattern=^\d+$
tags No Optional metadata that you assign to a resource. Tags enable you to categorize a resource in different ways, such as by purpose, owner, or environment. For example, you might want to tag a Systems Manager parameter to identify the type of resource to which it applies, the environment, or the type of configuration data referenced by the parameter. In this case, you could specify the following...
tier No The parameter tier to assign to a parameter. Parameter Store offers a standard tier and an advanced tier for parameters. Standard parameters have a content size limit of 4 KB and can't be configured to use parameter policies. You can create a maximum of 10,000 standard parameters for each Region in an Amazon Web Services account. Standard parameters are offered at no additional cost. Advanced...
policies No One or more policies to apply to a parameter. This operation takes a JSON array. Parameter Store, a tool in Amazon Web Services Systems Manager supports the following policy types: Expiration: This policy deletes the parameter after it expires. When you create the policy, you specify the expiration date. You can update the expiration date and time by updating the policy. Updating the parameter...
data_type No The data type of the parameter value. Parameter Store validates the value against the data type when you create or update the parameter. The default is text , which performs no validation. The following data type values are supported. text aws:ec2:image aws:ssm:integration aws:region aws:account:id boolean integer float binary hostname email ipv4-address ipv6-address url json jsonc For more...

Output

PutParameterOutput.

Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.

Field Type Presence References
version int Always present —
tier ParameterTierOutput | None Always present ParameterTierOutput

| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.

ParameterTier, ParameterType, PutParameterOutput, Tag

Follow these links for nested inputs and outputs; recursive types link back to the same type page.

Pagination and streaming

No generated paginator for this operation.

No output stream.

Errors

Import from rboto_ssm.exceptions:

HierarchyLevelLimitExceededError, HierarchyTypeMismatchError, IncompatiblePolicyError, InternalServerError, InvalidAllowedPatternError, InvalidKeyIdError, InvalidPolicyAttributeError, InvalidPolicyTypeError, ParameterAlreadyExistsError, ParameterLimitExceededError, ParameterMaxVersionLimitExceededError, ParameterPatternMismatchError, PoliciesLimitExceededError, TooManyUpdatesError, UnsupportedParameterTypeError.

Other service failures use the service base error; credential, transport and timeout failures use shared errors.

Service guide · Pinned model