Skip to content

Commit

Permalink
chore(ssm): update integ tests to use IntegTest construct (#24405)
Browse files Browse the repository at this point in the history
clean up clean up clean up

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
TheRealAmazonKendra committed Mar 3, 2023
1 parent 3d7505b commit c6f0149
Show file tree
Hide file tree
Showing 41 changed files with 2,254 additions and 876 deletions.
21 changes: 20 additions & 1 deletion packages/@aws-cdk/aws-ssm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,26 @@ new ssm.StringParameter(this, 'Parameter', {
});
```

[creating SSM parameters](test/integ.parameter.lit.ts)
```ts
// Create a new SSM Parameter holding a String
const param = new ssm.StringParameter(stack, 'StringParameter', {
// description: 'Some user-friendly description',
// name: 'ParameterName',
stringValue: 'Initial parameter value',
// allowedPattern: '.*',
});

// Grant read access to some Role
param.grantRead(role);

// Create a new SSM Parameter holding a StringList
const listParameter = new ssm.StringListParameter(stack, 'StringListParameter', {
// description: 'Some user-friendly description',
// name: 'ParameterName',
stringListValue: ['Initial parameter value A', 'Initial parameter value B'],
// allowedPattern: '.*',
});
```

When specifying an `allowedPattern`, the values provided as string literals
are validated against the pattern and an exception is raised if a value
Expand Down
Loading

0 comments on commit c6f0149

Please sign in to comment.