SSMParameterContextQuery Struct
Query to SSM Parameter Context Provider.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { cloud_assembly_schema } from 'aws-cdk-lib';
declare const assumeRoleAdditionalOptions: any;
const sSMParameterContextQuery: cloud_assembly_schema.SSMParameterContextQuery = {
account: 'account',
parameterName: 'parameterName',
region: 'region',
// the properties below are optional
assumeRoleAdditionalOptions: {
assumeRoleAdditionalOptionsKey: assumeRoleAdditionalOptions,
},
lookupRoleArn: 'lookupRoleArn',
lookupRoleExternalId: 'lookupRoleExternalId',
};
python
from aws_cdk.cloud_assembly_schema import SSMParameterContextQuery
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import cloud_assembly_schema
# assume_role_additional_options: Any
s_sm_parameter_context_query = SSMParameterContextQuery(
account="account",
parameter_name="parameterName",
region="region",
# the properties below are optional
assume_role_additional_options={
"assume_role_additional_options_key": assume_role_additional_options
},
lookup_role_arn="lookupRoleArn",
lookup_role_external_id="lookupRoleExternalId"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cloud_assembly_schema.*;
Object assumeRoleAdditionalOptions;
SSMParameterContextQuery sSMParameterContextQuery = SSMParameterContextQuery.builder()
.account("account")
.parameterName("parameterName")
.region("region")
// the properties below are optional
.assumeRoleAdditionalOptions(Map.of(
"assumeRoleAdditionalOptionsKey", assumeRoleAdditionalOptions))
.lookupRoleArn("lookupRoleArn")
.lookupRoleExternalId("lookupRoleExternalId")
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.Cloud_assembly_schema;
var assumeRoleAdditionalOptions;
var sSMParameterContextQuery = new SSMParameterContextQuery {
Account = "account",
ParameterName = "parameterName",
Region = "region",
// the properties below are optional
AssumeRoleAdditionalOptions = new Dictionary<string, object> {
{ "assumeRoleAdditionalOptionsKey", assumeRoleAdditionalOptions }
},
LookupRoleArn = "lookupRoleArn",
LookupRoleExternalId = "lookupRoleExternalId"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
var assumeRoleAdditionalOptions interface{}
sSMParameterContextQuery := &SSMParameterContextQuery{
Account: jsii.String("account"),
ParameterName: jsii.String("parameterName"),
Region: jsii.String("region"),
// the properties below are optional
AssumeRoleAdditionalOptions: map[string]interface{}{
"assumeRoleAdditionalOptionsKey": assumeRoleAdditionalOptions,
},
LookupRoleArn: jsii.String("lookupRoleArn"),
LookupRoleExternalId: jsii.String("lookupRoleExternalId"),
}
Properties
Query account.
assumeRoleAdditionalOptionsoptional{ [key: string]: any }assume_role_additional_optionsoptionaltyping.Mapping[str, Any]assumeRoleAdditionalOptionsoptionalMap<String, Object>AssumeRoleAdditionalOptionsoptionalIDictionary<string, object>AssumeRoleAdditionalOptionsoptional*map[string]interface{}#Additional options to pass to STS when assuming the lookup role.
Default: No additional options.
RoleArnshould not be used. Use the dedicatedlookupRoleArnproperty instead.ExternalIdshould not be used. Use the dedicatedlookupRoleExternalIdinstead.
lookupRoleArnoptionalstringlookup_role_arnoptionalstrlookupRoleArnoptionalStringLookupRoleArnoptionalstringLookupRoleArnoptional*string= None#The ARN of the role that should be used to look up the missing values.
lookupRoleExternalIdoptionalstringlookup_role_external_idoptionalstrlookupRoleExternalIdoptionalStringLookupRoleExternalIdoptionalstringLookupRoleExternalIdoptional*string#The ExternalId that needs to be supplied while assuming this role.
Default: No ExternalId will be supplied
parameterNamestringparameter_namestrparameterNameStringParameterNamestringParameterName*stringrequired#Parameter name to query.
Query region.