We recommend new projects start with resources from the AWS provider.
aws-native.ssm.getParameter
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
The AWS::SSM::Parameter
resource creates an SSM parameter in SYSlong Parameter Store.
To create an SSM parameter, you must have the IAMlong (IAM) permissions ssm:PutParameter
and ssm:AddTagsToResource
. On stack creation, CFNlong adds the following three tags to the parameter: aws:cloudformation:stack-name
, aws:cloudformation:logical-id
, and aws:cloudformation:stack-id
, in addition to any custom tags you specify.
To add, update, or remove tags during stack update, you must have IAM permissions for both ssm:AddTagsToResource
and ssm:RemoveTagsFromResource
. For more information, see Managing Access Using Policies in the User Guide.
For information about valid values for parameters, see About requirements and constraints for parameter names in the User Guide and PutParameter in the API Reference.
Using getParameter
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getParameter(args: GetParameterArgs, opts?: InvokeOptions): Promise<GetParameterResult>
function getParameterOutput(args: GetParameterOutputArgs, opts?: InvokeOptions): Output<GetParameterResult>
def get_parameter(name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetParameterResult
def get_parameter_output(name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetParameterResult]
func LookupParameter(ctx *Context, args *LookupParameterArgs, opts ...InvokeOption) (*LookupParameterResult, error)
func LookupParameterOutput(ctx *Context, args *LookupParameterOutputArgs, opts ...InvokeOption) LookupParameterResultOutput
> Note: This function is named LookupParameter
in the Go SDK.
public static class GetParameter
{
public static Task<GetParameterResult> InvokeAsync(GetParameterArgs args, InvokeOptions? opts = null)
public static Output<GetParameterResult> Invoke(GetParameterInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetParameterResult> getParameter(GetParameterArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws-native:ssm:getParameter
arguments:
# arguments dictionary
The following arguments are supported:
- Name string
- The name of the parameter.
The maximum length constraint listed below includes capacity for additional system attributes that aren't part of the name. The maximum length for a parameter name, including the full length of the parameter Amazon Resource Name (ARN), is 1011 characters. For example, the length of the following parameter name is 65 characters, not 20 characters:
arn:aws:ssm:us-east-2:111222333444:parameter/ExampleParameterName
- Name string
- The name of the parameter.
The maximum length constraint listed below includes capacity for additional system attributes that aren't part of the name. The maximum length for a parameter name, including the full length of the parameter Amazon Resource Name (ARN), is 1011 characters. For example, the length of the following parameter name is 65 characters, not 20 characters:
arn:aws:ssm:us-east-2:111222333444:parameter/ExampleParameterName
- name String
- The name of the parameter.
The maximum length constraint listed below includes capacity for additional system attributes that aren't part of the name. The maximum length for a parameter name, including the full length of the parameter Amazon Resource Name (ARN), is 1011 characters. For example, the length of the following parameter name is 65 characters, not 20 characters:
arn:aws:ssm:us-east-2:111222333444:parameter/ExampleParameterName
- name string
- The name of the parameter.
The maximum length constraint listed below includes capacity for additional system attributes that aren't part of the name. The maximum length for a parameter name, including the full length of the parameter Amazon Resource Name (ARN), is 1011 characters. For example, the length of the following parameter name is 65 characters, not 20 characters:
arn:aws:ssm:us-east-2:111222333444:parameter/ExampleParameterName
- name str
- The name of the parameter.
The maximum length constraint listed below includes capacity for additional system attributes that aren't part of the name. The maximum length for a parameter name, including the full length of the parameter Amazon Resource Name (ARN), is 1011 characters. For example, the length of the following parameter name is 65 characters, not 20 characters:
arn:aws:ssm:us-east-2:111222333444:parameter/ExampleParameterName
- name String
- The name of the parameter.
The maximum length constraint listed below includes capacity for additional system attributes that aren't part of the name. The maximum length for a parameter name, including the full length of the parameter Amazon Resource Name (ARN), is 1011 characters. For example, the length of the following parameter name is 65 characters, not 20 characters:
arn:aws:ssm:us-east-2:111222333444:parameter/ExampleParameterName
getParameter Result
The following output properties are available:
- Data
Type Pulumi.Aws Native. Ssm. Parameter Data Type - The data type of the parameter, such as
text
oraws:ec2:image
. The default istext
. - Type
Pulumi.
Aws Native. Ssm. Parameter Type - The type of parameter.
- Value string
- The parameter value.
If type is
StringList
, the system returns a comma-separated string with no spaces between commas in theValue
field.
- Data
Type ParameterData Type - The data type of the parameter, such as
text
oraws:ec2:image
. The default istext
. - Type
Parameter
Type - The type of parameter.
- Value string
- The parameter value.
If type is
StringList
, the system returns a comma-separated string with no spaces between commas in theValue
field.
- data
Type ParameterData Type - The data type of the parameter, such as
text
oraws:ec2:image
. The default istext
. - type
Parameter
Type - The type of parameter.
- value String
- The parameter value.
If type is
StringList
, the system returns a comma-separated string with no spaces between commas in theValue
field.
- data
Type ParameterData Type - The data type of the parameter, such as
text
oraws:ec2:image
. The default istext
. - type
Parameter
Type - The type of parameter.
- value string
- The parameter value.
If type is
StringList
, the system returns a comma-separated string with no spaces between commas in theValue
field.
- data_
type ParameterData Type - The data type of the parameter, such as
text
oraws:ec2:image
. The default istext
. - type
Parameter
Type - The type of parameter.
- value str
- The parameter value.
If type is
StringList
, the system returns a comma-separated string with no spaces between commas in theValue
field.
- data
Type "text" | "aws:ec2:image" - The data type of the parameter, such as
text
oraws:ec2:image
. The default istext
. - type
"String" | "String
List" - The type of parameter.
- value String
- The parameter value.
If type is
StringList
, the system returns a comma-separated string with no spaces between commas in theValue
field.
Supporting Types
ParameterDataType
ParameterType
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.