Skip to content

Get Parameter

ssm_get_parameter R Documentation

Get information about a single parameter by specifying the parameter name

Description

Get information about a single parameter by specifying the parameter name.

To get information about more than one parameter at a time, use the get_parameters operation.

Usage

ssm_get_parameter(Name, WithDecryption)

Arguments

Name

[required] The name or Amazon Resource Name (ARN) of the parameter that you want to query. For parameters shared with you from another account, you must use the full ARN.

To query by parameter label, use "Name": "name:label". To query by parameter version, use "Name": "name:version".

For more information about shared parameters, see Working with shared parameters in the Amazon Web Services Systems Manager User Guide.

WithDecryption

Return decrypted values for secure string parameters. This flag is ignored for String and StringList parameter types.

Value

A list with the following syntax:

list(
  Parameter = list(
    Name = "string",
    Type = "String"|"StringList"|"SecureString",
    Value = "string",
    Version = 123,
    Selector = "string",
    SourceResult = "string",
    LastModifiedDate = as.POSIXct(
      "2015-01-01"
    ),
    ARN = "string",
    DataType = "string"
  )
)

Request syntax

svc$get_parameter(
  Name = "string",
  WithDecryption = TRUE|FALSE
)