Skip to content

Commit b05c282

Browse files
committed
Improve example validation and corrections
1 parent fcb3139 commit b05c282

45 files changed

Lines changed: 146 additions & 89 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

awscli/examples/apigatewayv2/put-routing-rule.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
The following ``put-routing-rule`` example updates the priority of a routing rule. ::
44

55
aws apigatewayv2 put-routing-rule \
6+
--routing-rule-id 'abc123' \
67
--domain-name 'regional.example.com' \
78
--priority 150 \
89
--conditions '[ \

awscli/examples/application-autoscaling/put-scaling-policy.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ The following ``put-scaling-policy`` example applies a target tracking scaling p
4242
aws application-autoscaling put-scaling-policy --service-namespace ecs \
4343
--scalable-dimension ecs:service:DesiredCount \
4444
--resource-id service/default/web-app \
45-
--policy-name cms75-target-tracking-scaling-policy
45+
--policy-name cms75-target-tracking-scaling-policy \
4646
--policy-type TargetTrackingScaling \
4747
--target-tracking-scaling-policy-configuration file://config.json
4848

awscli/examples/codecommit/create-pull-request-approval-rule.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
The following ``create-pull-request-approval-rule`` example creates an approval rule named ``Require two approved approvers`` for the specified pull request. The rule specifies that two approvals are required from an approval pool. The pool includes all users who access CodeCommit by assuming the role of ``CodeCommitReview`` in the ``123456789012`` AWS account. It also includes either an IAM user or federated user named ``Nikhil_Jayashankar`` from the same AWS account. ::
44

55
aws codecommit create-pull-request-approval-rule \
6+
--pull-request-id 42
67
--approval-rule-name "Require two approved approvers" \
78
--approval-rule-content "{\"Version\": \"2018-11-08\",\"Statements\": [{\"Type\": \"Approvers\",\"NumberOfApprovalsNeeded\": 2,\"ApprovalPoolMembers\": [\"CodeCommitApprovers:123456789012:Nikhil_Jayashankar\", \"arn:aws:sts::123456789012:assumed-role/CodeCommitReview/*\"]}]}"
89

awscli/examples/codecommit/get-comments-for-pull-request.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ This example demonstrates how to view comments for a pull request in a repositor
44

55
aws codecommit get-comments-for-pull-request \
66
--repository-name MyDemoRepo \
7+
--pull-request-id 42 \
78
--before-commit-ID 317f8570EXAMPLE \
89
--after-commit-id 5d036259EXAMPLE
910

awscli/examples/codecommit/put-repository-triggers.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
This example demonstrates how to update triggers named 'MyFirstTrigger' and 'MySecondTrigger' using an already-created JSON file (here named MyTriggers.json) that contains the structure of all the triggers for a repository named MyDemoRepo. To learn how to get the JSON for existing triggers, see the get-repository-triggers command. ::
44

55
aws codecommit put-repository-triggers \
6-
--repository-name MyDemoRepo file://MyTriggers.json
6+
--repository-name MyDemoRepo \
7+
--triggers file://MyTriggers.json
78

89
Contents of ``MyTriggers.json``::
910

awscli/examples/codecommit/update-pull-request-approval-rule-content.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ The following ``update-pull-request-approval-rule-content`` example updates she
55
aws codecommit update-pull-request-approval-rule-content \
66
--pull-request-id 27 \
77
--approval-rule-name "Require two approved approvers" \
8-
--approval-rule-content "{Version: 2018-11-08, Statements: [{Type: \"Approvers\", NumberOfApprovalsNeeded: 1, ApprovalPoolMembers:[\"CodeCommitApprovers:123456789012:user/*\"]}]}}"
8+
--new-rule-content "{Version: 2018-11-08, Statements: [{Type: \"Approvers\", NumberOfApprovalsNeeded: 1, ApprovalPoolMembers:[\"CodeCommitApprovers:123456789012:user/*\"]}]}}"
99

1010
Output::
1111

awscli/examples/codepipeline/disable-stage-transition.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@ This example disables transitions into the Beta stage of the MyFirstPipeline pip
44

55
Command::
66

7-
aws codepipeline disable-stage-transition --pipeline-name MyFirstPipeline --stage-name Beta --transition-type Inbound
7+
aws codepipeline disable-stage-transition \
8+
--pipeline-name MyFirstPipeline \
9+
--stage-name Beta \
10+
--transition-type Inbound \
11+
--reason "An example reason"
812

913

1014
Output::

awscli/examples/cognito-identity/delete-identities.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This example deletes an identity pool.
44

55
Command::
66

7-
aws cognito-identity delete-identity-pool --identity-ids-to-delete "us-west-2:11111111-1111-1111-1111-111111111111"
7+
aws cognito-identity delete-identities --identity-ids-to-delete "us-west-2:11111111-1111-1111-1111-111111111111"
88

99
Output::
1010

awscli/examples/comprehend/create-document-classifier.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ The following ``create-document-classifier`` example begins the training process
44

55
aws comprehend create-document-classifier \
66
--document-classifier-name example-classifier \
7-
--data-access-arn arn:aws:comprehend:us-west-2:111122223333:pii-entities-detection-job/123456abcdeb0e11022f22a11EXAMPLE \
7+
--data-access-role-arn arn:aws:iam::111122223333:role/service-role/AmazonComprehendServiceRole-example-role \
88
--input-data-config "S3Uri=s3://amzn-s3-demo-bucket/" \
99
--language-code en
1010

awscli/examples/comprehend/describe-entity-recognizer.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
The following ``describe-entity-recognizer`` example gets the properties of a custom entity recognizer model. ::
44

55
aws comprehend describe-entity-recognizer \
6-
entity-recognizer-arn arn:aws:comprehend:us-west-2:111122223333:entity-recognizer/business-recongizer-1/version/1
6+
--entity-recognizer-arn arn:aws:comprehend:us-west-2:111122223333:entity-recognizer/business-recongizer-1/version/1
77

88
Output::
99

0 commit comments

Comments
 (0)