Skip to content

Commit

Permalink
CLI examples for codeartifact, rds, sns (#7106)
Browse files Browse the repository at this point in the history
  • Loading branch information
elysahall authored Jul 14, 2022
1 parent a1ee3be commit 98b7d4f
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 23 deletions.
5 changes: 3 additions & 2 deletions awscli/examples/codeartifact/describe-domain.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

The following ``describe-domain`` example returns a DomainDescription object for a domain named test-domain. ::

aws codeartifact create-domain \
aws codeartifact describe-domain \
--domain test-domain

Output::
Expand All @@ -16,7 +16,8 @@ Output::
"createdTime": "2020-10-20T13:16:48.559000-04:00",
"encryptionKey": "arn:aws:kms:us-west-2:111122223333:key/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
"repositoryCount": 2,
"assetSizeBytes": 0
"assetSizeBytes": 0,
"s3BucketArn": "arn:aws:s3:::assets-111122223333-us-west-2"
}
}

Expand Down
2 changes: 1 addition & 1 deletion awscli/examples/rds/remove-from-global-cluster.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ Output::
}
}

For more information, see `Removing a cluster from an Amazon Aurora global database<https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-global-database-managing.html#aurora-global-database-detaching>`__ in the *Amazon Aurora User Guide*.
For more information, see `Removing a cluster from an Amazon Aurora global database <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-global-database-managing.html#aurora-global-database-detaching>`__ in the *Amazon Aurora User Guide*.
24 changes: 12 additions & 12 deletions awscli/examples/sns/check-if-phone-number-is-opted-out.rst
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
**To check SMS message opt-out for a phone number**

The following ``check-if-phone-number-is-opted-out`` example checks whether the specified phone number is opted out of receiving SMS messages from the current AWS account. ::

aws sns check-if-phone-number-is-opted-out \
--phone-number 555-555-0100

Output::

{
"isOptedOut": false
}
**To check SMS message opt-out for a phone number**

The following ``check-if-phone-number-is-opted-out`` example checks whether the specified phone number is opted out of receiving SMS messages from the current AWS account. ::

aws sns check-if-phone-number-is-opted-out \
--phone-number +1555550100

Output::

{
"isOptedOut": false
}
16 changes: 8 additions & 8 deletions awscli/examples/sns/opt-in-phone-number.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
**To opt-in for SMS messages**

The following ``opt-in-phone-number`` example opts the specified phone number into receiving SMS messages. ::

aws sns opt-in-phone-number \
--phone-number +1-555-555-0100

This command produces no output.
**To opt-in for SMS messages**

The following ``opt-in-phone-number`` example opts the specified phone number into receiving SMS messages. ::

aws sns opt-in-phone-number \
--phone-number +15555550100

This command produces no output.

0 comments on commit 98b7d4f

Please sign in to comment.