Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
smithy-automation committed May 14, 2024
1 parent 1c3e6a7 commit 84370d7
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
11 changes: 10 additions & 1 deletion 2.0/_sources/aws/aws-iam.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -545,6 +545,10 @@ The following example defines two service-specific condition keys:
namespace smithy.example
use aws.api#service
use aws.iam#defineConditionKeys
use aws.iam#serviceResolvedConditionKeys
@defineConditionKeys(
"myservice:ActionContextKey1": { type: "String" },
"myservice:ActionContextKey2": { type: "String" }
Expand Down Expand Up @@ -583,6 +587,11 @@ explicitly binds ``ActionContextKey1`` to the field ``key``.
namespace smithy.example
use aws.api#service
use aws.iam#conditionKeys
use aws.iam#defineConditionKeys
use aws.iam#conditionKeyValue
@defineConditionKeys(
"myservice:ActionContextKey1": { type: "String" }
)
Expand All @@ -595,7 +604,7 @@ explicitly binds ``ActionContextKey1`` to the field ``key``.
@conditionKeys(["myservice:ActionContextKey1"])
operation OperationA {
input := {
@conditionKeyValue("ActionContextKey1")
@conditionKeyValue("myservice:ActionContextKey1")
key: String
}
output := {
Expand Down
11 changes: 10 additions & 1 deletion 2.0/aws/aws-iam.html
Original file line number Diff line number Diff line change
Expand Up @@ -847,6 +847,10 @@

<span class="kd">namespace </span><span class="nc">smithy.example</span>

<span class="kd">use </span><span class="nc">aws.api#service</span>
<span class="kd">use </span><span class="nc">aws.iam#defineConditionKeys</span>
<span class="kd">use </span><span class="nc">aws.iam#serviceResolvedConditionKeys</span>

<span class="nt">@defineConditionKeys</span>(
<span class="w"> </span><span class="s2">&quot;myservice:ActionContextKey1&quot;</span><span class="p">:</span><span class="w"> </span>{<span class="w"> </span><span class="py">type</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;String&quot;</span><span class="w"> </span>}<span class="p">,</span>
<span class="w"> </span><span class="s2">&quot;myservice:ActionContextKey2&quot;</span><span class="p">:</span><span class="w"> </span>{<span class="w"> </span><span class="py">type</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;String&quot;</span><span class="w"> </span>}
Expand Down Expand Up @@ -876,6 +880,11 @@

<span class="kd">namespace </span><span class="nc">smithy.example</span>

<span class="kd">use </span><span class="nc">aws.api#service</span>
<span class="kd">use </span><span class="nc">aws.iam#conditionKeys</span>
<span class="kd">use </span><span class="nc">aws.iam#defineConditionKeys</span>
<span class="kd">use </span><span class="nc">aws.iam#conditionKeyValue</span>

<span class="nt">@defineConditionKeys</span>(
<span class="w"> </span><span class="s2">&quot;myservice:ActionContextKey1&quot;</span><span class="p">:</span><span class="w"> </span>{<span class="w"> </span><span class="py">type</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;String&quot;</span><span class="w"> </span>}
)
Expand All @@ -888,7 +897,7 @@
<span class="nt">@conditionKeys</span>([<span class="s2">&quot;myservice:ActionContextKey1&quot;</span>])
<span class="kd">operation </span><span class="nc">OperationA</span><span class="w"> </span>{
<span class="w"> </span><span class="py">input</span><span class="w"> </span><span class="p">:=</span><span class="w"> </span>{
<span class="w"> </span><span class="nt">@conditionKeyValue</span>(<span class="s2">&quot;ActionContextKey1&quot;</span>)
<span class="w"> </span><span class="nt">@conditionKeyValue</span>(<span class="s2">&quot;myservice:ActionContextKey1&quot;</span>)
<span class="w"> </span><span class="py">key</span><span class="p">:</span><span class="w"> </span><span class="vc">String</span>
<span class="w"> </span>}
<span class="w"> </span><span class="py">output</span><span class="w"> </span><span class="p">:=</span><span class="w"> </span>{
Expand Down

0 comments on commit 84370d7

Please sign in to comment.