-
Notifications
You must be signed in to change notification settings - Fork 218
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable
aws.iam#disableConditionKeyInference
trait for service shape
- Loading branch information
1 parent
56f6463
commit 416da8f
Showing
6 changed files
with
239 additions
and
15 deletions.
There are no files selected for viewing
This file contains 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 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 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 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
63 changes: 63 additions & 0 deletions
63
...oftware/amazon/smithy/aws/iam/traits/disable-condition-key-inference-for-resources.smithy
This file contains 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,63 @@ | ||
$version: "1.0" | ||
namespace smithy.example | ||
|
||
@aws.api#service(sdkId: "My") | ||
@aws.iam#defineConditionKeys("my:service": {type: "String", documentation: "Foo baz"}) | ||
service MyService { | ||
version: "2019-02-20", | ||
operations: [Operation1], | ||
resources: [Resource1] | ||
} | ||
|
||
@aws.iam#conditionKeys(["aws:operation1", "my:service"]) | ||
operation Operation1 {} | ||
|
||
@aws.iam#conditionKeys(["resource:1"]) | ||
resource Resource1 { | ||
identifiers: { | ||
id1: ArnString, | ||
}, | ||
resources: [Resource2] | ||
} | ||
|
||
@aws.iam#disableConditionKeyInference | ||
resource Resource2 { | ||
identifiers: { | ||
id1: ArnString, | ||
id2: FooString, | ||
}, | ||
read: GetResource2, | ||
list: ListResource2, | ||
} | ||
|
||
@readonly | ||
operation GetResource2 { | ||
input: GetResource2Input | ||
} | ||
|
||
structure GetResource2Input { | ||
@required | ||
id1: ArnString, | ||
|
||
@required | ||
id2: FooString | ||
} | ||
|
||
@documentation("This is Foo") | ||
string FooString | ||
|
||
@readonly | ||
operation ListResource2 { | ||
input: ListResource2Input, | ||
output: ListResource2Output | ||
} | ||
|
||
structure ListResource2Input { | ||
@required | ||
id1: ArnString, | ||
} | ||
|
||
structure ListResource2Output {} | ||
|
||
@aws.api#arnReference(type: "ec2:Instance") | ||
string ArnString |
63 changes: 63 additions & 0 deletions
63
.../software/amazon/smithy/aws/iam/traits/disable-condition-key-inference-for-service.smithy
This file contains 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,63 @@ | ||
$version: "1.0" | ||
namespace smithy.example | ||
|
||
@aws.api#service(sdkId: "My") | ||
@aws.iam#defineConditionKeys("my:service": {type: "String", documentation: "Foo baz"}) | ||
@aws.iam#disableConditionKeyInference | ||
service MyService { | ||
version: "2019-02-20", | ||
operations: [Operation1], | ||
resources: [Resource1] | ||
} | ||
|
||
@aws.iam#conditionKeys(["aws:operation1", "my:service"]) | ||
operation Operation1 {} | ||
|
||
@aws.iam#conditionKeys(["resource:1"]) | ||
resource Resource1 { | ||
identifiers: { | ||
id1: ArnString, | ||
}, | ||
resources: [Resource2] | ||
} | ||
|
||
resource Resource2 { | ||
identifiers: { | ||
id1: ArnString, | ||
id2: FooString, | ||
}, | ||
read: GetResource2, | ||
list: ListResource2, | ||
} | ||
|
||
@readonly | ||
operation GetResource2 { | ||
input: GetResource2Input | ||
} | ||
|
||
structure GetResource2Input { | ||
@required | ||
id1: ArnString, | ||
|
||
@required | ||
id2: FooString | ||
} | ||
|
||
@documentation("This is Foo") | ||
string FooString | ||
|
||
@readonly | ||
operation ListResource2 { | ||
input: ListResource2Input, | ||
output: ListResource2Output | ||
} | ||
|
||
structure ListResource2Input { | ||
@required | ||
id1: ArnString, | ||
} | ||
|
||
structure ListResource2Output {} | ||
|
||
@aws.api#arnReference(type: "ec2:Instance") | ||
string ArnString |