-
Notifications
You must be signed in to change notification settings - Fork 29
AWS::SSM::Parameter resource #159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
ferozbaig-amzn
wants to merge
23
commits into
aws-cloudformation:master
Choose a base branch
from
ferozbaig-amzn:dev
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 11 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
002661d
pom version changes
ferozbaig-amzn 41748ff
amend schema
ferozbaig-amzn 95b2be4
rearranged code spacing
ferozbaig-amzn d8e3298
rectified CREATE handler
ferozbaig-amzn c72321a
rectified READ
ferozbaig-amzn e7b6b24
rectified DELETE
ferozbaig-amzn 28c7f0f
rectified UPDATE
ferozbaig-amzn 8fd2be4
rectified LIST
ferozbaig-amzn 418b547
added Client Side Throttling with Client re-use
ferozbaig-amzn 8b05981
added unit tests
ferozbaig-amzn e588355
fixed pre-commit error
ferozbaig-amzn 950a0f9
fix: taggable true
ferozbaig-amzn 26cb109
fix: reduce retries to 4
ferozbaig-amzn 13c6e5d
fix: add READ permissions in CREATE as READ is called from within CREATE
ferozbaig-amzn 0d3f8e2
fix: return error msg instead of wrapping in an exception
ferozbaig-amzn c6afbbc
fix: name generation
ferozbaig-amzn a5d4e25
added more exception handling cases
ferozbaig-amzn fbe04c0
fix to avoid NPE
ferozbaig-amzn fce48a8
generate param name as per native logic
ferozbaig-amzn 0ff512d
stabilize only for aws::ec2 datatype
ferozbaig-amzn 4188600
handle throttling in case of stabilize
ferozbaig-amzn 49027ee
soft-fail for extra api calls
ferozbaig-amzn 925a8c4
fix unit test
ferozbaig-amzn File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,3 +18,5 @@ target/ | |
|
||
# our logs | ||
rpdk.log | ||
|
||
sam-tests |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,140 @@ | ||
# AWS::SSM::Parameter | ||
|
||
Resource Type definition for AWS::SSM::Parameter | ||
|
||
## Syntax | ||
|
||
To declare this entity in your AWS CloudFormation template, use the following syntax: | ||
|
||
### JSON | ||
|
||
<pre> | ||
{ | ||
"Type" : "AWS::SSM::Parameter", | ||
"Properties" : { | ||
"<a href="#type" title="Type">Type</a>" : <i>String</i>, | ||
"<a href="#description" title="Description">Description</a>" : <i>String</i>, | ||
"<a href="#policies" title="Policies">Policies</a>" : <i>String</i>, | ||
"<a href="#allowedpattern" title="AllowedPattern">AllowedPattern</a>" : <i>String</i>, | ||
"<a href="#tier" title="Tier">Tier</a>" : <i>String</i>, | ||
"<a href="#value" title="Value">Value</a>" : <i>String</i>, | ||
"<a href="#datatype" title="DataType">DataType</a>" : <i>String</i>, | ||
"<a href="#tags" title="Tags">Tags</a>" : <i>Map</i>, | ||
"<a href="#name" title="Name">Name</a>" : <i>String</i> | ||
} | ||
} | ||
</pre> | ||
|
||
### YAML | ||
|
||
<pre> | ||
Type: AWS::SSM::Parameter | ||
Properties: | ||
<a href="#type" title="Type">Type</a>: <i>String</i> | ||
<a href="#description" title="Description">Description</a>: <i>String</i> | ||
<a href="#policies" title="Policies">Policies</a>: <i>String</i> | ||
<a href="#allowedpattern" title="AllowedPattern">AllowedPattern</a>: <i>String</i> | ||
<a href="#tier" title="Tier">Tier</a>: <i>String</i> | ||
<a href="#value" title="Value">Value</a>: <i>String</i> | ||
<a href="#datatype" title="DataType">DataType</a>: <i>String</i> | ||
<a href="#tags" title="Tags">Tags</a>: <i>Map</i> | ||
<a href="#name" title="Name">Name</a>: <i>String</i> | ||
</pre> | ||
|
||
## Properties | ||
|
||
#### Type | ||
|
||
The type of parameter. | ||
|
||
_Required_: Yes | ||
|
||
_Type_: String | ||
|
||
_Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) | ||
|
||
#### Description | ||
|
||
Information about the parameter. | ||
|
||
_Required_: No | ||
|
||
_Type_: String | ||
|
||
_Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) | ||
|
||
#### Policies | ||
|
||
Information about the policies assigned to a parameter. | ||
|
||
_Required_: No | ||
|
||
_Type_: String | ||
|
||
_Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) | ||
|
||
#### AllowedPattern | ||
|
||
A regular expression used to validate the parameter value. | ||
|
||
_Required_: No | ||
|
||
_Type_: String | ||
|
||
_Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) | ||
|
||
#### Tier | ||
|
||
The parameter tier. | ||
|
||
_Required_: No | ||
|
||
_Type_: String | ||
|
||
_Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) | ||
|
||
#### Value | ||
|
||
The parameter value. | ||
|
||
_Required_: Yes | ||
|
||
_Type_: String | ||
|
||
_Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) | ||
|
||
#### DataType | ||
|
||
The data type of the parameter, such as text or aws:ec2:image. The default is text. | ||
|
||
_Required_: No | ||
|
||
_Type_: String | ||
|
||
_Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) | ||
|
||
#### Tags | ||
|
||
Optional metadata that you assign to a resource in the form of an arbitrary set of tags (key-value pairs) | ||
|
||
_Required_: No | ||
|
||
_Type_: Map | ||
|
||
_Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) | ||
|
||
#### Name | ||
|
||
The name of the parameter. | ||
|
||
_Required_: No | ||
|
||
_Type_: String | ||
|
||
_Update requires_: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement) | ||
|
||
## Return Values | ||
|
||
### Ref | ||
|
||
When you pass the logical ID of this resource to the intrinsic `Ref` function, Ref returns the Name. |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be an object - it can take both a JSON and a String? Can you test this to verify? (Stringification is usually applicable to policies, but please verify it)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CFN Doc says
Policies
is of typeString
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tried creating it via CLI with Json value instead of String, and faced below error.
Parameter validation failed:
Invalid type for parameter Policies