1 | {
|
2 | "version": "2",
|
3 | "toolVersion": "1.58.0",
|
4 | "snippets": {
|
5 | "edabba41c5da9d9ee34bd56c11f3da159cc14f27a29dc722a4daf6cacd2c1050": {
|
6 | "translations": {
|
7 | "python": {
|
8 | "source": "role = Role(self, \"MyRole\",\n assumed_by=ServicePrincipal(\"sns.amazonaws.com\")\n)\n\nrole.add_to_policy(PolicyStatement(\n resources=[\"*\"],\n actions=[\"lambda:InvokeFunction\"]\n))",
|
9 | "version": "2"
|
10 | },
|
11 | "csharp": {
|
12 | "source": "Role role = new Role(this, \"MyRole\", new RoleProps {\n AssumedBy = new ServicePrincipal(\"sns.amazonaws.com\")\n});\n\nrole.AddToPolicy(new PolicyStatement(new PolicyStatementProps {\n Resources = new [] { \"*\" },\n Actions = new [] { \"lambda:InvokeFunction\" }\n}));",
|
13 | "version": "1"
|
14 | },
|
15 | "java": {
|
16 | "source": "Role role = Role.Builder.create(this, \"MyRole\")\n .assumedBy(new ServicePrincipal(\"sns.amazonaws.com\"))\n .build();\n\nrole.addToPolicy(PolicyStatement.Builder.create()\n .resources(List.of(\"*\"))\n .actions(List.of(\"lambda:InvokeFunction\"))\n .build());",
|
17 | "version": "1"
|
18 | },
|
19 | "go": {
|
20 | "source": "role := lib.NewRole(this, jsii.String(\"MyRole\"), &roleProps{\n\tassumedBy: *lib.NewServicePrincipal(jsii.String(\"sns.amazonaws.com\")),\n})\n\nrole.addToPolicy(lib.NewPolicyStatement(&policyStatementProps{\n\tresources: []*string{\n\t\tjsii.String(\"*\"),\n\t},\n\tactions: []*string{\n\t\tjsii.String(\"lambda:InvokeFunction\"),\n\t},\n}))",
|
21 | "version": "1"
|
22 | },
|
23 | "$": {
|
24 | "source": " const role = new Role(this, 'MyRole', {\n assumedBy: new ServicePrincipal('sns.amazonaws.com'),\n });\n\n role.addToPolicy(new PolicyStatement({\n resources: ['*'],\n actions: ['lambda:InvokeFunction'],\n }));",
|
25 | "version": "0"
|
26 | }
|
27 | },
|
28 | "location": {
|
29 | "api": {
|
30 | "api": "moduleReadme",
|
31 | "moduleFqn": "@aws-cdk/aws-iam"
|
32 | },
|
33 | "field": {
|
34 | "field": "markdown",
|
35 | "line": 17
|
36 | }
|
37 | },
|
38 | "didCompile": true,
|
39 | "fqnsReferenced": [
|
40 | "@aws-cdk/aws-iam.IPrincipal",
|
41 | "@aws-cdk/aws-iam.PolicyStatement",
|
42 | "@aws-cdk/aws-iam.PolicyStatementProps",
|
43 | "@aws-cdk/aws-iam.Role",
|
44 | "@aws-cdk/aws-iam.Role#addToPolicy",
|
45 | "@aws-cdk/aws-iam.RoleProps",
|
46 | "@aws-cdk/aws-iam.ServicePrincipal",
|
47 | "constructs.Construct"
|
48 | ],
|
49 | "fullSource": "import * as constructs from 'constructs';\nimport { PolicyStatement, Role, ServicePrincipal } from '../lib';\n\n// keep this import separate from other imports to reduce chance for merge conflicts with v2-main\n// eslint-disable-next-line no-duplicate-imports, import/order\nimport { Construct } from '@aws-cdk/core';\n\nexport class ExampleConstruct extends Construct {\n constructor(scope: constructs.Construct, id: string) {\n super(scope, id);\n\n /// !show\n const role = new Role(this, 'MyRole', {\n assumedBy: new ServicePrincipal('sns.amazonaws.com'),\n });\n\n role.addToPolicy(new PolicyStatement({\n resources: ['*'],\n actions: ['lambda:InvokeFunction'],\n }));\n /// !hide\n }\n}\n",
|
50 | "syntaxKindCounter": {
|
51 | "10": 4,
|
52 | "75": 9,
|
53 | "104": 1,
|
54 | "192": 2,
|
55 | "193": 2,
|
56 | "194": 1,
|
57 | "196": 1,
|
58 | "197": 3,
|
59 | "225": 1,
|
60 | "226": 1,
|
61 | "242": 1,
|
62 | "243": 1,
|
63 | "281": 3
|
64 | },
|
65 | "fqnsFingerprint": "46cb94f88e0bff2e86fb32e7a46ab8fe8c8e8bff2a2506c2c6a821725fe5590b"
|
66 | },
|
67 | "38b37167723c4421f6f32a6cf5cb2af49ff47a60c0dcf3998015418ae0fc2a95": {
|
68 | "translations": {
|
69 | "python": {
|
70 | "source": "user = User(self, \"MyUser\", password=cdk.SecretValue.unsafe_plain_text(\"1234\"))\ngroup = Group(self, \"MyGroup\")\n\npolicy = Policy(self, \"MyPolicy\")\npolicy.attach_to_user(user)\ngroup.attach_inline_policy(policy)",
|
71 | "version": "2"
|
72 | },
|
73 | "csharp": {
|
74 | "source": "User user = new User(this, \"MyUser\", new UserProps { Password = SecretValue.UnsafePlainText(\"1234\") });\nGroup group = new Group(this, \"MyGroup\");\n\nPolicy policy = new Policy(this, \"MyPolicy\");\npolicy.AttachToUser(user);\ngroup.AttachInlinePolicy(policy);",
|
75 | "version": "1"
|
76 | },
|
77 | "java": {
|
78 | "source": "User user = User.Builder.create(this, \"MyUser\").password(SecretValue.unsafePlainText(\"1234\")).build();\nGroup group = new Group(this, \"MyGroup\");\n\nPolicy policy = new Policy(this, \"MyPolicy\");\npolicy.attachToUser(user);\ngroup.attachInlinePolicy(policy);",
|
79 | "version": "1"
|
80 | },
|
81 | "go": {
|
82 | "source": "user := lib.NewUser(this, jsii.String(\"MyUser\"), &userProps{\n\tpassword: cdk.secretValue.unsafePlainText(jsii.String(\"1234\")),\n})\ngroup := lib.NewGroup(this, jsii.String(\"MyGroup\"))\n\npolicy := lib.NewPolicy(this, jsii.String(\"MyPolicy\"))\npolicy.attachToUser(user)\ngroup.attachInlinePolicy(policy)",
|
83 | "version": "1"
|
84 | },
|
85 | "$": {
|
86 | "source": " const user = new User(this, 'MyUser', { password: cdk.SecretValue.unsafePlainText('1234') });\n const group = new Group(this, 'MyGroup');\n\n const policy = new Policy(this, 'MyPolicy');\n policy.attachToUser(user);\n group.attachInlinePolicy(policy);",
|
87 | "version": "0"
|
88 | }
|
89 | },
|
90 | "location": {
|
91 | "api": {
|
92 | "api": "moduleReadme",
|
93 | "moduleFqn": "@aws-cdk/aws-iam"
|
94 | },
|
95 | "field": {
|
96 | "field": "markdown",
|
97 | "line": 31
|
98 | }
|
99 | },
|
100 | "didCompile": true,
|
101 | "fqnsReferenced": [
|
102 | "@aws-cdk/aws-iam.Group",
|
103 | "@aws-cdk/aws-iam.IUser",
|
104 | "@aws-cdk/aws-iam.Policy",
|
105 | "@aws-cdk/aws-iam.Policy#attachToUser",
|
106 | "@aws-cdk/aws-iam.User",
|
107 | "@aws-cdk/aws-iam.UserProps",
|
108 | "@aws-cdk/core.SecretValue",
|
109 | "@aws-cdk/core.SecretValue#unsafePlainText",
|
110 | "constructs.Construct"
|
111 | ],
|
112 | "fullSource": "import * as cdk from '@aws-cdk/core';\nimport * as constructs from 'constructs';\nimport { Group, Policy, User } from '../lib';\n\n// keep this import separate from other imports to reduce chance for merge conflicts with v2-main\n// eslint-disable-next-line no-duplicate-imports, import/order\nimport { Construct } from '@aws-cdk/core';\n\nexport class ExampleConstruct extends Construct {\n constructor(scope: constructs.Construct, id: string) {\n super(scope, id);\n\n /// !show\n const user = new User(this, 'MyUser', { password: cdk.SecretValue.unsafePlainText('1234') });\n const group = new Group(this, 'MyGroup');\n\n const policy = new Policy(this, 'MyPolicy');\n policy.attachToUser(user);\n group.attachInlinePolicy(policy);\n /// !hide\n }\n}\n",
|
113 | "syntaxKindCounter": {
|
114 | "10": 4,
|
115 | "75": 16,
|
116 | "104": 3,
|
117 | "193": 1,
|
118 | "194": 4,
|
119 | "196": 3,
|
120 | "197": 3,
|
121 | "225": 3,
|
122 | "226": 2,
|
123 | "242": 3,
|
124 | "243": 3,
|
125 | "281": 1
|
126 | },
|
127 | "fqnsFingerprint": "2828ffe066431d3c0e232905e674b2eda81211862d764c744d999c5b8a0565fc"
|
128 | },
|
129 | "fd41528b3cbd6b346e84f9eee59ae90ac0a3d9192aab58a04930b1ba8572c469": {
|
130 | "translations": {
|
131 | "python": {
|
132 | "source": "group = Group(self, \"MyGroup\")\ngroup.add_managed_policy(ManagedPolicy.from_aws_managed_policy_name(\"AdministratorAccess\"))",
|
133 | "version": "2"
|
134 | },
|
135 | "csharp": {
|
136 | "source": "Group group = new Group(this, \"MyGroup\");\ngroup.AddManagedPolicy(ManagedPolicy.FromAwsManagedPolicyName(\"AdministratorAccess\"));",
|
137 | "version": "1"
|
138 | },
|
139 | "java": {
|
140 | "source": "Group group = new Group(this, \"MyGroup\");\ngroup.addManagedPolicy(ManagedPolicy.fromAwsManagedPolicyName(\"AdministratorAccess\"));",
|
141 | "version": "1"
|
142 | },
|
143 | "go": {
|
144 | "source": "group := lib.NewGroup(this, jsii.String(\"MyGroup\"))\ngroup.addManagedPolicy(lib.ManagedPolicy.fromAwsManagedPolicyName(jsii.String(\"AdministratorAccess\")))",
|
145 | "version": "1"
|
146 | },
|
147 | "$": {
|
148 | "source": "const group = new Group(this, 'MyGroup');\ngroup.addManagedPolicy(ManagedPolicy.fromAwsManagedPolicyName('AdministratorAccess'));",
|
149 | "version": "0"
|
150 | }
|
151 | },
|
152 | "location": {
|
153 | "api": {
|
154 | "api": "moduleReadme",
|
155 | "moduleFqn": "@aws-cdk/aws-iam"
|
156 | },
|
157 | "field": {
|
158 | "field": "markdown",
|
159 | "line": 42
|
160 | }
|
161 | },
|
162 | "didCompile": true,
|
163 | "fqnsReferenced": [
|
164 | "@aws-cdk/aws-iam.Group",
|
165 | "@aws-cdk/aws-iam.Group#addManagedPolicy",
|
166 | "@aws-cdk/aws-iam.IManagedPolicy",
|
167 | "@aws-cdk/aws-iam.ManagedPolicy#fromAwsManagedPolicyName",
|
168 | "constructs.Construct"
|
169 | ],
|
170 | "fullSource": "import * as constructs from 'constructs';\nimport { Group, ManagedPolicy } from '../lib';\n\n// keep this import separate from other imports to reduce chance for merge conflicts with v2-main\n// eslint-disable-next-line no-duplicate-imports, import/order\nimport { Construct } from '@aws-cdk/core';\n\nexport class ExampleConstruct extends Construct {\n constructor(scope: constructs.Construct, id: string) {\n super(scope, id);\n\n /// !show\n const group = new Group(this, 'MyGroup');\n group.addManagedPolicy(ManagedPolicy.fromAwsManagedPolicyName('AdministratorAccess'));\n /// !hide\n }\n}\n",
|
171 | "syntaxKindCounter": {
|
172 | "10": 2,
|
173 | "75": 6,
|
174 | "104": 1,
|
175 | "194": 2,
|
176 | "196": 2,
|
177 | "197": 1,
|
178 | "225": 1,
|
179 | "226": 1,
|
180 | "242": 1,
|
181 | "243": 1
|
182 | },
|
183 | "fqnsFingerprint": "fc4b07167834b04386ce91e74b2374d7161e041e1ef32aa6f95ff49dafa5a6f6"
|
184 | },
|
185 | "53fe6253cd9d35289ebc06b836e7a1a91e19da4c47eb8fb38cb71d6a6c99d5f3": {
|
186 | "translations": {
|
187 | "python": {
|
188 | "source": "# fn: lambda.Function\n# table: dynamodb.Table\n\n\ntable.grant_write_data(fn)",
|
189 | "version": "2"
|
190 | },
|
191 | "csharp": {
|
192 | "source": "Function fn;\nTable table;\n\n\ntable.GrantWriteData(fn);",
|
193 | "version": "1"
|
194 | },
|
195 | "java": {
|
196 | "source": "Function fn;\nTable table;\n\n\ntable.grantWriteData(fn);",
|
197 | "version": "1"
|
198 | },
|
199 | "go": {
|
200 | "source": "var fn function\nvar table table\n\n\ntable.grantWriteData(fn)",
|
201 | "version": "1"
|
202 | },
|
203 | "$": {
|
204 | "source": "declare const fn: lambda.Function;\ndeclare const table: dynamodb.Table;\n\ntable.grantWriteData(fn);",
|
205 | "version": "0"
|
206 | }
|
207 | },
|
208 | "location": {
|
209 | "api": {
|
210 | "api": "moduleReadme",
|
211 | "moduleFqn": "@aws-cdk/aws-iam"
|
212 | },
|
213 | "field": {
|
214 | "field": "markdown",
|
215 | "line": 51
|
216 | }
|
217 | },
|
218 | "didCompile": true,
|
219 | "fqnsReferenced": [
|
220 | "@aws-cdk/aws-iam.IGrantable"
|
221 | ],
|
222 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const fn: lambda.Function;\ndeclare const table: dynamodb.Table;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from 'constructs';\nimport { CustomResource, Stack } from '@aws-cdk/core';\nimport * as codepipeline from '@aws-cdk/aws-codepipeline';\nimport * as dynamodb from '@aws-cdk/aws-dynamodb';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as iam from '@aws-cdk/aws-iam';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\n\ntable.grantWriteData(fn);\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
223 | "syntaxKindCounter": {
|
224 | "75": 9,
|
225 | "130": 2,
|
226 | "153": 2,
|
227 | "169": 2,
|
228 | "194": 1,
|
229 | "196": 1,
|
230 | "225": 2,
|
231 | "226": 1,
|
232 | "242": 2,
|
233 | "243": 2,
|
234 | "290": 1
|
235 | },
|
236 | "fqnsFingerprint": "1323b60ab94a88d4cf4c7c846ab0af5927a24713050028234cb9426c28ace47b"
|
237 | },
|
238 | "7808076bfee1b7971cc05930d4cebf8507933ada771a07e618c45d2a7dcf081f": {
|
239 | "translations": {
|
240 | "python": {
|
241 | "source": "# fn: lambda.Function\n# table: dynamodb.Table\n\n\ntable.grant(fn, \"dynamodb:PutItem\")",
|
242 | "version": "2"
|
243 | },
|
244 | "csharp": {
|
245 | "source": "Function fn;\nTable table;\n\n\ntable.Grant(fn, \"dynamodb:PutItem\");",
|
246 | "version": "1"
|
247 | },
|
248 | "java": {
|
249 | "source": "Function fn;\nTable table;\n\n\ntable.grant(fn, \"dynamodb:PutItem\");",
|
250 | "version": "1"
|
251 | },
|
252 | "go": {
|
253 | "source": "var fn function\nvar table table\n\n\ntable.grant(fn, jsii.String(\"dynamodb:PutItem\"))",
|
254 | "version": "1"
|
255 | },
|
256 | "$": {
|
257 | "source": "declare const fn: lambda.Function;\ndeclare const table: dynamodb.Table;\n\ntable.grant(fn, 'dynamodb:PutItem');",
|
258 | "version": "0"
|
259 | }
|
260 | },
|
261 | "location": {
|
262 | "api": {
|
263 | "api": "moduleReadme",
|
264 | "moduleFqn": "@aws-cdk/aws-iam"
|
265 | },
|
266 | "field": {
|
267 | "field": "markdown",
|
268 | "line": 60
|
269 | }
|
270 | },
|
271 | "didCompile": true,
|
272 | "fqnsReferenced": [
|
273 | "@aws-cdk/aws-iam.IGrantable"
|
274 | ],
|
275 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const fn: lambda.Function;\ndeclare const table: dynamodb.Table;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from 'constructs';\nimport { CustomResource, Stack } from '@aws-cdk/core';\nimport * as codepipeline from '@aws-cdk/aws-codepipeline';\nimport * as dynamodb from '@aws-cdk/aws-dynamodb';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as iam from '@aws-cdk/aws-iam';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\n\ntable.grant(fn, 'dynamodb:PutItem');\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
276 | "syntaxKindCounter": {
|
277 | "10": 1,
|
278 | "75": 9,
|
279 | "130": 2,
|
280 | "153": 2,
|
281 | "169": 2,
|
282 | "194": 1,
|
283 | "196": 1,
|
284 | "225": 2,
|
285 | "226": 1,
|
286 | "242": 2,
|
287 | "243": 2,
|
288 | "290": 1
|
289 | },
|
290 | "fqnsFingerprint": "1323b60ab94a88d4cf4c7c846ab0af5927a24713050028234cb9426c28ace47b"
|
291 | },
|
292 | "1afb0ac33880703dd032b083bc9d22bacd2581ea5480e33204c5f6689bad8cef": {
|
293 | "translations": {
|
294 | "python": {
|
295 | "source": "role = iam.Role(self, \"Role\",\n assumed_by=iam.ServicePrincipal(\"codepipeline.amazonaws.com\"),\n # custom description if desired\n description=\"This is a custom role...\"\n)\n\ncodepipeline.Pipeline(self, \"Pipeline\",\n # Give the Pipeline an immutable view of the Role\n role=role.without_policy_updates()\n)\n\n# You now have to manage the Role policies yourself\nrole.add_to_policy(iam.PolicyStatement(\n actions=[],\n resources=[]\n))",
|
296 | "version": "2"
|
297 | },
|
298 | "csharp": {
|
299 | "source": "Role role = new Role(this, \"Role\", new RoleProps {\n AssumedBy = new ServicePrincipal(\"codepipeline.amazonaws.com\"),\n // custom description if desired\n Description = \"This is a custom role...\"\n});\n\nnew Pipeline(this, \"Pipeline\", new PipelineProps {\n // Give the Pipeline an immutable view of the Role\n Role = role.WithoutPolicyUpdates()\n});\n\n// You now have to manage the Role policies yourself\nrole.AddToPolicy(new PolicyStatement(new PolicyStatementProps {\n Actions = new [] { },\n Resources = new [] { }\n}));",
|
300 | "version": "1"
|
301 | },
|
302 | "java": {
|
303 | "source": "Role role = Role.Builder.create(this, \"Role\")\n .assumedBy(new ServicePrincipal(\"codepipeline.amazonaws.com\"))\n // custom description if desired\n .description(\"This is a custom role...\")\n .build();\n\nPipeline.Builder.create(this, \"Pipeline\")\n // Give the Pipeline an immutable view of the Role\n .role(role.withoutPolicyUpdates())\n .build();\n\n// You now have to manage the Role policies yourself\nrole.addToPolicy(PolicyStatement.Builder.create()\n .actions(List.of())\n .resources(List.of())\n .build());",
|
304 | "version": "1"
|
305 | },
|
306 | "go": {
|
307 | "source": "role := iam.NewRole(this, jsii.String(\"Role\"), &roleProps{\n\tassumedBy: iam.NewServicePrincipal(jsii.String(\"codepipeline.amazonaws.com\")),\n\t// custom description if desired\n\tdescription: jsii.String(\"This is a custom role...\"),\n})\n\ncodepipeline.NewPipeline(this, jsii.String(\"Pipeline\"), &pipelineProps{\n\t// Give the Pipeline an immutable view of the Role\n\trole: role.withoutPolicyUpdates(),\n})\n\n// You now have to manage the Role policies yourself\nrole.addToPolicy(iam.NewPolicyStatement(&policyStatementProps{\n\tactions: []*string{\n\t},\n\tresources: []*string{\n\t},\n}))",
|
308 | "version": "1"
|
309 | },
|
310 | "$": {
|
311 | "source": "const role = new iam.Role(this, 'Role', {\n assumedBy: new iam.ServicePrincipal('codepipeline.amazonaws.com'),\n // custom description if desired\n description: 'This is a custom role...',\n});\n\nnew codepipeline.Pipeline(this, 'Pipeline', {\n // Give the Pipeline an immutable view of the Role\n role: role.withoutPolicyUpdates(),\n});\n\n// You now have to manage the Role policies yourself\nrole.addToPolicy(new iam.PolicyStatement({\n actions: [/* whatever actions you want */],\n resources: [/* whatever resources you intend to touch */],\n}));",
|
312 | "version": "0"
|
313 | }
|
314 | },
|
315 | "location": {
|
316 | "api": {
|
317 | "api": "moduleReadme",
|
318 | "moduleFqn": "@aws-cdk/aws-iam"
|
319 | },
|
320 | "field": {
|
321 | "field": "markdown",
|
322 | "line": 108
|
323 | }
|
324 | },
|
325 | "didCompile": true,
|
326 | "fqnsReferenced": [
|
327 | "@aws-cdk/aws-codepipeline.Pipeline",
|
328 | "@aws-cdk/aws-codepipeline.PipelineProps",
|
329 | "@aws-cdk/aws-iam.IPrincipal",
|
330 | "@aws-cdk/aws-iam.IRole",
|
331 | "@aws-cdk/aws-iam.PolicyStatement",
|
332 | "@aws-cdk/aws-iam.PolicyStatementProps",
|
333 | "@aws-cdk/aws-iam.Role",
|
334 | "@aws-cdk/aws-iam.Role#addToPolicy",
|
335 | "@aws-cdk/aws-iam.Role#withoutPolicyUpdates",
|
336 | "@aws-cdk/aws-iam.RoleProps",
|
337 | "@aws-cdk/aws-iam.ServicePrincipal",
|
338 | "constructs.Construct"
|
339 | ],
|
340 | "fullSource": "import { Construct } from 'constructs';\nimport { CustomResource, Stack } from '@aws-cdk/core';\nimport * as codepipeline from '@aws-cdk/aws-codepipeline';\nimport * as dynamodb from '@aws-cdk/aws-dynamodb';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as iam from '@aws-cdk/aws-iam';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst role = new iam.Role(this, 'Role', {\n assumedBy: new iam.ServicePrincipal('codepipeline.amazonaws.com'),\n // custom description if desired\n description: 'This is a custom role...',\n});\n\nnew codepipeline.Pipeline(this, 'Pipeline', {\n // Give the Pipeline an immutable view of the Role\n role: role.withoutPolicyUpdates(),\n});\n\n// You now have to manage the Role policies yourself\nrole.addToPolicy(new iam.PolicyStatement({\n actions: [/* whatever actions you want */],\n resources: [/* whatever resources you intend to touch */],\n}));\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
341 | "syntaxKindCounter": {
|
342 | "10": 4,
|
343 | "75": 18,
|
344 | "104": 2,
|
345 | "192": 2,
|
346 | "193": 3,
|
347 | "194": 6,
|
348 | "196": 2,
|
349 | "197": 4,
|
350 | "225": 1,
|
351 | "226": 2,
|
352 | "242": 1,
|
353 | "243": 1,
|
354 | "281": 5
|
355 | },
|
356 | "fqnsFingerprint": "e4172b0557c959a3802a69fbab087a50b4ed1c1ab2945c51f831d9c95f85e5e8"
|
357 | },
|
358 | "57f2aeb5a6ff0f3a68f45b3e37b6dcdc14ab44f9b3e7ab398a2cf91333033eba": {
|
359 | "translations": {
|
360 | "python": {
|
361 | "source": "role = iam.Role.from_role_arn(self, \"Role\", \"arn:aws:iam::123456789012:role/MyExistingRole\",\n # Set 'mutable' to 'false' to use the role as-is and prevent adding new\n # policies to it. The default is 'true', which means the role may be\n # modified as part of the deployment.\n mutable=False\n)",
|
362 | "version": "2"
|
363 | },
|
364 | "csharp": {
|
365 | "source": "IRole role = Role.FromRoleArn(this, \"Role\", \"arn:aws:iam::123456789012:role/MyExistingRole\", new FromRoleArnOptions {\n // Set 'mutable' to 'false' to use the role as-is and prevent adding new\n // policies to it. The default is 'true', which means the role may be\n // modified as part of the deployment.\n Mutable = false\n});",
|
366 | "version": "1"
|
367 | },
|
368 | "java": {
|
369 | "source": "IRole role = Role.fromRoleArn(this, \"Role\", \"arn:aws:iam::123456789012:role/MyExistingRole\", FromRoleArnOptions.builder()\n // Set 'mutable' to 'false' to use the role as-is and prevent adding new\n // policies to it. The default is 'true', which means the role may be\n // modified as part of the deployment.\n .mutable(false)\n .build());",
|
370 | "version": "1"
|
371 | },
|
372 | "go": {
|
373 | "source": "role := iam.role.fromRoleArn(this, jsii.String(\"Role\"), jsii.String(\"arn:aws:iam::123456789012:role/MyExistingRole\"), &fromRoleArnOptions{\n\t// Set 'mutable' to 'false' to use the role as-is and prevent adding new\n\t// policies to it. The default is 'true', which means the role may be\n\t// modified as part of the deployment.\n\tmutable: jsii.Boolean(false),\n})",
|
374 | "version": "1"
|
375 | },
|
376 | "$": {
|
377 | "source": "const role = iam.Role.fromRoleArn(this, 'Role', 'arn:aws:iam::123456789012:role/MyExistingRole', {\n // Set 'mutable' to 'false' to use the role as-is and prevent adding new\n // policies to it. The default is 'true', which means the role may be\n // modified as part of the deployment.\n mutable: false,\n});",
|
378 | "version": "0"
|
379 | }
|
380 | },
|
381 | "location": {
|
382 | "api": {
|
383 | "api": "moduleReadme",
|
384 | "moduleFqn": "@aws-cdk/aws-iam"
|
385 | },
|
386 | "field": {
|
387 | "field": "markdown",
|
388 | "line": 133
|
389 | }
|
390 | },
|
391 | "didCompile": true,
|
392 | "fqnsReferenced": [
|
393 | "@aws-cdk/aws-iam.FromRoleArnOptions",
|
394 | "@aws-cdk/aws-iam.IRole",
|
395 | "@aws-cdk/aws-iam.Role",
|
396 | "@aws-cdk/aws-iam.Role#fromRoleArn",
|
397 | "constructs.Construct"
|
398 | ],
|
399 | "fullSource": "import { Construct } from 'constructs';\nimport { CustomResource, Stack } from '@aws-cdk/core';\nimport * as codepipeline from '@aws-cdk/aws-codepipeline';\nimport * as dynamodb from '@aws-cdk/aws-dynamodb';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as iam from '@aws-cdk/aws-iam';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst role = iam.Role.fromRoleArn(this, 'Role', 'arn:aws:iam::123456789012:role/MyExistingRole', {\n // Set 'mutable' to 'false' to use the role as-is and prevent adding new\n // policies to it. The default is 'true', which means the role may be\n // modified as part of the deployment.\n mutable: false,\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
400 | "syntaxKindCounter": {
|
401 | "10": 2,
|
402 | "75": 5,
|
403 | "91": 1,
|
404 | "104": 1,
|
405 | "193": 1,
|
406 | "194": 2,
|
407 | "196": 1,
|
408 | "225": 1,
|
409 | "242": 1,
|
410 | "243": 1,
|
411 | "281": 1
|
412 | },
|
413 | "fqnsFingerprint": "63f6edbd79135f6c5ad931e879bbbaa6ef0c5d18a52e97cdf6568cf72c37b438"
|
414 | },
|
415 | "30dbf807e3c41b86a361ec7acaa98d45dfca7cef387e09f959c509d44336d21f": {
|
416 | "translations": {
|
417 | "python": {
|
418 | "source": "role = iam.Role(self, \"MyRole\",\n assumed_by=iam.AccountPrincipal(\"123456789012\"),\n external_ids=[\"SUPPLY-ME\"]\n)",
|
419 | "version": "2"
|
420 | },
|
421 | "csharp": {
|
422 | "source": "Role role = new Role(this, \"MyRole\", new RoleProps {\n AssumedBy = new AccountPrincipal(\"123456789012\"),\n ExternalIds = new [] { \"SUPPLY-ME\" }\n});",
|
423 | "version": "1"
|
424 | },
|
425 | "java": {
|
426 | "source": "Role role = Role.Builder.create(this, \"MyRole\")\n .assumedBy(new AccountPrincipal(\"123456789012\"))\n .externalIds(List.of(\"SUPPLY-ME\"))\n .build();",
|
427 | "version": "1"
|
428 | },
|
429 | "go": {
|
430 | "source": "role := iam.NewRole(this, jsii.String(\"MyRole\"), &roleProps{\n\tassumedBy: iam.NewAccountPrincipal(jsii.String(\"123456789012\")),\n\texternalIds: []*string{\n\t\tjsii.String(\"SUPPLY-ME\"),\n\t},\n})",
|
431 | "version": "1"
|
432 | },
|
433 | "$": {
|
434 | "source": "const role = new iam.Role(this, 'MyRole', {\n assumedBy: new iam.AccountPrincipal('123456789012'),\n externalIds: ['SUPPLY-ME'],\n});",
|
435 | "version": "0"
|
436 | }
|
437 | },
|
438 | "location": {
|
439 | "api": {
|
440 | "api": "moduleReadme",
|
441 | "moduleFqn": "@aws-cdk/aws-iam"
|
442 | },
|
443 | "field": {
|
444 | "field": "markdown",
|
445 | "line": 148
|
446 | }
|
447 | },
|
448 | "didCompile": true,
|
449 | "fqnsReferenced": [
|
450 | "@aws-cdk/aws-iam.AccountPrincipal",
|
451 | "@aws-cdk/aws-iam.IPrincipal",
|
452 | "@aws-cdk/aws-iam.Role",
|
453 | "@aws-cdk/aws-iam.RoleProps",
|
454 | "constructs.Construct"
|
455 | ],
|
456 | "fullSource": "import * as constructs from 'constructs';\nimport * as iam from '../lib';\n\n// keep this import separate from other imports to reduce chance for merge conflicts with v2-main\n// eslint-disable-next-line no-duplicate-imports, import/order\nimport { Construct } from '@aws-cdk/core';\n\nexport class ExampleConstruct extends Construct {\n constructor(scope: constructs.Construct, id: string) {\n super(scope, id);\n\n /// !show\n const role = new iam.Role(this, 'MyRole', {\n assumedBy: new iam.AccountPrincipal('123456789012'),\n externalIds: ['SUPPLY-ME'],\n });\n /// !hide\n\n Array.isArray(role);\n }\n}\n",
|
457 | "syntaxKindCounter": {
|
458 | "10": 3,
|
459 | "75": 7,
|
460 | "104": 1,
|
461 | "192": 1,
|
462 | "193": 1,
|
463 | "194": 2,
|
464 | "197": 2,
|
465 | "225": 1,
|
466 | "242": 1,
|
467 | "243": 1,
|
468 | "281": 2
|
469 | },
|
470 | "fqnsFingerprint": "f064040408d595ab9a7af3f2dbb45821e4bfea2e96d7130fbe003e201f89f305"
|
471 | },
|
472 | "fe5f92331f4a13ffac2fc300e8ef04d1348da847f50affdd14853f4495ca127f": {
|
473 | "translations": {
|
474 | "python": {
|
475 | "source": "statement = iam.PolicyStatement()\nstatement.add_service_principal(\"cloudwatch.amazonaws.com\")\nstatement.add_service_principal(\"ec2.amazonaws.com\")\nstatement.add_arn_principal(\"arn:aws:boom:boom\")",
|
476 | "version": "2"
|
477 | },
|
478 | "csharp": {
|
479 | "source": "PolicyStatement statement = new PolicyStatement();\nstatement.AddServicePrincipal(\"cloudwatch.amazonaws.com\");\nstatement.AddServicePrincipal(\"ec2.amazonaws.com\");\nstatement.AddArnPrincipal(\"arn:aws:boom:boom\");",
|
480 | "version": "1"
|
481 | },
|
482 | "java": {
|
483 | "source": "PolicyStatement statement = new PolicyStatement();\nstatement.addServicePrincipal(\"cloudwatch.amazonaws.com\");\nstatement.addServicePrincipal(\"ec2.amazonaws.com\");\nstatement.addArnPrincipal(\"arn:aws:boom:boom\");",
|
484 | "version": "1"
|
485 | },
|
486 | "go": {
|
487 | "source": "statement := iam.NewPolicyStatement()\nstatement.addServicePrincipal(jsii.String(\"cloudwatch.amazonaws.com\"))\nstatement.addServicePrincipal(jsii.String(\"ec2.amazonaws.com\"))\nstatement.addArnPrincipal(jsii.String(\"arn:aws:boom:boom\"))",
|
488 | "version": "1"
|
489 | },
|
490 | "$": {
|
491 | "source": "const statement = new iam.PolicyStatement();\nstatement.addServicePrincipal('cloudwatch.amazonaws.com');\nstatement.addServicePrincipal('ec2.amazonaws.com');\nstatement.addArnPrincipal('arn:aws:boom:boom');",
|
492 | "version": "0"
|
493 | }
|
494 | },
|
495 | "location": {
|
496 | "api": {
|
497 | "api": "moduleReadme",
|
498 | "moduleFqn": "@aws-cdk/aws-iam"
|
499 | },
|
500 | "field": {
|
501 | "field": "markdown",
|
502 | "line": 188
|
503 | }
|
504 | },
|
505 | "didCompile": true,
|
506 | "fqnsReferenced": [
|
507 | "@aws-cdk/aws-iam.PolicyStatement",
|
508 | "@aws-cdk/aws-iam.PolicyStatement#addArnPrincipal",
|
509 | "@aws-cdk/aws-iam.PolicyStatement#addServicePrincipal"
|
510 | ],
|
511 | "fullSource": "import { Construct } from 'constructs';\nimport { CustomResource, Stack } from '@aws-cdk/core';\nimport * as codepipeline from '@aws-cdk/aws-codepipeline';\nimport * as dynamodb from '@aws-cdk/aws-dynamodb';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as iam from '@aws-cdk/aws-iam';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst statement = new iam.PolicyStatement();\nstatement.addServicePrincipal('cloudwatch.amazonaws.com');\nstatement.addServicePrincipal('ec2.amazonaws.com');\nstatement.addArnPrincipal('arn:aws:boom:boom');\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
512 | "syntaxKindCounter": {
|
513 | "10": 3,
|
514 | "75": 9,
|
515 | "194": 4,
|
516 | "196": 3,
|
517 | "197": 1,
|
518 | "225": 1,
|
519 | "226": 3,
|
520 | "242": 1,
|
521 | "243": 1
|
522 | },
|
523 | "fqnsFingerprint": "3cabc671c581cd22f70f59481cbc50a452723310da24676111eda621bb3241ad"
|
524 | },
|
525 | "93ab0d764e7e4d09aa521f42b8805b64417e055a8ad032f8cf6cdea622d1020b": {
|
526 | "translations": {
|
527 | "python": {
|
528 | "source": "role = iam.Role(self, \"MyRole\",\n assumed_by=iam.CompositePrincipal(\n iam.ServicePrincipal(\"ec2.amazonaws.com\"),\n iam.AccountPrincipal(\"1818188181818187272\"))\n)",
|
529 | "version": "2"
|
530 | },
|
531 | "csharp": {
|
532 | "source": "Role role = new Role(this, \"MyRole\", new RoleProps {\n AssumedBy = new CompositePrincipal(\n new ServicePrincipal(\"ec2.amazonaws.com\"),\n new AccountPrincipal(\"1818188181818187272\"))\n});",
|
533 | "version": "1"
|
534 | },
|
535 | "java": {
|
536 | "source": "Role role = Role.Builder.create(this, \"MyRole\")\n .assumedBy(new CompositePrincipal(\n new ServicePrincipal(\"ec2.amazonaws.com\"),\n new AccountPrincipal(\"1818188181818187272\")))\n .build();",
|
537 | "version": "1"
|
538 | },
|
539 | "go": {
|
540 | "source": "role := iam.NewRole(this, jsii.String(\"MyRole\"), &roleProps{\n\tassumedBy: iam.NewCompositePrincipal(\n\tiam.NewServicePrincipal(jsii.String(\"ec2.amazonaws.com\")),\n\tiam.NewAccountPrincipal(jsii.String(\"1818188181818187272\"))),\n})",
|
541 | "version": "1"
|
542 | },
|
543 | "$": {
|
544 | "source": "const role = new iam.Role(this, 'MyRole', {\n assumedBy: new iam.CompositePrincipal(\n new iam.ServicePrincipal('ec2.amazonaws.com'),\n new iam.AccountPrincipal('1818188181818187272')\n ),\n});",
|
545 | "version": "0"
|
546 | }
|
547 | },
|
548 | "location": {
|
549 | "api": {
|
550 | "api": "moduleReadme",
|
551 | "moduleFqn": "@aws-cdk/aws-iam"
|
552 | },
|
553 | "field": {
|
554 | "field": "markdown",
|
555 | "line": 208
|
556 | }
|
557 | },
|
558 | "didCompile": true,
|
559 | "fqnsReferenced": [
|
560 | "@aws-cdk/aws-iam.AccountPrincipal",
|
561 | "@aws-cdk/aws-iam.CompositePrincipal",
|
562 | "@aws-cdk/aws-iam.IPrincipal",
|
563 | "@aws-cdk/aws-iam.Role",
|
564 | "@aws-cdk/aws-iam.RoleProps",
|
565 | "@aws-cdk/aws-iam.ServicePrincipal",
|
566 | "constructs.Construct"
|
567 | ],
|
568 | "fullSource": "import { Construct } from 'constructs';\nimport { CustomResource, Stack } from '@aws-cdk/core';\nimport * as codepipeline from '@aws-cdk/aws-codepipeline';\nimport * as dynamodb from '@aws-cdk/aws-dynamodb';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as iam from '@aws-cdk/aws-iam';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst role = new iam.Role(this, 'MyRole', {\n assumedBy: new iam.CompositePrincipal(\n new iam.ServicePrincipal('ec2.amazonaws.com'),\n new iam.AccountPrincipal('1818188181818187272')\n ),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
569 | "syntaxKindCounter": {
|
570 | "10": 3,
|
571 | "75": 10,
|
572 | "104": 1,
|
573 | "193": 1,
|
574 | "194": 4,
|
575 | "197": 4,
|
576 | "225": 1,
|
577 | "242": 1,
|
578 | "243": 1,
|
579 | "281": 1
|
580 | },
|
581 | "fqnsFingerprint": "97159aad086b7c4805f029ca288eaea0a73dbc5c79624e22d25c8d5c91c5f0e4"
|
582 | },
|
583 | "d6447173e9537c5ebbcdf340d784ef18d92896f6badf647a84c615e69a62def5": {
|
584 | "translations": {
|
585 | "python": {
|
586 | "source": "principal = iam.AccountPrincipal(\"123456789000\").with_conditions({\"StringEquals\": {\"foo\": \"baz\"}})",
|
587 | "version": "2"
|
588 | },
|
589 | "csharp": {
|
590 | "source": "PrincipalBase principal = new AccountPrincipal(\"123456789000\").WithConditions(new Dictionary<string, object> { { \"StringEquals\", new Dictionary<string, string> { { \"foo\", \"baz\" } } } });",
|
591 | "version": "1"
|
592 | },
|
593 | "java": {
|
594 | "source": "PrincipalBase principal = new AccountPrincipal(\"123456789000\").withConditions(Map.of(\"StringEquals\", Map.of(\"foo\", \"baz\")));",
|
595 | "version": "1"
|
596 | },
|
597 | "go": {
|
598 | "source": "principal := iam.NewAccountPrincipal(jsii.String(\"123456789000\")).withConditions(map[string]interface{}{\n\t\"StringEquals\": map[string]*string{\n\t\t\"foo\": jsii.String(\"baz\"),\n\t},\n})",
|
599 | "version": "1"
|
600 | },
|
601 | "$": {
|
602 | "source": "const principal = new iam.AccountPrincipal('123456789000')\n .withConditions({ StringEquals: { foo: \"baz\" } });",
|
603 | "version": "0"
|
604 | }
|
605 | },
|
606 | "location": {
|
607 | "api": {
|
608 | "api": "moduleReadme",
|
609 | "moduleFqn": "@aws-cdk/aws-iam"
|
610 | },
|
611 | "field": {
|
612 | "field": "markdown",
|
613 | "line": 222
|
614 | }
|
615 | },
|
616 | "didCompile": true,
|
617 | "fqnsReferenced": [
|
618 | "@aws-cdk/aws-iam.AccountPrincipal",
|
619 | "@aws-cdk/aws-iam.PrincipalBase",
|
620 | "@aws-cdk/aws-iam.PrincipalBase#withConditions"
|
621 | ],
|
622 | "fullSource": "import { Construct } from 'constructs';\nimport { CustomResource, Stack } from '@aws-cdk/core';\nimport * as codepipeline from '@aws-cdk/aws-codepipeline';\nimport * as dynamodb from '@aws-cdk/aws-dynamodb';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as iam from '@aws-cdk/aws-iam';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst principal = new iam.AccountPrincipal('123456789000')\n .withConditions({ StringEquals: { foo: \"baz\" } });\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
623 | "syntaxKindCounter": {
|
624 | "10": 2,
|
625 | "75": 6,
|
626 | "193": 2,
|
627 | "194": 2,
|
628 | "196": 1,
|
629 | "197": 1,
|
630 | "225": 1,
|
631 | "242": 1,
|
632 | "243": 1,
|
633 | "281": 2
|
634 | },
|
635 | "fqnsFingerprint": "6339fe68b404f2659e7236984c4f82dae33d5577f899f4afa6fed5a85ca44bcd"
|
636 | },
|
637 | "e0255902d0378c5663752bf93e948274242709921bad9ce9e29da3b5ff37c609": {
|
638 | "translations": {
|
639 | "python": {
|
640 | "source": "principal = iam.WebIdentityPrincipal(\"cognito-identity.amazonaws.com\", {\n \"StringEquals\": {\"cognito-identity.amazonaws.com:aud\": \"us-east-2:12345678-abcd-abcd-abcd-123456\"},\n \"ForAnyValue:StringLike\": {\"cognito-identity.amazonaws.com:amr\": \"unauthenticated\"}\n})",
|
641 | "version": "2"
|
642 | },
|
643 | "csharp": {
|
644 | "source": "WebIdentityPrincipal principal = new WebIdentityPrincipal(\"cognito-identity.amazonaws.com\", new Dictionary<string, object> {\n { \"StringEquals\", new Dictionary<string, string> { { \"cognito-identity.amazonaws.com:aud\", \"us-east-2:12345678-abcd-abcd-abcd-123456\" } } },\n { \"ForAnyValue:StringLike\", new Dictionary<string, string> { { \"cognito-identity.amazonaws.com:amr\", \"unauthenticated\" } } }\n});",
|
645 | "version": "1"
|
646 | },
|
647 | "java": {
|
648 | "source": "WebIdentityPrincipal principal = new WebIdentityPrincipal(\"cognito-identity.amazonaws.com\", Map.of(\n \"StringEquals\", Map.of(\"cognito-identity.amazonaws.com:aud\", \"us-east-2:12345678-abcd-abcd-abcd-123456\"),\n \"ForAnyValue:StringLike\", Map.of(\"cognito-identity.amazonaws.com:amr\", \"unauthenticated\")));",
|
649 | "version": "1"
|
650 | },
|
651 | "go": {
|
652 | "source": "principal := iam.NewWebIdentityPrincipal(jsii.String(\"cognito-identity.amazonaws.com\"), map[string]interface{}{\n\t\"StringEquals\": map[string]*string{\n\t\t\"cognito-identity.amazonaws.com:aud\": jsii.String(\"us-east-2:12345678-abcd-abcd-abcd-123456\"),\n\t},\n\t\"ForAnyValue:StringLike\": map[string]*string{\n\t\t\"cognito-identity.amazonaws.com:amr\": jsii.String(\"unauthenticated\"),\n\t},\n})",
|
653 | "version": "1"
|
654 | },
|
655 | "$": {
|
656 | "source": "const principal = new iam.WebIdentityPrincipal('cognito-identity.amazonaws.com', {\n 'StringEquals': { 'cognito-identity.amazonaws.com:aud': 'us-east-2:12345678-abcd-abcd-abcd-123456' },\n 'ForAnyValue:StringLike': {'cognito-identity.amazonaws.com:amr': 'unauthenticated' },\n});",
|
657 | "version": "0"
|
658 | }
|
659 | },
|
660 | "location": {
|
661 | "api": {
|
662 | "api": "moduleReadme",
|
663 | "moduleFqn": "@aws-cdk/aws-iam"
|
664 | },
|
665 | "field": {
|
666 | "field": "markdown",
|
667 | "line": 235
|
668 | }
|
669 | },
|
670 | "didCompile": true,
|
671 | "fqnsReferenced": [
|
672 | "@aws-cdk/aws-iam.WebIdentityPrincipal"
|
673 | ],
|
674 | "fullSource": "import { Construct } from 'constructs';\nimport { CustomResource, Stack } from '@aws-cdk/core';\nimport * as codepipeline from '@aws-cdk/aws-codepipeline';\nimport * as dynamodb from '@aws-cdk/aws-dynamodb';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as iam from '@aws-cdk/aws-iam';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst principal = new iam.WebIdentityPrincipal('cognito-identity.amazonaws.com', {\n 'StringEquals': { 'cognito-identity.amazonaws.com:aud': 'us-east-2:12345678-abcd-abcd-abcd-123456' },\n 'ForAnyValue:StringLike': {'cognito-identity.amazonaws.com:amr': 'unauthenticated' },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
675 | "syntaxKindCounter": {
|
676 | "10": 7,
|
677 | "75": 3,
|
678 | "193": 3,
|
679 | "194": 1,
|
680 | "197": 1,
|
681 | "225": 1,
|
682 | "242": 1,
|
683 | "243": 1,
|
684 | "281": 4
|
685 | },
|
686 | "fqnsFingerprint": "879c5be49aaf2d1485829ef30cbb745bf1e3fbc74e9e6d413d6cacab61c65cd4"
|
687 | },
|
688 | "799b98faca27f0d0360bf07646c6fef5ee7de16f94ff453ffe7176e2f97dc5b5": {
|
689 | "translations": {
|
690 | "python": {
|
691 | "source": "iam.Role(self, \"Role\",\n assumed_by=iam.WebIdentityPrincipal(\"cognito-identity.amazonaws.com\", {\n \"StringEquals\": {\n \"cognito-identity.amazonaws.com:aud\": \"us-east-2:12345678-abcd-abcd-abcd-123456\"\n },\n \"ForAnyValue:StringLike\": {\n \"cognito-identity.amazonaws.com:amr\": \"unauthenticated\"\n }\n }).with_session_tags()\n)",
|
692 | "version": "2"
|
693 | },
|
694 | "csharp": {
|
695 | "source": "new Role(this, \"Role\", new RoleProps {\n AssumedBy = new WebIdentityPrincipal(\"cognito-identity.amazonaws.com\", new Dictionary<string, object> {\n { \"StringEquals\", new Dictionary<string, string> {\n { \"cognito-identity.amazonaws.com:aud\", \"us-east-2:12345678-abcd-abcd-abcd-123456\" }\n } },\n { \"ForAnyValue:StringLike\", new Dictionary<string, string> {\n { \"cognito-identity.amazonaws.com:amr\", \"unauthenticated\" }\n } }\n }).WithSessionTags()\n});",
|
696 | "version": "1"
|
697 | },
|
698 | "java": {
|
699 | "source": "Role.Builder.create(this, \"Role\")\n .assumedBy(new WebIdentityPrincipal(\"cognito-identity.amazonaws.com\", Map.of(\n \"StringEquals\", Map.of(\n \"cognito-identity.amazonaws.com:aud\", \"us-east-2:12345678-abcd-abcd-abcd-123456\"),\n \"ForAnyValue:StringLike\", Map.of(\n \"cognito-identity.amazonaws.com:amr\", \"unauthenticated\"))).withSessionTags())\n .build();",
|
700 | "version": "1"
|
701 | },
|
702 | "go": {
|
703 | "source": "iam.NewRole(this, jsii.String(\"Role\"), &roleProps{\n\tassumedBy: iam.NewWebIdentityPrincipal(jsii.String(\"cognito-identity.amazonaws.com\"), map[string]interface{}{\n\t\t\"StringEquals\": map[string]*string{\n\t\t\t\"cognito-identity.amazonaws.com:aud\": jsii.String(\"us-east-2:12345678-abcd-abcd-abcd-123456\"),\n\t\t},\n\t\t\"ForAnyValue:StringLike\": map[string]*string{\n\t\t\t\"cognito-identity.amazonaws.com:amr\": jsii.String(\"unauthenticated\"),\n\t\t},\n\t}).withSessionTags(),\n})",
|
704 | "version": "1"
|
705 | },
|
706 | "$": {
|
707 | "source": "new iam.Role(this, 'Role', {\n assumedBy: new iam.WebIdentityPrincipal('cognito-identity.amazonaws.com', {\n 'StringEquals': {\n 'cognito-identity.amazonaws.com:aud': 'us-east-2:12345678-abcd-abcd-abcd-123456',\n },\n 'ForAnyValue:StringLike': {\n 'cognito-identity.amazonaws.com:amr': 'unauthenticated',\n },\n }).withSessionTags(),\n});",
|
708 | "version": "0"
|
709 | }
|
710 | },
|
711 | "location": {
|
712 | "api": {
|
713 | "api": "moduleReadme",
|
714 | "moduleFqn": "@aws-cdk/aws-iam"
|
715 | },
|
716 | "field": {
|
717 | "field": "markdown",
|
718 | "line": 247
|
719 | }
|
720 | },
|
721 | "didCompile": true,
|
722 | "fqnsReferenced": [
|
723 | "@aws-cdk/aws-iam.IPrincipal",
|
724 | "@aws-cdk/aws-iam.PrincipalBase#withSessionTags",
|
725 | "@aws-cdk/aws-iam.Role",
|
726 | "@aws-cdk/aws-iam.RoleProps",
|
727 | "@aws-cdk/aws-iam.WebIdentityPrincipal",
|
728 | "constructs.Construct"
|
729 | ],
|
730 | "fullSource": "import { Construct } from 'constructs';\nimport { CustomResource, Stack } from '@aws-cdk/core';\nimport * as codepipeline from '@aws-cdk/aws-codepipeline';\nimport * as dynamodb from '@aws-cdk/aws-dynamodb';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as iam from '@aws-cdk/aws-iam';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nnew iam.Role(this, 'Role', {\n assumedBy: new iam.WebIdentityPrincipal('cognito-identity.amazonaws.com', {\n 'StringEquals': {\n 'cognito-identity.amazonaws.com:aud': 'us-east-2:12345678-abcd-abcd-abcd-123456',\n },\n 'ForAnyValue:StringLike': {\n 'cognito-identity.amazonaws.com:amr': 'unauthenticated',\n },\n }).withSessionTags(),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
731 | "syntaxKindCounter": {
|
732 | "10": 8,
|
733 | "75": 6,
|
734 | "104": 1,
|
735 | "193": 4,
|
736 | "194": 3,
|
737 | "196": 1,
|
738 | "197": 2,
|
739 | "226": 1,
|
740 | "281": 5
|
741 | },
|
742 | "fqnsFingerprint": "130ad210b47363359e304ed338573b570ec2721e56cc5fdee5d30372896a6207"
|
743 | },
|
744 | "5c214b1ace9c8a2d60cde42f5501251b159b85c9d3b8fcd3c38efab493d39657": {
|
745 | "translations": {
|
746 | "python": {
|
747 | "source": "policy_document = {\n \"Version\": \"2012-10-17\",\n \"Statement\": [{\n \"Sid\": \"FirstStatement\",\n \"Effect\": \"Allow\",\n \"Action\": [\"iam:ChangePassword\"],\n \"Resource\": \"*\"\n }, {\n \"Sid\": \"SecondStatement\",\n \"Effect\": \"Allow\",\n \"Action\": \"s3:ListAllMyBuckets\",\n \"Resource\": \"*\"\n }, {\n \"Sid\": \"ThirdStatement\",\n \"Effect\": \"Allow\",\n \"Action\": [\"s3:List*\", \"s3:Get*\"\n ],\n \"Resource\": [\"arn:aws:s3:::confidential-data\", \"arn:aws:s3:::confidential-data/*\"\n ],\n \"Condition\": {\"Bool\": {\"aws:_multi_factor_auth_present\": \"true\"}}\n }\n ]\n}\n\ncustom_policy_document = iam.PolicyDocument.from_json(policy_document)\n\n# You can pass this document as an initial document to a ManagedPolicy\n# or inline Policy.\nnew_managed_policy = iam.ManagedPolicy(self, \"MyNewManagedPolicy\",\n document=custom_policy_document\n)\nnew_policy = iam.Policy(self, \"MyNewPolicy\",\n document=custom_policy_document\n)",
|
748 | "version": "2"
|
749 | },
|
750 | "csharp": {
|
751 | "source": "IDictionary<string, object> policyDocument = new Dictionary<string, object> {\n { \"Version\", \"2012-10-17\" },\n { \"Statement\", new [] { new Dictionary<string, object> {\n { \"Sid\", \"FirstStatement\" },\n { \"Effect\", \"Allow\" },\n { \"Action\", new [] { \"iam:ChangePassword\" } },\n { \"Resource\", \"*\" }\n }, new Dictionary<string, string> {\n { \"Sid\", \"SecondStatement\" },\n { \"Effect\", \"Allow\" },\n { \"Action\", \"s3:ListAllMyBuckets\" },\n { \"Resource\", \"*\" }\n }, new Dictionary<string, object> {\n { \"Sid\", \"ThirdStatement\" },\n { \"Effect\", \"Allow\" },\n { \"Action\", new [] { \"s3:List*\", \"s3:Get*\" } },\n { \"Resource\", new [] { \"arn:aws:s3:::confidential-data\", \"arn:aws:s3:::confidential-data/*\" } },\n { \"Condition\", new Dictionary<string, IDictionary<string, string>> { { \"Bool\", new Dictionary<string, string> { { \"aws:MultiFactorAuthPresent\", \"true\" } } } } }\n } } }\n};\n\nPolicyDocument customPolicyDocument = PolicyDocument.FromJson(policyDocument);\n\n// You can pass this document as an initial document to a ManagedPolicy\n// or inline Policy.\nManagedPolicy newManagedPolicy = new ManagedPolicy(this, \"MyNewManagedPolicy\", new ManagedPolicyProps {\n Document = customPolicyDocument\n});\nPolicy newPolicy = new Policy(this, \"MyNewPolicy\", new PolicyProps {\n Document = customPolicyDocument\n});",
|
752 | "version": "1"
|
753 | },
|
754 | "java": {
|
755 | "source": "Map<String, Object> policyDocument = Map.of(\n \"Version\", \"2012-10-17\",\n \"Statement\", List.of(Map.of(\n \"Sid\", \"FirstStatement\",\n \"Effect\", \"Allow\",\n \"Action\", List.of(\"iam:ChangePassword\"),\n \"Resource\", \"*\"), Map.of(\n \"Sid\", \"SecondStatement\",\n \"Effect\", \"Allow\",\n \"Action\", \"s3:ListAllMyBuckets\",\n \"Resource\", \"*\"), Map.of(\n \"Sid\", \"ThirdStatement\",\n \"Effect\", \"Allow\",\n \"Action\", List.of(\"s3:List*\", \"s3:Get*\"),\n \"Resource\", List.of(\"arn:aws:s3:::confidential-data\", \"arn:aws:s3:::confidential-data/*\"),\n \"Condition\", Map.of(\"Bool\", Map.of(\"aws:MultiFactorAuthPresent\", \"true\")))));\n\nPolicyDocument customPolicyDocument = PolicyDocument.fromJson(policyDocument);\n\n// You can pass this document as an initial document to a ManagedPolicy\n// or inline Policy.\nManagedPolicy newManagedPolicy = ManagedPolicy.Builder.create(this, \"MyNewManagedPolicy\")\n .document(customPolicyDocument)\n .build();\nPolicy newPolicy = Policy.Builder.create(this, \"MyNewPolicy\")\n .document(customPolicyDocument)\n .build();",
|
756 | "version": "1"
|
757 | },
|
758 | "go": {
|
759 | "source": "policyDocument := map[string]interface{}{\n\t\"Version\": jsii.String(\"2012-10-17\"),\n\t\"Statement\": []interface{}{\n\t\tmap[string]interface{}{\n\t\t\t\"Sid\": jsii.String(\"FirstStatement\"),\n\t\t\t\"Effect\": jsii.String(\"Allow\"),\n\t\t\t\"Action\": []*string{\n\t\t\t\tjsii.String(\"iam:ChangePassword\"),\n\t\t\t},\n\t\t\t\"Resource\": jsii.String(\"*\"),\n\t\t},\n\t\tmap[string]*string{\n\t\t\t\"Sid\": jsii.String(\"SecondStatement\"),\n\t\t\t\"Effect\": jsii.String(\"Allow\"),\n\t\t\t\"Action\": jsii.String(\"s3:ListAllMyBuckets\"),\n\t\t\t\"Resource\": jsii.String(\"*\"),\n\t\t},\n\t\tmap[string]interface{}{\n\t\t\t\"Sid\": jsii.String(\"ThirdStatement\"),\n\t\t\t\"Effect\": jsii.String(\"Allow\"),\n\t\t\t\"Action\": []*string{\n\t\t\t\tjsii.String(\"s3:List*\"),\n\t\t\t\tjsii.String(\"s3:Get*\"),\n\t\t\t},\n\t\t\t\"Resource\": []*string{\n\t\t\t\tjsii.String(\"arn:aws:s3:::confidential-data\"),\n\t\t\t\tjsii.String(\"arn:aws:s3:::confidential-data/*\"),\n\t\t\t},\n\t\t\t\"Condition\": map[string]map[string]*string{\n\t\t\t\t\"Bool\": map[string]*string{\n\t\t\t\t\t\"aws:MultiFactorAuthPresent\": jsii.String(\"true\"),\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t},\n}\n\ncustomPolicyDocument := iam.policyDocument.fromJson(policyDocument)\n\n// You can pass this document as an initial document to a ManagedPolicy\n// or inline Policy.\nnewManagedPolicy := iam.NewManagedPolicy(this, jsii.String(\"MyNewManagedPolicy\"), &managedPolicyProps{\n\tdocument: customPolicyDocument,\n})\nnewPolicy := iam.NewPolicy(this, jsii.String(\"MyNewPolicy\"), &policyProps{\n\tdocument: customPolicyDocument,\n})",
|
760 | "version": "1"
|
761 | },
|
762 | "$": {
|
763 | "source": "const policyDocument = {\n \"Version\": \"2012-10-17\",\n \"Statement\": [\n {\n \"Sid\": \"FirstStatement\",\n \"Effect\": \"Allow\",\n \"Action\": [\"iam:ChangePassword\"],\n \"Resource\": \"*\"\n },\n {\n \"Sid\": \"SecondStatement\",\n \"Effect\": \"Allow\",\n \"Action\": \"s3:ListAllMyBuckets\",\n \"Resource\": \"*\"\n },\n {\n \"Sid\": \"ThirdStatement\",\n \"Effect\": \"Allow\",\n \"Action\": [\n \"s3:List*\",\n \"s3:Get*\"\n ],\n \"Resource\": [\n \"arn:aws:s3:::confidential-data\",\n \"arn:aws:s3:::confidential-data/*\"\n ],\n \"Condition\": {\"Bool\": {\"aws:MultiFactorAuthPresent\": \"true\"}}\n }\n ]\n};\n\nconst customPolicyDocument = iam.PolicyDocument.fromJson(policyDocument);\n\n// You can pass this document as an initial document to a ManagedPolicy\n// or inline Policy.\nconst newManagedPolicy = new iam.ManagedPolicy(this, 'MyNewManagedPolicy', {\n document: customPolicyDocument,\n});\nconst newPolicy = new iam.Policy(this, 'MyNewPolicy', {\n document: customPolicyDocument,\n});",
|
764 | "version": "0"
|
765 | }
|
766 | },
|
767 | "location": {
|
768 | "api": {
|
769 | "api": "moduleReadme",
|
770 | "moduleFqn": "@aws-cdk/aws-iam"
|
771 | },
|
772 | "field": {
|
773 | "field": "markdown",
|
774 | "line": 265
|
775 | }
|
776 | },
|
777 | "didCompile": true,
|
778 | "fqnsReferenced": [
|
779 | "@aws-cdk/aws-iam.ManagedPolicy",
|
780 | "@aws-cdk/aws-iam.ManagedPolicyProps",
|
781 | "@aws-cdk/aws-iam.Policy",
|
782 | "@aws-cdk/aws-iam.PolicyDocument",
|
783 | "@aws-cdk/aws-iam.PolicyDocument#fromJson",
|
784 | "@aws-cdk/aws-iam.PolicyProps",
|
785 | "constructs.Construct"
|
786 | ],
|
787 | "fullSource": "import { Construct } from 'constructs';\nimport { CustomResource, Stack } from '@aws-cdk/core';\nimport * as codepipeline from '@aws-cdk/aws-codepipeline';\nimport * as dynamodb from '@aws-cdk/aws-dynamodb';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as iam from '@aws-cdk/aws-iam';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst policyDocument = {\n \"Version\": \"2012-10-17\",\n \"Statement\": [\n {\n \"Sid\": \"FirstStatement\",\n \"Effect\": \"Allow\",\n \"Action\": [\"iam:ChangePassword\"],\n \"Resource\": \"*\"\n },\n {\n \"Sid\": \"SecondStatement\",\n \"Effect\": \"Allow\",\n \"Action\": \"s3:ListAllMyBuckets\",\n \"Resource\": \"*\"\n },\n {\n \"Sid\": \"ThirdStatement\",\n \"Effect\": \"Allow\",\n \"Action\": [\n \"s3:List*\",\n \"s3:Get*\"\n ],\n \"Resource\": [\n \"arn:aws:s3:::confidential-data\",\n \"arn:aws:s3:::confidential-data/*\"\n ],\n \"Condition\": {\"Bool\": {\"aws:MultiFactorAuthPresent\": \"true\"}}\n }\n ]\n};\n\nconst customPolicyDocument = iam.PolicyDocument.fromJson(policyDocument);\n\n// You can pass this document as an initial document to a ManagedPolicy\n// or inline Policy.\nconst newManagedPolicy = new iam.ManagedPolicy(this, 'MyNewManagedPolicy', {\n document: customPolicyDocument,\n});\nconst newPolicy = new iam.Policy(this, 'MyNewPolicy', {\n document: customPolicyDocument,\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
788 | "syntaxKindCounter": {
|
789 | "10": 35,
|
790 | "75": 16,
|
791 | "104": 2,
|
792 | "192": 4,
|
793 | "193": 8,
|
794 | "194": 4,
|
795 | "196": 1,
|
796 | "197": 2,
|
797 | "225": 4,
|
798 | "242": 4,
|
799 | "243": 4,
|
800 | "281": 19
|
801 | },
|
802 | "fqnsFingerprint": "82ab6b26a5a9cfc78c9cb3216cb17dc03b13fda4858cef474dbb37145603e575"
|
803 | },
|
804 | "0c9953cbe048ca635c01a235449f1f0a40abc671afa69c5155dcd933ac01ef47": {
|
805 | "translations": {
|
806 | "python": {
|
807 | "source": "# Directly apply the boundary to a Role you create\n# role: iam.Role\n\n# Apply the boundary to an Role that was implicitly created for you\n# fn: lambda.Function\n\n# Remove a Permissions Boundary that is inherited, for example from the Stack level\n# custom_resource: CustomResource\n# This imports an existing policy.\nboundary = iam.ManagedPolicy.from_managed_policy_arn(self, \"Boundary\", \"arn:aws:iam::123456789012:policy/boundary\")\n\n# This creates a new boundary\nboundary2 = iam.ManagedPolicy(self, \"Boundary2\",\n statements=[\n iam.PolicyStatement(\n effect=iam.Effect.DENY,\n actions=[\"iam:*\"],\n resources=[\"*\"]\n )\n ]\n)\niam.PermissionsBoundary.of(role).apply(boundary)\niam.PermissionsBoundary.of(fn).apply(boundary)\n\n# Apply the boundary to all Roles in a stack\niam.PermissionsBoundary.of(self).apply(boundary)\niam.PermissionsBoundary.of(custom_resource).clear()",
|
808 | "version": "2"
|
809 | },
|
810 | "csharp": {
|
811 | "source": "// Directly apply the boundary to a Role you create\nRole role;\n\n// Apply the boundary to an Role that was implicitly created for you\nFunction fn;\n\n// Remove a Permissions Boundary that is inherited, for example from the Stack level\nCustomResource customResource;\n// This imports an existing policy.\nIManagedPolicy boundary = ManagedPolicy.FromManagedPolicyArn(this, \"Boundary\", \"arn:aws:iam::123456789012:policy/boundary\");\n\n// This creates a new boundary\nManagedPolicy boundary2 = new ManagedPolicy(this, \"Boundary2\", new ManagedPolicyProps {\n Statements = new [] {\n new PolicyStatement(new PolicyStatementProps {\n Effect = Effect.DENY,\n Actions = new [] { \"iam:*\" },\n Resources = new [] { \"*\" }\n }) }\n});\nPermissionsBoundary.Of(role).Apply(boundary);\nPermissionsBoundary.Of(fn).Apply(boundary);\n\n// Apply the boundary to all Roles in a stack\nPermissionsBoundary.Of(this).Apply(boundary);\nPermissionsBoundary.Of(customResource).Clear();",
|
812 | "version": "1"
|
813 | },
|
814 | "java": {
|
815 | "source": "// Directly apply the boundary to a Role you create\nRole role;\n\n// Apply the boundary to an Role that was implicitly created for you\nFunction fn;\n\n// Remove a Permissions Boundary that is inherited, for example from the Stack level\nCustomResource customResource;\n// This imports an existing policy.\nIManagedPolicy boundary = ManagedPolicy.fromManagedPolicyArn(this, \"Boundary\", \"arn:aws:iam::123456789012:policy/boundary\");\n\n// This creates a new boundary\nManagedPolicy boundary2 = ManagedPolicy.Builder.create(this, \"Boundary2\")\n .statements(List.of(\n PolicyStatement.Builder.create()\n .effect(Effect.DENY)\n .actions(List.of(\"iam:*\"))\n .resources(List.of(\"*\"))\n .build()))\n .build();\nPermissionsBoundary.of(role).apply(boundary);\nPermissionsBoundary.of(fn).apply(boundary);\n\n// Apply the boundary to all Roles in a stack\nPermissionsBoundary.of(this).apply(boundary);\nPermissionsBoundary.of(customResource).clear();",
|
816 | "version": "1"
|
817 | },
|
818 | "go": {
|
819 | "source": "// Directly apply the boundary to a Role you create\nvar role role\n\n// Apply the boundary to an Role that was implicitly created for you\nvar fn function\n\n// Remove a Permissions Boundary that is inherited, for example from the Stack level\nvar customResource customResource\n// This imports an existing policy.\nboundary := iam.managedPolicy.fromManagedPolicyArn(this, jsii.String(\"Boundary\"), jsii.String(\"arn:aws:iam::123456789012:policy/boundary\"))\n\n// This creates a new boundary\nboundary2 := iam.NewManagedPolicy(this, jsii.String(\"Boundary2\"), &managedPolicyProps{\n\tstatements: []policyStatement{\n\t\tiam.NewPolicyStatement(&policyStatementProps{\n\t\t\teffect: iam.effect_DENY,\n\t\t\tactions: []*string{\n\t\t\t\tjsii.String(\"iam:*\"),\n\t\t\t},\n\t\t\tresources: []*string{\n\t\t\t\tjsii.String(\"*\"),\n\t\t\t},\n\t\t}),\n\t},\n})\niam.permissionsBoundary.of(role).apply(boundary)\niam.permissionsBoundary.of(fn).apply(boundary)\n\n// Apply the boundary to all Roles in a stack\niam.permissionsBoundary.of(this).apply(boundary)\niam.permissionsBoundary.of(customResource).clear()",
|
820 | "version": "1"
|
821 | },
|
822 | "$": {
|
823 | "source": "// This imports an existing policy.\nconst boundary = iam.ManagedPolicy.fromManagedPolicyArn(this, 'Boundary', 'arn:aws:iam::123456789012:policy/boundary');\n\n// This creates a new boundary\nconst boundary2 = new iam.ManagedPolicy(this, 'Boundary2', {\n statements: [\n new iam.PolicyStatement({\n effect: iam.Effect.DENY,\n actions: ['iam:*'],\n resources: ['*'],\n }),\n ],\n});\n\n// Directly apply the boundary to a Role you create\ndeclare const role: iam.Role;\niam.PermissionsBoundary.of(role).apply(boundary);\n\n// Apply the boundary to an Role that was implicitly created for you\ndeclare const fn: lambda.Function;\niam.PermissionsBoundary.of(fn).apply(boundary);\n\n// Apply the boundary to all Roles in a stack\niam.PermissionsBoundary.of(this).apply(boundary);\n\n// Remove a Permissions Boundary that is inherited, for example from the Stack level\ndeclare const customResource: CustomResource;\niam.PermissionsBoundary.of(customResource).clear();",
|
824 | "version": "0"
|
825 | }
|
826 | },
|
827 | "location": {
|
828 | "api": {
|
829 | "api": "moduleReadme",
|
830 | "moduleFqn": "@aws-cdk/aws-iam"
|
831 | },
|
832 | "field": {
|
833 | "field": "markdown",
|
834 | "line": 325
|
835 | }
|
836 | },
|
837 | "didCompile": true,
|
838 | "fqnsReferenced": [
|
839 | "@aws-cdk/aws-iam.Effect",
|
840 | "@aws-cdk/aws-iam.Effect#DENY",
|
841 | "@aws-cdk/aws-iam.IManagedPolicy",
|
842 | "@aws-cdk/aws-iam.ManagedPolicy",
|
843 | "@aws-cdk/aws-iam.ManagedPolicy#fromManagedPolicyArn",
|
844 | "@aws-cdk/aws-iam.ManagedPolicyProps",
|
845 | "@aws-cdk/aws-iam.PermissionsBoundary",
|
846 | "@aws-cdk/aws-iam.PermissionsBoundary#apply",
|
847 | "@aws-cdk/aws-iam.PermissionsBoundary#clear",
|
848 | "@aws-cdk/aws-iam.PermissionsBoundary#of",
|
849 | "@aws-cdk/aws-iam.PolicyStatement",
|
850 | "@aws-cdk/aws-iam.PolicyStatementProps",
|
851 | "constructs.Construct",
|
852 | "constructs.IConstruct"
|
853 | ],
|
854 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n\n\n// Directly apply the boundary to a Role you create\ndeclare const role: iam.Role;\n\n// Apply the boundary to an Role that was implicitly created for you\ndeclare const fn: lambda.Function;\n\n// Remove a Permissions Boundary that is inherited, for example from the Stack level\ndeclare const customResource: CustomResource;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from 'constructs';\nimport { CustomResource, Stack } from '@aws-cdk/core';\nimport * as codepipeline from '@aws-cdk/aws-codepipeline';\nimport * as dynamodb from '@aws-cdk/aws-dynamodb';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as iam from '@aws-cdk/aws-iam';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n// This imports an existing policy.\nconst boundary = iam.ManagedPolicy.fromManagedPolicyArn(this, 'Boundary', 'arn:aws:iam::123456789012:policy/boundary');\n\n// This creates a new boundary\nconst boundary2 = new iam.ManagedPolicy(this, 'Boundary2', {\n statements: [\n new iam.PolicyStatement({\n effect: iam.Effect.DENY,\n actions: ['iam:*'],\n resources: ['*'],\n }),\n ],\n});\niam.PermissionsBoundary.of(role).apply(boundary);\niam.PermissionsBoundary.of(fn).apply(boundary);\n\n// Apply the boundary to all Roles in a stack\niam.PermissionsBoundary.of(this).apply(boundary);\niam.PermissionsBoundary.of(customResource).clear();\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
855 | "syntaxKindCounter": {
|
856 | "10": 5,
|
857 | "75": 46,
|
858 | "104": 3,
|
859 | "130": 3,
|
860 | "153": 2,
|
861 | "169": 3,
|
862 | "192": 3,
|
863 | "193": 2,
|
864 | "194": 18,
|
865 | "196": 9,
|
866 | "197": 2,
|
867 | "225": 5,
|
868 | "226": 4,
|
869 | "242": 5,
|
870 | "243": 5,
|
871 | "281": 4,
|
872 | "290": 1
|
873 | },
|
874 | "fqnsFingerprint": "c419a1fac19889728caee3db5c3b0de65140ae70b59458ef861d8ff9c81fd873"
|
875 | },
|
876 | "628dff1205f906fa270c69f16ae34e109d9f9da5e6345f717ce9f6af8995aafc": {
|
877 | "translations": {
|
878 | "python": {
|
879 | "source": "provider = iam.OpenIdConnectProvider(self, \"MyProvider\",\n url=\"https://openid/connect\",\n client_ids=[\"myclient1\", \"myclient2\"]\n)",
|
880 | "version": "2"
|
881 | },
|
882 | "csharp": {
|
883 | "source": "OpenIdConnectProvider provider = new OpenIdConnectProvider(this, \"MyProvider\", new OpenIdConnectProviderProps {\n Url = \"https://openid/connect\",\n ClientIds = new [] { \"myclient1\", \"myclient2\" }\n});",
|
884 | "version": "1"
|
885 | },
|
886 | "java": {
|
887 | "source": "OpenIdConnectProvider provider = OpenIdConnectProvider.Builder.create(this, \"MyProvider\")\n .url(\"https://openid/connect\")\n .clientIds(List.of(\"myclient1\", \"myclient2\"))\n .build();",
|
888 | "version": "1"
|
889 | },
|
890 | "go": {
|
891 | "source": "provider := iam.NewOpenIdConnectProvider(this, jsii.String(\"MyProvider\"), &openIdConnectProviderProps{\n\turl: jsii.String(\"https://openid/connect\"),\n\tclientIds: []*string{\n\t\tjsii.String(\"myclient1\"),\n\t\tjsii.String(\"myclient2\"),\n\t},\n})",
|
892 | "version": "1"
|
893 | },
|
894 | "$": {
|
895 | "source": "const provider = new iam.OpenIdConnectProvider(this, 'MyProvider', {\n url: 'https://openid/connect',\n clientIds: [ 'myclient1', 'myclient2' ],\n});",
|
896 | "version": "0"
|
897 | }
|
898 | },
|
899 | "location": {
|
900 | "api": {
|
901 | "api": "moduleReadme",
|
902 | "moduleFqn": "@aws-cdk/aws-iam"
|
903 | },
|
904 | "field": {
|
905 | "field": "markdown",
|
906 | "line": 376
|
907 | }
|
908 | },
|
909 | "didCompile": true,
|
910 | "fqnsReferenced": [
|
911 | "@aws-cdk/aws-iam.OpenIdConnectProvider",
|
912 | "@aws-cdk/aws-iam.OpenIdConnectProviderProps",
|
913 | "constructs.Construct"
|
914 | ],
|
915 | "fullSource": "import { Construct } from 'constructs';\nimport { CustomResource, Stack } from '@aws-cdk/core';\nimport * as codepipeline from '@aws-cdk/aws-codepipeline';\nimport * as dynamodb from '@aws-cdk/aws-dynamodb';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as iam from '@aws-cdk/aws-iam';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst provider = new iam.OpenIdConnectProvider(this, 'MyProvider', {\n url: 'https://openid/connect',\n clientIds: [ 'myclient1', 'myclient2' ],\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
916 | "syntaxKindCounter": {
|
917 | "10": 4,
|
918 | "75": 5,
|
919 | "104": 1,
|
920 | "192": 1,
|
921 | "193": 1,
|
922 | "194": 1,
|
923 | "197": 1,
|
924 | "225": 1,
|
925 | "242": 1,
|
926 | "243": 1,
|
927 | "281": 2
|
928 | },
|
929 | "fqnsFingerprint": "159053d590e4f7a5ef4a6b880010985296f4f4a1fc521dd7037bf8cf91028c50"
|
930 | },
|
931 | "43e12444450a7b42e702d7ce8866ab15bcdd5c78d4a1a2831894fc22d0e08532": {
|
932 | "translations": {
|
933 | "python": {
|
934 | "source": "import aws_cdk.aws_cognito as cognito\n\n# my_provider: iam.OpenIdConnectProvider\n\ncognito.CfnIdentityPool(self, \"IdentityPool\",\n open_id_connect_provider_arns=[my_provider.open_id_connect_provider_arn],\n # And the other properties for your identity pool\n allow_unauthenticated_identities=False\n)",
|
935 | "version": "2"
|
936 | },
|
937 | "csharp": {
|
938 | "source": "using Amazon.CDK.AWS.Cognito;\n\nOpenIdConnectProvider myProvider;\n\nnew CfnIdentityPool(this, \"IdentityPool\", new CfnIdentityPoolProps {\n OpenIdConnectProviderArns = new [] { myProvider.OpenIdConnectProviderArn },\n // And the other properties for your identity pool\n AllowUnauthenticatedIdentities = false\n});",
|
939 | "version": "1"
|
940 | },
|
941 | "java": {
|
942 | "source": "import software.amazon.awscdk.services.cognito.*;\n\nOpenIdConnectProvider myProvider;\n\nCfnIdentityPool.Builder.create(this, \"IdentityPool\")\n .openIdConnectProviderArns(List.of(myProvider.getOpenIdConnectProviderArn()))\n // And the other properties for your identity pool\n .allowUnauthenticatedIdentities(false)\n .build();",
|
943 | "version": "1"
|
944 | },
|
945 | "go": {
|
946 | "source": "import cognito \"github.com/aws-samples/dummy/awscdkawscognito\"\n\nvar myProvider openIdConnectProvider\n\ncognito.NewCfnIdentityPool(this, jsii.String(\"IdentityPool\"), &cfnIdentityPoolProps{\n\topenIdConnectProviderArns: []*string{\n\t\tmyProvider.openIdConnectProviderArn,\n\t},\n\t// And the other properties for your identity pool\n\tallowUnauthenticatedIdentities: jsii.Boolean(false),\n})",
|
947 | "version": "1"
|
948 | },
|
949 | "$": {
|
950 | "source": "import * as cognito from '@aws-cdk/aws-cognito';\n\ndeclare const myProvider: iam.OpenIdConnectProvider;\nnew cognito.CfnIdentityPool(this, 'IdentityPool', {\n openIdConnectProviderArns: [myProvider.openIdConnectProviderArn],\n // And the other properties for your identity pool\n allowUnauthenticatedIdentities: false,\n});",
|
951 | "version": "0"
|
952 | }
|
953 | },
|
954 | "location": {
|
955 | "api": {
|
956 | "api": "moduleReadme",
|
957 | "moduleFqn": "@aws-cdk/aws-iam"
|
958 | },
|
959 | "field": {
|
960 | "field": "markdown",
|
961 | "line": 394
|
962 | }
|
963 | },
|
964 | "didCompile": true,
|
965 | "fqnsReferenced": [
|
966 | "@aws-cdk/aws-cognito.CfnIdentityPool",
|
967 | "@aws-cdk/aws-cognito.CfnIdentityPoolProps",
|
968 | "@aws-cdk/aws-iam.OpenIdConnectProvider#openIdConnectProviderArn",
|
969 | "@aws-cdk/core.Construct"
|
970 | ],
|
971 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\nimport * as cognito from '@aws-cdk/aws-cognito';\n\ndeclare const myProvider: iam.OpenIdConnectProvider;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from 'constructs';\nimport { CustomResource, Stack } from '@aws-cdk/core';\nimport * as codepipeline from '@aws-cdk/aws-codepipeline';\nimport * as dynamodb from '@aws-cdk/aws-dynamodb';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as iam from '@aws-cdk/aws-iam';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\nnew cognito.CfnIdentityPool(this, 'IdentityPool', {\n openIdConnectProviderArns: [myProvider.openIdConnectProviderArn],\n // And the other properties for your identity pool\n allowUnauthenticatedIdentities: false,\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
972 | "syntaxKindCounter": {
|
973 | "10": 2,
|
974 | "75": 10,
|
975 | "91": 1,
|
976 | "104": 1,
|
977 | "130": 1,
|
978 | "153": 1,
|
979 | "169": 1,
|
980 | "192": 1,
|
981 | "193": 1,
|
982 | "194": 2,
|
983 | "197": 1,
|
984 | "225": 1,
|
985 | "226": 1,
|
986 | "242": 1,
|
987 | "243": 1,
|
988 | "254": 1,
|
989 | "255": 1,
|
990 | "256": 1,
|
991 | "281": 2,
|
992 | "290": 1
|
993 | },
|
994 | "fqnsFingerprint": "8ebd577db3895496f10bb6f209dad046186597fb1b4db763904baf91ef65477c"
|
995 | },
|
996 | "3bf35e7c632d4ad0c69b30b25ddb739f76443899c57c1c9d192b365ba766ffa6": {
|
997 | "translations": {
|
998 | "python": {
|
999 | "source": "provider = iam.OpenIdConnectProvider(self, \"MyProvider\",\n url=\"https://openid/connect\",\n client_ids=[\"myclient1\", \"myclient2\"]\n)\nprincipal = iam.OpenIdConnectPrincipal(provider)",
|
1000 | "version": "2"
|
1001 | },
|
1002 | "csharp": {
|
1003 | "source": "OpenIdConnectProvider provider = new OpenIdConnectProvider(this, \"MyProvider\", new OpenIdConnectProviderProps {\n Url = \"https://openid/connect\",\n ClientIds = new [] { \"myclient1\", \"myclient2\" }\n});\nOpenIdConnectPrincipal principal = new OpenIdConnectPrincipal(provider);",
|
1004 | "version": "1"
|
1005 | },
|
1006 | "java": {
|
1007 | "source": "OpenIdConnectProvider provider = OpenIdConnectProvider.Builder.create(this, \"MyProvider\")\n .url(\"https://openid/connect\")\n .clientIds(List.of(\"myclient1\", \"myclient2\"))\n .build();\nOpenIdConnectPrincipal principal = new OpenIdConnectPrincipal(provider);",
|
1008 | "version": "1"
|
1009 | },
|
1010 | "go": {
|
1011 | "source": "provider := iam.NewOpenIdConnectProvider(this, jsii.String(\"MyProvider\"), &openIdConnectProviderProps{\n\turl: jsii.String(\"https://openid/connect\"),\n\tclientIds: []*string{\n\t\tjsii.String(\"myclient1\"),\n\t\tjsii.String(\"myclient2\"),\n\t},\n})\nprincipal := iam.NewOpenIdConnectPrincipal(provider)",
|
1012 | "version": "1"
|
1013 | },
|
1014 | "$": {
|
1015 | "source": "const provider = new iam.OpenIdConnectProvider(this, 'MyProvider', {\n url: 'https://openid/connect',\n clientIds: [ 'myclient1', 'myclient2' ],\n});\nconst principal = new iam.OpenIdConnectPrincipal(provider);",
|
1016 | "version": "0"
|
1017 | }
|
1018 | },
|
1019 | "location": {
|
1020 | "api": {
|
1021 | "api": "moduleReadme",
|
1022 | "moduleFqn": "@aws-cdk/aws-iam"
|
1023 | },
|
1024 | "field": {
|
1025 | "field": "markdown",
|
1026 | "line": 407
|
1027 | }
|
1028 | },
|
1029 | "didCompile": true,
|
1030 | "fqnsReferenced": [
|
1031 | "@aws-cdk/aws-iam.IOpenIdConnectProvider",
|
1032 | "@aws-cdk/aws-iam.OpenIdConnectPrincipal",
|
1033 | "@aws-cdk/aws-iam.OpenIdConnectProvider",
|
1034 | "@aws-cdk/aws-iam.OpenIdConnectProviderProps",
|
1035 | "constructs.Construct"
|
1036 | ],
|
1037 | "fullSource": "import { Construct } from 'constructs';\nimport { CustomResource, Stack } from '@aws-cdk/core';\nimport * as codepipeline from '@aws-cdk/aws-codepipeline';\nimport * as dynamodb from '@aws-cdk/aws-dynamodb';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as iam from '@aws-cdk/aws-iam';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst provider = new iam.OpenIdConnectProvider(this, 'MyProvider', {\n url: 'https://openid/connect',\n clientIds: [ 'myclient1', 'myclient2' ],\n});\nconst principal = new iam.OpenIdConnectPrincipal(provider);\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
1038 | "syntaxKindCounter": {
|
1039 | "10": 4,
|
1040 | "75": 9,
|
1041 | "104": 1,
|
1042 | "192": 1,
|
1043 | "193": 1,
|
1044 | "194": 2,
|
1045 | "197": 2,
|
1046 | "225": 2,
|
1047 | "242": 2,
|
1048 | "243": 2,
|
1049 | "281": 2
|
1050 | },
|
1051 | "fqnsFingerprint": "2a2d9e18ecc625dcce97ed74f058901a9f6778e020cee9158e801906ee75a9bf"
|
1052 | },
|
1053 | "dcd18efa8e0a447e0ae88b3dfbb92fc68fd8502f438a1c439e31f9ef27995777": {
|
1054 | "translations": {
|
1055 | "python": {
|
1056 | "source": "iam.SamlProvider(self, \"Provider\",\n metadata_document=iam.SamlMetadataDocument.from_file(\"/path/to/saml-metadata-document.xml\")\n)",
|
1057 | "version": "2"
|
1058 | },
|
1059 | "csharp": {
|
1060 | "source": "new SamlProvider(this, \"Provider\", new SamlProviderProps {\n MetadataDocument = SamlMetadataDocument.FromFile(\"/path/to/saml-metadata-document.xml\")\n});",
|
1061 | "version": "1"
|
1062 | },
|
1063 | "java": {
|
1064 | "source": "SamlProvider.Builder.create(this, \"Provider\")\n .metadataDocument(SamlMetadataDocument.fromFile(\"/path/to/saml-metadata-document.xml\"))\n .build();",
|
1065 | "version": "1"
|
1066 | },
|
1067 | "go": {
|
1068 | "source": "iam.NewSamlProvider(this, jsii.String(\"Provider\"), &samlProviderProps{\n\tmetadataDocument: iam.samlMetadataDocument.fromFile(jsii.String(\"/path/to/saml-metadata-document.xml\")),\n})",
|
1069 | "version": "1"
|
1070 | },
|
1071 | "$": {
|
1072 | "source": "new iam.SamlProvider(this, 'Provider', {\n metadataDocument: iam.SamlMetadataDocument.fromFile('/path/to/saml-metadata-document.xml'),\n});",
|
1073 | "version": "0"
|
1074 | }
|
1075 | },
|
1076 | "location": {
|
1077 | "api": {
|
1078 | "api": "moduleReadme",
|
1079 | "moduleFqn": "@aws-cdk/aws-iam"
|
1080 | },
|
1081 | "field": {
|
1082 | "field": "markdown",
|
1083 | "line": 425
|
1084 | }
|
1085 | },
|
1086 | "didCompile": true,
|
1087 | "fqnsReferenced": [
|
1088 | "@aws-cdk/aws-iam.SamlMetadataDocument",
|
1089 | "@aws-cdk/aws-iam.SamlMetadataDocument#fromFile",
|
1090 | "@aws-cdk/aws-iam.SamlProvider",
|
1091 | "@aws-cdk/aws-iam.SamlProviderProps",
|
1092 | "constructs.Construct"
|
1093 | ],
|
1094 | "fullSource": "import { Construct } from 'constructs';\nimport { CustomResource, Stack } from '@aws-cdk/core';\nimport * as codepipeline from '@aws-cdk/aws-codepipeline';\nimport * as dynamodb from '@aws-cdk/aws-dynamodb';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as iam from '@aws-cdk/aws-iam';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nnew iam.SamlProvider(this, 'Provider', {\n metadataDocument: iam.SamlMetadataDocument.fromFile('/path/to/saml-metadata-document.xml'),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
1095 | "syntaxKindCounter": {
|
1096 | "10": 2,
|
1097 | "75": 6,
|
1098 | "104": 1,
|
1099 | "193": 1,
|
1100 | "194": 3,
|
1101 | "196": 1,
|
1102 | "197": 1,
|
1103 | "226": 1,
|
1104 | "281": 1
|
1105 | },
|
1106 | "fqnsFingerprint": "09971176f46d04dadf9295d43250c1e1d445ae356ba195e975328fd824e6f6ce"
|
1107 | },
|
1108 | "ab94f5eb27eb8e0dd6e227403616989519421fd5f09a012f684215ced7fd4b7f": {
|
1109 | "translations": {
|
1110 | "python": {
|
1111 | "source": "provider = iam.SamlProvider(self, \"Provider\",\n metadata_document=iam.SamlMetadataDocument.from_file(\"/path/to/saml-metadata-document.xml\")\n)\nprincipal = iam.SamlPrincipal(provider, {\n \"StringEquals\": {\n \"SAML:iss\": \"issuer\"\n }\n})",
|
1112 | "version": "2"
|
1113 | },
|
1114 | "csharp": {
|
1115 | "source": "SamlProvider provider = new SamlProvider(this, \"Provider\", new SamlProviderProps {\n MetadataDocument = SamlMetadataDocument.FromFile(\"/path/to/saml-metadata-document.xml\")\n});\nSamlPrincipal principal = new SamlPrincipal(provider, new Dictionary<string, object> {\n { \"StringEquals\", new Dictionary<string, string> {\n { \"SAML:iss\", \"issuer\" }\n } }\n});",
|
1116 | "version": "1"
|
1117 | },
|
1118 | "java": {
|
1119 | "source": "SamlProvider provider = SamlProvider.Builder.create(this, \"Provider\")\n .metadataDocument(SamlMetadataDocument.fromFile(\"/path/to/saml-metadata-document.xml\"))\n .build();\nSamlPrincipal principal = new SamlPrincipal(provider, Map.of(\n \"StringEquals\", Map.of(\n \"SAML:iss\", \"issuer\")));",
|
1120 | "version": "1"
|
1121 | },
|
1122 | "go": {
|
1123 | "source": "provider := iam.NewSamlProvider(this, jsii.String(\"Provider\"), &samlProviderProps{\n\tmetadataDocument: iam.samlMetadataDocument.fromFile(jsii.String(\"/path/to/saml-metadata-document.xml\")),\n})\nprincipal := iam.NewSamlPrincipal(provider, map[string]interface{}{\n\t\"StringEquals\": map[string]*string{\n\t\t\"SAML:iss\": jsii.String(\"issuer\"),\n\t},\n})",
|
1124 | "version": "1"
|
1125 | },
|
1126 | "$": {
|
1127 | "source": "const provider = new iam.SamlProvider(this, 'Provider', {\n metadataDocument: iam.SamlMetadataDocument.fromFile('/path/to/saml-metadata-document.xml'),\n});\nconst principal = new iam.SamlPrincipal(provider, {\n StringEquals: {\n 'SAML:iss': 'issuer',\n },\n});",
|
1128 | "version": "0"
|
1129 | }
|
1130 | },
|
1131 | "location": {
|
1132 | "api": {
|
1133 | "api": "moduleReadme",
|
1134 | "moduleFqn": "@aws-cdk/aws-iam"
|
1135 | },
|
1136 | "field": {
|
1137 | "field": "markdown",
|
1138 | "line": 433
|
1139 | }
|
1140 | },
|
1141 | "didCompile": true,
|
1142 | "fqnsReferenced": [
|
1143 | "@aws-cdk/aws-iam.ISamlProvider",
|
1144 | "@aws-cdk/aws-iam.SamlMetadataDocument",
|
1145 | "@aws-cdk/aws-iam.SamlMetadataDocument#fromFile",
|
1146 | "@aws-cdk/aws-iam.SamlPrincipal",
|
1147 | "@aws-cdk/aws-iam.SamlProvider",
|
1148 | "@aws-cdk/aws-iam.SamlProviderProps",
|
1149 | "constructs.Construct"
|
1150 | ],
|
1151 | "fullSource": "import { Construct } from 'constructs';\nimport { CustomResource, Stack } from '@aws-cdk/core';\nimport * as codepipeline from '@aws-cdk/aws-codepipeline';\nimport * as dynamodb from '@aws-cdk/aws-dynamodb';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as iam from '@aws-cdk/aws-iam';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst provider = new iam.SamlProvider(this, 'Provider', {\n metadataDocument: iam.SamlMetadataDocument.fromFile('/path/to/saml-metadata-document.xml'),\n});\nconst principal = new iam.SamlPrincipal(provider, {\n StringEquals: {\n 'SAML:iss': 'issuer',\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
1152 | "syntaxKindCounter": {
|
1153 | "10": 4,
|
1154 | "75": 12,
|
1155 | "104": 1,
|
1156 | "193": 3,
|
1157 | "194": 4,
|
1158 | "196": 1,
|
1159 | "197": 2,
|
1160 | "225": 2,
|
1161 | "242": 2,
|
1162 | "243": 2,
|
1163 | "281": 3
|
1164 | },
|
1165 | "fqnsFingerprint": "8ffca5c79f52dfdf6480beae9a011569d541f9fc305ff674bca090b3ad96fed7"
|
1166 | },
|
1167 | "38c78441b2e23d2cf244836dff43cf6b60b7f18f46a393202af1c2865ff27d45": {
|
1168 | "translations": {
|
1169 | "python": {
|
1170 | "source": "provider = iam.SamlProvider(self, \"Provider\",\n metadata_document=iam.SamlMetadataDocument.from_file(\"/path/to/saml-metadata-document.xml\")\n)\niam.Role(self, \"Role\",\n assumed_by=iam.SamlConsolePrincipal(provider)\n)",
|
1171 | "version": "2"
|
1172 | },
|
1173 | "csharp": {
|
1174 | "source": "SamlProvider provider = new SamlProvider(this, \"Provider\", new SamlProviderProps {\n MetadataDocument = SamlMetadataDocument.FromFile(\"/path/to/saml-metadata-document.xml\")\n});\nnew Role(this, \"Role\", new RoleProps {\n AssumedBy = new SamlConsolePrincipal(provider)\n});",
|
1175 | "version": "1"
|
1176 | },
|
1177 | "java": {
|
1178 | "source": "SamlProvider provider = SamlProvider.Builder.create(this, \"Provider\")\n .metadataDocument(SamlMetadataDocument.fromFile(\"/path/to/saml-metadata-document.xml\"))\n .build();\nRole.Builder.create(this, \"Role\")\n .assumedBy(new SamlConsolePrincipal(provider))\n .build();",
|
1179 | "version": "1"
|
1180 | },
|
1181 | "go": {
|
1182 | "source": "provider := iam.NewSamlProvider(this, jsii.String(\"Provider\"), &samlProviderProps{\n\tmetadataDocument: iam.samlMetadataDocument.fromFile(jsii.String(\"/path/to/saml-metadata-document.xml\")),\n})\niam.NewRole(this, jsii.String(\"Role\"), &roleProps{\n\tassumedBy: iam.NewSamlConsolePrincipal(provider),\n})",
|
1183 | "version": "1"
|
1184 | },
|
1185 | "$": {
|
1186 | "source": "const provider = new iam.SamlProvider(this, 'Provider', {\n metadataDocument: iam.SamlMetadataDocument.fromFile('/path/to/saml-metadata-document.xml'),\n});\nnew iam.Role(this, 'Role', {\n assumedBy: new iam.SamlConsolePrincipal(provider),\n});",
|
1187 | "version": "0"
|
1188 | }
|
1189 | },
|
1190 | "location": {
|
1191 | "api": {
|
1192 | "api": "moduleReadme",
|
1193 | "moduleFqn": "@aws-cdk/aws-iam"
|
1194 | },
|
1195 | "field": {
|
1196 | "field": "markdown",
|
1197 | "line": 447
|
1198 | }
|
1199 | },
|
1200 | "didCompile": true,
|
1201 | "fqnsReferenced": [
|
1202 | "@aws-cdk/aws-iam.IPrincipal",
|
1203 | "@aws-cdk/aws-iam.ISamlProvider",
|
1204 | "@aws-cdk/aws-iam.Role",
|
1205 | "@aws-cdk/aws-iam.RoleProps",
|
1206 | "@aws-cdk/aws-iam.SamlConsolePrincipal",
|
1207 | "@aws-cdk/aws-iam.SamlMetadataDocument",
|
1208 | "@aws-cdk/aws-iam.SamlMetadataDocument#fromFile",
|
1209 | "@aws-cdk/aws-iam.SamlProvider",
|
1210 | "@aws-cdk/aws-iam.SamlProviderProps",
|
1211 | "constructs.Construct"
|
1212 | ],
|
1213 | "fullSource": "import { Construct } from 'constructs';\nimport { CustomResource, Stack } from '@aws-cdk/core';\nimport * as codepipeline from '@aws-cdk/aws-codepipeline';\nimport * as dynamodb from '@aws-cdk/aws-dynamodb';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as iam from '@aws-cdk/aws-iam';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst provider = new iam.SamlProvider(this, 'Provider', {\n metadataDocument: iam.SamlMetadataDocument.fromFile('/path/to/saml-metadata-document.xml'),\n});\nnew iam.Role(this, 'Role', {\n assumedBy: new iam.SamlConsolePrincipal(provider),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
1214 | "syntaxKindCounter": {
|
1215 | "10": 3,
|
1216 | "75": 13,
|
1217 | "104": 2,
|
1218 | "193": 2,
|
1219 | "194": 5,
|
1220 | "196": 1,
|
1221 | "197": 3,
|
1222 | "225": 1,
|
1223 | "226": 1,
|
1224 | "242": 1,
|
1225 | "243": 1,
|
1226 | "281": 2
|
1227 | },
|
1228 | "fqnsFingerprint": "48d23d0ac2452619812d8179d5d44a00fd5ddf4de059b544ee3d55d30e00137e"
|
1229 | },
|
1230 | "de0439b0be45d01db3e288ad1d247098b2db883afb42e39720c121ff26753e20": {
|
1231 | "translations": {
|
1232 | "python": {
|
1233 | "source": "user = iam.User(self, \"MyUser\")",
|
1234 | "version": "2"
|
1235 | },
|
1236 | "csharp": {
|
1237 | "source": "User user = new User(this, \"MyUser\");",
|
1238 | "version": "1"
|
1239 | },
|
1240 | "java": {
|
1241 | "source": "User user = new User(this, \"MyUser\");",
|
1242 | "version": "1"
|
1243 | },
|
1244 | "go": {
|
1245 | "source": "user := iam.NewUser(this, jsii.String(\"MyUser\"))",
|
1246 | "version": "1"
|
1247 | },
|
1248 | "$": {
|
1249 | "source": "const user = new iam.User(this, 'MyUser');",
|
1250 | "version": "0"
|
1251 | }
|
1252 | },
|
1253 | "location": {
|
1254 | "api": {
|
1255 | "api": "moduleReadme",
|
1256 | "moduleFqn": "@aws-cdk/aws-iam"
|
1257 | },
|
1258 | "field": {
|
1259 | "field": "markdown",
|
1260 | "line": 460
|
1261 | }
|
1262 | },
|
1263 | "didCompile": true,
|
1264 | "fqnsReferenced": [
|
1265 | "@aws-cdk/aws-iam.User",
|
1266 | "constructs.Construct"
|
1267 | ],
|
1268 | "fullSource": "import { Construct } from 'constructs';\nimport { CustomResource, Stack } from '@aws-cdk/core';\nimport * as codepipeline from '@aws-cdk/aws-codepipeline';\nimport * as dynamodb from '@aws-cdk/aws-dynamodb';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as iam from '@aws-cdk/aws-iam';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst user = new iam.User(this, 'MyUser');\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
1269 | "syntaxKindCounter": {
|
1270 | "10": 1,
|
1271 | "75": 3,
|
1272 | "104": 1,
|
1273 | "194": 1,
|
1274 | "197": 1,
|
1275 | "225": 1,
|
1276 | "242": 1,
|
1277 | "243": 1
|
1278 | },
|
1279 | "fqnsFingerprint": "cfa11dcb7c4c8f39ea7385fb92f22ef8298b9e91529fb36c5ac92e9ffa88b602"
|
1280 | },
|
1281 | "44d09e89c2a14c92b8b375afcee53468bcfc388be7c81f5860f46ac89e2729f4": {
|
1282 | "translations": {
|
1283 | "python": {
|
1284 | "source": "user = iam.User.from_user_name(self, \"MyImportedUserByName\", \"johnsmith\")",
|
1285 | "version": "2"
|
1286 | },
|
1287 | "csharp": {
|
1288 | "source": "IUser user = User.FromUserName(this, \"MyImportedUserByName\", \"johnsmith\");",
|
1289 | "version": "1"
|
1290 | },
|
1291 | "java": {
|
1292 | "source": "IUser user = User.fromUserName(this, \"MyImportedUserByName\", \"johnsmith\");",
|
1293 | "version": "1"
|
1294 | },
|
1295 | "go": {
|
1296 | "source": "user := iam.user.fromUserName(this, jsii.String(\"MyImportedUserByName\"), jsii.String(\"johnsmith\"))",
|
1297 | "version": "1"
|
1298 | },
|
1299 | "$": {
|
1300 | "source": "const user = iam.User.fromUserName(this, 'MyImportedUserByName', 'johnsmith');",
|
1301 | "version": "0"
|
1302 | }
|
1303 | },
|
1304 | "location": {
|
1305 | "api": {
|
1306 | "api": "moduleReadme",
|
1307 | "moduleFqn": "@aws-cdk/aws-iam"
|
1308 | },
|
1309 | "field": {
|
1310 | "field": "markdown",
|
1311 | "line": 466
|
1312 | }
|
1313 | },
|
1314 | "didCompile": true,
|
1315 | "fqnsReferenced": [
|
1316 | "@aws-cdk/aws-iam.IUser",
|
1317 | "@aws-cdk/aws-iam.User",
|
1318 | "@aws-cdk/aws-iam.User#fromUserName",
|
1319 | "constructs.Construct"
|
1320 | ],
|
1321 | "fullSource": "import { Construct } from 'constructs';\nimport { CustomResource, Stack } from '@aws-cdk/core';\nimport * as codepipeline from '@aws-cdk/aws-codepipeline';\nimport * as dynamodb from '@aws-cdk/aws-dynamodb';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as iam from '@aws-cdk/aws-iam';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst user = iam.User.fromUserName(this, 'MyImportedUserByName', 'johnsmith');\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
1322 | "syntaxKindCounter": {
|
1323 | "10": 2,
|
1324 | "75": 4,
|
1325 | "104": 1,
|
1326 | "194": 2,
|
1327 | "196": 1,
|
1328 | "225": 1,
|
1329 | "242": 1,
|
1330 | "243": 1
|
1331 | },
|
1332 | "fqnsFingerprint": "0130dc431258d0eb52735535e0ab8d32ca963deb455b0ed7af9213bfe003246e"
|
1333 | },
|
1334 | "797205faa0d454d06b5c8d5f6e41ed50dd579a15867c87f6a3b35a5c79b0cd06": {
|
1335 | "translations": {
|
1336 | "python": {
|
1337 | "source": "user = iam.User.from_user_arn(self, \"MyImportedUserByArn\", \"arn:aws:iam::123456789012:user/johnsmith\")",
|
1338 | "version": "2"
|
1339 | },
|
1340 | "csharp": {
|
1341 | "source": "IUser user = User.FromUserArn(this, \"MyImportedUserByArn\", \"arn:aws:iam::123456789012:user/johnsmith\");",
|
1342 | "version": "1"
|
1343 | },
|
1344 | "java": {
|
1345 | "source": "IUser user = User.fromUserArn(this, \"MyImportedUserByArn\", \"arn:aws:iam::123456789012:user/johnsmith\");",
|
1346 | "version": "1"
|
1347 | },
|
1348 | "go": {
|
1349 | "source": "user := iam.user.fromUserArn(this, jsii.String(\"MyImportedUserByArn\"), jsii.String(\"arn:aws:iam::123456789012:user/johnsmith\"))",
|
1350 | "version": "1"
|
1351 | },
|
1352 | "$": {
|
1353 | "source": "const user = iam.User.fromUserArn(this, 'MyImportedUserByArn', 'arn:aws:iam::123456789012:user/johnsmith');",
|
1354 | "version": "0"
|
1355 | }
|
1356 | },
|
1357 | "location": {
|
1358 | "api": {
|
1359 | "api": "moduleReadme",
|
1360 | "moduleFqn": "@aws-cdk/aws-iam"
|
1361 | },
|
1362 | "field": {
|
1363 | "field": "markdown",
|
1364 | "line": 472
|
1365 | }
|
1366 | },
|
1367 | "didCompile": true,
|
1368 | "fqnsReferenced": [
|
1369 | "@aws-cdk/aws-iam.IUser",
|
1370 | "@aws-cdk/aws-iam.User",
|
1371 | "@aws-cdk/aws-iam.User#fromUserArn",
|
1372 | "constructs.Construct"
|
1373 | ],
|
1374 | "fullSource": "import { Construct } from 'constructs';\nimport { CustomResource, Stack } from '@aws-cdk/core';\nimport * as codepipeline from '@aws-cdk/aws-codepipeline';\nimport * as dynamodb from '@aws-cdk/aws-dynamodb';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as iam from '@aws-cdk/aws-iam';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst user = iam.User.fromUserArn(this, 'MyImportedUserByArn', 'arn:aws:iam::123456789012:user/johnsmith');\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
1375 | "syntaxKindCounter": {
|
1376 | "10": 2,
|
1377 | "75": 4,
|
1378 | "104": 1,
|
1379 | "194": 2,
|
1380 | "196": 1,
|
1381 | "225": 1,
|
1382 | "242": 1,
|
1383 | "243": 1
|
1384 | },
|
1385 | "fqnsFingerprint": "3a8f2e97352755b5c528ab1dc7ba4dd7cdb3b3ae601f5be5ca0c926212e5f69c"
|
1386 | },
|
1387 | "f46aa7bcee4fe5727bca293ad38fcddbb23268144ffabe7284b46c31f08765ef": {
|
1388 | "translations": {
|
1389 | "python": {
|
1390 | "source": "user = iam.User.from_user_attributes(self, \"MyImportedUserByAttributes\",\n user_arn=\"arn:aws:iam::123456789012:user/johnsmith\"\n)",
|
1391 | "version": "2"
|
1392 | },
|
1393 | "csharp": {
|
1394 | "source": "IUser user = User.FromUserAttributes(this, \"MyImportedUserByAttributes\", new UserAttributes {\n UserArn = \"arn:aws:iam::123456789012:user/johnsmith\"\n});",
|
1395 | "version": "1"
|
1396 | },
|
1397 | "java": {
|
1398 | "source": "IUser user = User.fromUserAttributes(this, \"MyImportedUserByAttributes\", UserAttributes.builder()\n .userArn(\"arn:aws:iam::123456789012:user/johnsmith\")\n .build());",
|
1399 | "version": "1"
|
1400 | },
|
1401 | "go": {
|
1402 | "source": "user := iam.user.fromUserAttributes(this, jsii.String(\"MyImportedUserByAttributes\"), &userAttributes{\n\tuserArn: jsii.String(\"arn:aws:iam::123456789012:user/johnsmith\"),\n})",
|
1403 | "version": "1"
|
1404 | },
|
1405 | "$": {
|
1406 | "source": "const user = iam.User.fromUserAttributes(this, 'MyImportedUserByAttributes', {\n userArn: 'arn:aws:iam::123456789012:user/johnsmith',\n});",
|
1407 | "version": "0"
|
1408 | }
|
1409 | },
|
1410 | "location": {
|
1411 | "api": {
|
1412 | "api": "moduleReadme",
|
1413 | "moduleFqn": "@aws-cdk/aws-iam"
|
1414 | },
|
1415 | "field": {
|
1416 | "field": "markdown",
|
1417 | "line": 478
|
1418 | }
|
1419 | },
|
1420 | "didCompile": true,
|
1421 | "fqnsReferenced": [
|
1422 | "@aws-cdk/aws-iam.IUser",
|
1423 | "@aws-cdk/aws-iam.User",
|
1424 | "@aws-cdk/aws-iam.User#fromUserAttributes",
|
1425 | "@aws-cdk/aws-iam.UserAttributes",
|
1426 | "constructs.Construct"
|
1427 | ],
|
1428 | "fullSource": "import { Construct } from 'constructs';\nimport { CustomResource, Stack } from '@aws-cdk/core';\nimport * as codepipeline from '@aws-cdk/aws-codepipeline';\nimport * as dynamodb from '@aws-cdk/aws-dynamodb';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as iam from '@aws-cdk/aws-iam';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst user = iam.User.fromUserAttributes(this, 'MyImportedUserByAttributes', {\n userArn: 'arn:aws:iam::123456789012:user/johnsmith',\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
1429 | "syntaxKindCounter": {
|
1430 | "10": 2,
|
1431 | "75": 5,
|
1432 | "104": 1,
|
1433 | "193": 1,
|
1434 | "194": 2,
|
1435 | "196": 1,
|
1436 | "225": 1,
|
1437 | "242": 1,
|
1438 | "243": 1,
|
1439 | "281": 1
|
1440 | },
|
1441 | "fqnsFingerprint": "142b97bc33e8a22f5427d143740bba328b6ba700775bb684b6cf0502cd6ba613"
|
1442 | },
|
1443 | "9acc7a025c871f9fec7f160154b08dd5582877f3a472630262c8eb5c30bf4342": {
|
1444 | "translations": {
|
1445 | "python": {
|
1446 | "source": "user = iam.User(self, \"MyUser\")\naccess_key = iam.AccessKey(self, \"MyAccessKey\", user=user)",
|
1447 | "version": "2"
|
1448 | },
|
1449 | "csharp": {
|
1450 | "source": "User user = new User(this, \"MyUser\");\nAccessKey accessKey = new AccessKey(this, \"MyAccessKey\", new AccessKeyProps { User = user });",
|
1451 | "version": "1"
|
1452 | },
|
1453 | "java": {
|
1454 | "source": "User user = new User(this, \"MyUser\");\nAccessKey accessKey = AccessKey.Builder.create(this, \"MyAccessKey\").user(user).build();",
|
1455 | "version": "1"
|
1456 | },
|
1457 | "go": {
|
1458 | "source": "user := iam.NewUser(this, jsii.String(\"MyUser\"))\naccessKey := iam.NewAccessKey(this, jsii.String(\"MyAccessKey\"), &accessKeyProps{\n\tuser: user,\n})",
|
1459 | "version": "1"
|
1460 | },
|
1461 | "$": {
|
1462 | "source": "const user = new iam.User(this, 'MyUser');\nconst accessKey = new iam.AccessKey(this, 'MyAccessKey', { user: user });",
|
1463 | "version": "0"
|
1464 | }
|
1465 | },
|
1466 | "location": {
|
1467 | "api": {
|
1468 | "api": "moduleReadme",
|
1469 | "moduleFqn": "@aws-cdk/aws-iam"
|
1470 | },
|
1471 | "field": {
|
1472 | "field": "markdown",
|
1473 | "line": 489
|
1474 | }
|
1475 | },
|
1476 | "didCompile": true,
|
1477 | "fqnsReferenced": [
|
1478 | "@aws-cdk/aws-iam.AccessKey",
|
1479 | "@aws-cdk/aws-iam.AccessKeyProps",
|
1480 | "@aws-cdk/aws-iam.IUser",
|
1481 | "@aws-cdk/aws-iam.User",
|
1482 | "constructs.Construct"
|
1483 | ],
|
1484 | "fullSource": "import { Construct } from 'constructs';\nimport { CustomResource, Stack } from '@aws-cdk/core';\nimport * as codepipeline from '@aws-cdk/aws-codepipeline';\nimport * as dynamodb from '@aws-cdk/aws-dynamodb';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as iam from '@aws-cdk/aws-iam';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst user = new iam.User(this, 'MyUser');\nconst accessKey = new iam.AccessKey(this, 'MyAccessKey', { user: user });\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
1485 | "syntaxKindCounter": {
|
1486 | "10": 2,
|
1487 | "75": 8,
|
1488 | "104": 2,
|
1489 | "193": 1,
|
1490 | "194": 2,
|
1491 | "197": 2,
|
1492 | "225": 2,
|
1493 | "242": 2,
|
1494 | "243": 2,
|
1495 | "281": 1
|
1496 | },
|
1497 | "fqnsFingerprint": "42857120ba75f6bfea28913813122be4ea9b04f91652f5b8fcaea60addf91f02"
|
1498 | },
|
1499 | "3ff5054fdb0c10ff352b8a33dbeba9cf36b3d5f3ff8bd27c35195787c2e4983e": {
|
1500 | "translations": {
|
1501 | "python": {
|
1502 | "source": "user = iam.User(self, \"MyUser\")\naccess_key = iam.AccessKey(self, \"MyAccessKey\", user=user, serial=1)",
|
1503 | "version": "2"
|
1504 | },
|
1505 | "csharp": {
|
1506 | "source": "User user = new User(this, \"MyUser\");\nAccessKey accessKey = new AccessKey(this, \"MyAccessKey\", new AccessKeyProps { User = user, Serial = 1 });",
|
1507 | "version": "1"
|
1508 | },
|
1509 | "java": {
|
1510 | "source": "User user = new User(this, \"MyUser\");\nAccessKey accessKey = AccessKey.Builder.create(this, \"MyAccessKey\").user(user).serial(1).build();",
|
1511 | "version": "1"
|
1512 | },
|
1513 | "go": {
|
1514 | "source": "user := iam.NewUser(this, jsii.String(\"MyUser\"))\naccessKey := iam.NewAccessKey(this, jsii.String(\"MyAccessKey\"), &accessKeyProps{\n\tuser: user,\n\tserial: jsii.Number(1),\n})",
|
1515 | "version": "1"
|
1516 | },
|
1517 | "$": {
|
1518 | "source": "const user = new iam.User(this, 'MyUser');\nconst accessKey = new iam.AccessKey(this, 'MyAccessKey', { user: user, serial: 1 });",
|
1519 | "version": "0"
|
1520 | }
|
1521 | },
|
1522 | "location": {
|
1523 | "api": {
|
1524 | "api": "moduleReadme",
|
1525 | "moduleFqn": "@aws-cdk/aws-iam"
|
1526 | },
|
1527 | "field": {
|
1528 | "field": "markdown",
|
1529 | "line": 497
|
1530 | }
|
1531 | },
|
1532 | "didCompile": true,
|
1533 | "fqnsReferenced": [
|
1534 | "@aws-cdk/aws-iam.AccessKey",
|
1535 | "@aws-cdk/aws-iam.AccessKeyProps",
|
1536 | "@aws-cdk/aws-iam.IUser",
|
1537 | "@aws-cdk/aws-iam.User",
|
1538 | "constructs.Construct"
|
1539 | ],
|
1540 | "fullSource": "import { Construct } from 'constructs';\nimport { CustomResource, Stack } from '@aws-cdk/core';\nimport * as codepipeline from '@aws-cdk/aws-codepipeline';\nimport * as dynamodb from '@aws-cdk/aws-dynamodb';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as iam from '@aws-cdk/aws-iam';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst user = new iam.User(this, 'MyUser');\nconst accessKey = new iam.AccessKey(this, 'MyAccessKey', { user: user, serial: 1 });\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
1541 | "syntaxKindCounter": {
|
1542 | "8": 1,
|
1543 | "10": 2,
|
1544 | "75": 9,
|
1545 | "104": 2,
|
1546 | "193": 1,
|
1547 | "194": 2,
|
1548 | "197": 2,
|
1549 | "225": 2,
|
1550 | "242": 2,
|
1551 | "243": 2,
|
1552 | "281": 2
|
1553 | },
|
1554 | "fqnsFingerprint": "42857120ba75f6bfea28913813122be4ea9b04f91652f5b8fcaea60addf91f02"
|
1555 | },
|
1556 | "32d365b787746cdead9b335a3cf2a1c19ad3282dca80af7e7d20f903f904e879": {
|
1557 | "translations": {
|
1558 | "python": {
|
1559 | "source": "group = iam.Group(self, \"MyGroup\")",
|
1560 | "version": "2"
|
1561 | },
|
1562 | "csharp": {
|
1563 | "source": "Group group = new Group(this, \"MyGroup\");",
|
1564 | "version": "1"
|
1565 | },
|
1566 | "java": {
|
1567 | "source": "Group group = new Group(this, \"MyGroup\");",
|
1568 | "version": "1"
|
1569 | },
|
1570 | "go": {
|
1571 | "source": "group := iam.NewGroup(this, jsii.String(\"MyGroup\"))",
|
1572 | "version": "1"
|
1573 | },
|
1574 | "$": {
|
1575 | "source": "const group = new iam.Group(this, 'MyGroup');",
|
1576 | "version": "0"
|
1577 | }
|
1578 | },
|
1579 | "location": {
|
1580 | "api": {
|
1581 | "api": "moduleReadme",
|
1582 | "moduleFqn": "@aws-cdk/aws-iam"
|
1583 | },
|
1584 | "field": {
|
1585 | "field": "markdown",
|
1586 | "line": 509
|
1587 | }
|
1588 | },
|
1589 | "didCompile": true,
|
1590 | "fqnsReferenced": [
|
1591 | "@aws-cdk/aws-iam.Group",
|
1592 | "constructs.Construct"
|
1593 | ],
|
1594 | "fullSource": "import { Construct } from 'constructs';\nimport { CustomResource, Stack } from '@aws-cdk/core';\nimport * as codepipeline from '@aws-cdk/aws-codepipeline';\nimport * as dynamodb from '@aws-cdk/aws-dynamodb';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as iam from '@aws-cdk/aws-iam';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst group = new iam.Group(this, 'MyGroup');\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
1595 | "syntaxKindCounter": {
|
1596 | "10": 1,
|
1597 | "75": 3,
|
1598 | "104": 1,
|
1599 | "194": 1,
|
1600 | "197": 1,
|
1601 | "225": 1,
|
1602 | "242": 1,
|
1603 | "243": 1
|
1604 | },
|
1605 | "fqnsFingerprint": "2712e061c76d0b3b8a7f74619288ff56d1c7550e6f0916c306d3fb857eb2d5ca"
|
1606 | },
|
1607 | "c30dd91a2b2422ad8b27a95b9b6c8e9694088d11c10dc34c23c4f9b768c17c40": {
|
1608 | "translations": {
|
1609 | "python": {
|
1610 | "source": "group = iam.Group.from_group_arn(self, \"MyImportedGroupByArn\", \"arn:aws:iam::account-id:group/group-name\")",
|
1611 | "version": "2"
|
1612 | },
|
1613 | "csharp": {
|
1614 | "source": "IGroup group = Group.FromGroupArn(this, \"MyImportedGroupByArn\", \"arn:aws:iam::account-id:group/group-name\");",
|
1615 | "version": "1"
|
1616 | },
|
1617 | "java": {
|
1618 | "source": "IGroup group = Group.fromGroupArn(this, \"MyImportedGroupByArn\", \"arn:aws:iam::account-id:group/group-name\");",
|
1619 | "version": "1"
|
1620 | },
|
1621 | "go": {
|
1622 | "source": "group := iam.group.fromGroupArn(this, jsii.String(\"MyImportedGroupByArn\"), jsii.String(\"arn:aws:iam::account-id:group/group-name\"))",
|
1623 | "version": "1"
|
1624 | },
|
1625 | "$": {
|
1626 | "source": "const group = iam.Group.fromGroupArn(this, 'MyImportedGroupByArn', 'arn:aws:iam::account-id:group/group-name');",
|
1627 | "version": "0"
|
1628 | }
|
1629 | },
|
1630 | "location": {
|
1631 | "api": {
|
1632 | "api": "moduleReadme",
|
1633 | "moduleFqn": "@aws-cdk/aws-iam"
|
1634 | },
|
1635 | "field": {
|
1636 | "field": "markdown",
|
1637 | "line": 515
|
1638 | }
|
1639 | },
|
1640 | "didCompile": true,
|
1641 | "fqnsReferenced": [
|
1642 | "@aws-cdk/aws-iam.Group",
|
1643 | "@aws-cdk/aws-iam.Group#fromGroupArn",
|
1644 | "@aws-cdk/aws-iam.IGroup",
|
1645 | "constructs.Construct"
|
1646 | ],
|
1647 | "fullSource": "import { Construct } from 'constructs';\nimport { CustomResource, Stack } from '@aws-cdk/core';\nimport * as codepipeline from '@aws-cdk/aws-codepipeline';\nimport * as dynamodb from '@aws-cdk/aws-dynamodb';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as iam from '@aws-cdk/aws-iam';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst group = iam.Group.fromGroupArn(this, 'MyImportedGroupByArn', 'arn:aws:iam::account-id:group/group-name');\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
1648 | "syntaxKindCounter": {
|
1649 | "10": 2,
|
1650 | "75": 4,
|
1651 | "104": 1,
|
1652 | "194": 2,
|
1653 | "196": 1,
|
1654 | "225": 1,
|
1655 | "242": 1,
|
1656 | "243": 1
|
1657 | },
|
1658 | "fqnsFingerprint": "5d803012d20492b8b4b1e86c1a8887008f3a5ae49678d40dff0ac89ca34205d0"
|
1659 | },
|
1660 | "0bc3f69cd3dea0bc02e9dc3cbcbe16ea9fc60d56dd205212e5beeace49b784a6": {
|
1661 | "translations": {
|
1662 | "python": {
|
1663 | "source": "group = iam.Group.from_group_name(self, \"MyImportedGroupByName\", \"group-name\")",
|
1664 | "version": "2"
|
1665 | },
|
1666 | "csharp": {
|
1667 | "source": "IGroup group = Group.FromGroupName(this, \"MyImportedGroupByName\", \"group-name\");",
|
1668 | "version": "1"
|
1669 | },
|
1670 | "java": {
|
1671 | "source": "IGroup group = Group.fromGroupName(this, \"MyImportedGroupByName\", \"group-name\");",
|
1672 | "version": "1"
|
1673 | },
|
1674 | "go": {
|
1675 | "source": "group := iam.group.fromGroupName(this, jsii.String(\"MyImportedGroupByName\"), jsii.String(\"group-name\"))",
|
1676 | "version": "1"
|
1677 | },
|
1678 | "$": {
|
1679 | "source": "const group = iam.Group.fromGroupName(this, 'MyImportedGroupByName', 'group-name');",
|
1680 | "version": "0"
|
1681 | }
|
1682 | },
|
1683 | "location": {
|
1684 | "api": {
|
1685 | "api": "moduleReadme",
|
1686 | "moduleFqn": "@aws-cdk/aws-iam"
|
1687 | },
|
1688 | "field": {
|
1689 | "field": "markdown",
|
1690 | "line": 521
|
1691 | }
|
1692 | },
|
1693 | "didCompile": true,
|
1694 | "fqnsReferenced": [
|
1695 | "@aws-cdk/aws-iam.Group",
|
1696 | "@aws-cdk/aws-iam.Group#fromGroupName",
|
1697 | "@aws-cdk/aws-iam.IGroup",
|
1698 | "constructs.Construct"
|
1699 | ],
|
1700 | "fullSource": "import { Construct } from 'constructs';\nimport { CustomResource, Stack } from '@aws-cdk/core';\nimport * as codepipeline from '@aws-cdk/aws-codepipeline';\nimport * as dynamodb from '@aws-cdk/aws-dynamodb';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as iam from '@aws-cdk/aws-iam';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst group = iam.Group.fromGroupName(this, 'MyImportedGroupByName', 'group-name');\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
1701 | "syntaxKindCounter": {
|
1702 | "10": 2,
|
1703 | "75": 4,
|
1704 | "104": 1,
|
1705 | "194": 2,
|
1706 | "196": 1,
|
1707 | "225": 1,
|
1708 | "242": 1,
|
1709 | "243": 1
|
1710 | },
|
1711 | "fqnsFingerprint": "2e0eaf19381c00c7641a89c74515da5b348b93f073a76437cc61cc98e3999d0e"
|
1712 | },
|
1713 | "1c90c513609a9dccd1784297864552057d22136768e7832dd8b685cd44e6e77c": {
|
1714 | "translations": {
|
1715 | "python": {
|
1716 | "source": "user = iam.User(self, \"MyUser\") # or User.fromUserName(stack, 'User', 'johnsmith');\ngroup = iam.Group(self, \"MyGroup\") # or Group.fromGroupArn(stack, 'Group', 'arn:aws:iam::account-id:group/group-name');\n\nuser.add_to_group(group)\n# or\ngroup.add_user(user)",
|
1717 | "version": "2"
|
1718 | },
|
1719 | "csharp": {
|
1720 | "source": "User user = new User(this, \"MyUser\"); // or User.fromUserName(stack, 'User', 'johnsmith');\nGroup group = new Group(this, \"MyGroup\"); // or Group.fromGroupArn(stack, 'Group', 'arn:aws:iam::account-id:group/group-name');\n\nuser.AddToGroup(group);\n// or\ngroup.AddUser(user);",
|
1721 | "version": "1"
|
1722 | },
|
1723 | "java": {
|
1724 | "source": "User user = new User(this, \"MyUser\"); // or User.fromUserName(stack, 'User', 'johnsmith');\nGroup group = new Group(this, \"MyGroup\"); // or Group.fromGroupArn(stack, 'Group', 'arn:aws:iam::account-id:group/group-name');\n\nuser.addToGroup(group);\n// or\ngroup.addUser(user);",
|
1725 | "version": "1"
|
1726 | },
|
1727 | "go": {
|
1728 | "source": "user := iam.NewUser(this, jsii.String(\"MyUser\")) // or User.fromUserName(stack, 'User', 'johnsmith');\ngroup := iam.NewGroup(this, jsii.String(\"MyGroup\")) // or Group.fromGroupArn(stack, 'Group', 'arn:aws:iam::account-id:group/group-name');\n\nuser.addToGroup(group)\n// or\ngroup.addUser(user)",
|
1729 | "version": "1"
|
1730 | },
|
1731 | "$": {
|
1732 | "source": "const user = new iam.User(this, 'MyUser'); // or User.fromUserName(stack, 'User', 'johnsmith');\nconst group = new iam.Group(this, 'MyGroup'); // or Group.fromGroupArn(stack, 'Group', 'arn:aws:iam::account-id:group/group-name');\n\nuser.addToGroup(group);\n// or\ngroup.addUser(user);",
|
1733 | "version": "0"
|
1734 | }
|
1735 | },
|
1736 | "location": {
|
1737 | "api": {
|
1738 | "api": "moduleReadme",
|
1739 | "moduleFqn": "@aws-cdk/aws-iam"
|
1740 | },
|
1741 | "field": {
|
1742 | "field": "markdown",
|
1743 | "line": 527
|
1744 | }
|
1745 | },
|
1746 | "didCompile": true,
|
1747 | "fqnsReferenced": [
|
1748 | "@aws-cdk/aws-iam.Group",
|
1749 | "@aws-cdk/aws-iam.IGroup",
|
1750 | "@aws-cdk/aws-iam.IUser",
|
1751 | "@aws-cdk/aws-iam.User",
|
1752 | "@aws-cdk/aws-iam.User#addToGroup",
|
1753 | "constructs.Construct"
|
1754 | ],
|
1755 | "fullSource": "import { Construct } from 'constructs';\nimport { CustomResource, Stack } from '@aws-cdk/core';\nimport * as codepipeline from '@aws-cdk/aws-codepipeline';\nimport * as dynamodb from '@aws-cdk/aws-dynamodb';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as iam from '@aws-cdk/aws-iam';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst user = new iam.User(this, 'MyUser'); // or User.fromUserName(stack, 'User', 'johnsmith');\nconst group = new iam.Group(this, 'MyGroup'); // or Group.fromGroupArn(stack, 'Group', 'arn:aws:iam::account-id:group/group-name');\n\nuser.addToGroup(group);\n// or\ngroup.addUser(user);\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
1756 | "syntaxKindCounter": {
|
1757 | "10": 2,
|
1758 | "75": 12,
|
1759 | "104": 2,
|
1760 | "194": 4,
|
1761 | "196": 2,
|
1762 | "197": 2,
|
1763 | "225": 2,
|
1764 | "226": 2,
|
1765 | "242": 2,
|
1766 | "243": 2
|
1767 | },
|
1768 | "fqnsFingerprint": "248668b26037e978b96fac1fa9cfc2310d58ec2ed3e43e2a0b0b1bb5abd0fadc"
|
1769 | },
|
1770 | "5d1a0c2d8a4eec57a236053cd1767e2048baab3c1313b96b37cd5241b939143b": {
|
1771 | "translations": {
|
1772 | "python": {
|
1773 | "source": "# Creates a new IAM user, access and secret keys, and stores the secret access key in a Secret.\nuser = iam.User(self, \"User\")\naccess_key = iam.AccessKey(self, \"AccessKey\", user=user)\nsecret_value = secretsmanager.SecretStringValueBeta1.from_token(access_key.secret_access_key.to_string())\nsecretsmanager.Secret(self, \"Secret\",\n secret_string_beta1=secret_value\n)",
|
1774 | "version": "2"
|
1775 | },
|
1776 | "csharp": {
|
1777 | "source": "// Creates a new IAM user, access and secret keys, and stores the secret access key in a Secret.\nUser user = new User(this, \"User\");\nAccessKey accessKey = new AccessKey(this, \"AccessKey\", new AccessKeyProps { User = user });\nSecretStringValueBeta1 secretValue = SecretStringValueBeta1.FromToken(accessKey.SecretAccessKey.ToString());\nnew Secret(this, \"Secret\", new SecretProps {\n SecretStringBeta1 = secretValue\n});",
|
1778 | "version": "1"
|
1779 | },
|
1780 | "java": {
|
1781 | "source": "// Creates a new IAM user, access and secret keys, and stores the secret access key in a Secret.\nUser user = new User(this, \"User\");\nAccessKey accessKey = AccessKey.Builder.create(this, \"AccessKey\").user(user).build();\nSecretStringValueBeta1 secretValue = SecretStringValueBeta1.fromToken(accessKey.secretAccessKey.toString());\nSecret.Builder.create(this, \"Secret\")\n .secretStringBeta1(secretValue)\n .build();",
|
1782 | "version": "1"
|
1783 | },
|
1784 | "go": {
|
1785 | "source": "// Creates a new IAM user, access and secret keys, and stores the secret access key in a Secret.\nuser := iam.NewUser(this, jsii.String(\"User\"))\naccessKey := iam.NewAccessKey(this, jsii.String(\"AccessKey\"), &accessKeyProps{\n\tuser: user,\n})\nsecretValue := secretsmanager.secretStringValueBeta1.fromToken(accessKey.secretAccessKey.toString())\nsecretsmanager.NewSecret(this, jsii.String(\"Secret\"), &secretProps{\n\tsecretStringBeta1: secretValue,\n})",
|
1786 | "version": "1"
|
1787 | },
|
1788 | "$": {
|
1789 | "source": "// Creates a new IAM user, access and secret keys, and stores the secret access key in a Secret.\nconst user = new iam.User(this, 'User');\nconst accessKey = new iam.AccessKey(this, 'AccessKey', { user });\nconst secretValue = secretsmanager.SecretStringValueBeta1.fromToken(accessKey.secretAccessKey.toString());\nnew secretsmanager.Secret(this, 'Secret', {\n secretStringBeta1: secretValue,\n});",
|
1790 | "version": "0"
|
1791 | }
|
1792 | },
|
1793 | "location": {
|
1794 | "api": {
|
1795 | "api": "type",
|
1796 | "fqn": "@aws-cdk/aws-iam.AccessKey"
|
1797 | },
|
1798 | "field": {
|
1799 | "field": "example"
|
1800 | }
|
1801 | },
|
1802 | "didCompile": true,
|
1803 | "fqnsReferenced": [
|
1804 | "@aws-cdk/aws-iam.AccessKey",
|
1805 | "@aws-cdk/aws-iam.AccessKey#secretAccessKey",
|
1806 | "@aws-cdk/aws-iam.AccessKeyProps",
|
1807 | "@aws-cdk/aws-iam.IUser",
|
1808 | "@aws-cdk/aws-iam.User",
|
1809 | "@aws-cdk/aws-secretsmanager.Secret",
|
1810 | "@aws-cdk/aws-secretsmanager.SecretProps",
|
1811 | "@aws-cdk/aws-secretsmanager.SecretStringValueBeta1",
|
1812 | "@aws-cdk/aws-secretsmanager.SecretStringValueBeta1#fromToken",
|
1813 | "@aws-cdk/core.Intrinsic#toString",
|
1814 | "constructs.Construct"
|
1815 | ],
|
1816 | "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core'; \nimport * as secretsmanager from '@aws-cdk/aws-secretsmanager';\nimport * as kms from '@aws-cdk/aws-kms';\nimport * as iam from '@aws-cdk/aws-iam';\nimport * as ec2 from '@aws-cdk/aws-ec2';\n\nclass Fixture extends Stack { \n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n// Creates a new IAM user, access and secret keys, and stores the secret access key in a Secret.\nconst user = new iam.User(this, 'User');\nconst accessKey = new iam.AccessKey(this, 'AccessKey', { user });\nconst secretValue = secretsmanager.SecretStringValueBeta1.fromToken(accessKey.secretAccessKey.toString());\nnew secretsmanager.Secret(this, 'Secret', {\n secretStringBeta1: secretValue,\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}",
|
1817 | "syntaxKindCounter": {
|
1818 | "10": 3,
|
1819 | "75": 18,
|
1820 | "104": 3,
|
1821 | "193": 2,
|
1822 | "194": 7,
|
1823 | "196": 2,
|
1824 | "197": 3,
|
1825 | "225": 3,
|
1826 | "226": 1,
|
1827 | "242": 3,
|
1828 | "243": 3,
|
1829 | "281": 1,
|
1830 | "282": 1
|
1831 | },
|
1832 | "fqnsFingerprint": "008cdddd44ba07a04c449f8fb8d07999bc8cec730b834fb9ec3271d0400f4ffa"
|
1833 | },
|
1834 | "fa675cb8590a9a42a315e5995bdfa0ddff7cce2b4cefd6f6c4de95461204e44d": {
|
1835 | "translations": {
|
1836 | "python": {
|
1837 | "source": "# Creates a new IAM user, access and secret keys, and stores the secret access key in a Secret.\nuser = iam.User(self, \"User\")\naccess_key = iam.AccessKey(self, \"AccessKey\", user=user)\nsecret_value = secretsmanager.SecretStringValueBeta1.from_token(access_key.secret_access_key.to_string())\nsecretsmanager.Secret(self, \"Secret\",\n secret_string_beta1=secret_value\n)",
|
1838 | "version": "2"
|
1839 | },
|
1840 | "csharp": {
|
1841 | "source": "// Creates a new IAM user, access and secret keys, and stores the secret access key in a Secret.\nUser user = new User(this, \"User\");\nAccessKey accessKey = new AccessKey(this, \"AccessKey\", new AccessKeyProps { User = user });\nSecretStringValueBeta1 secretValue = SecretStringValueBeta1.FromToken(accessKey.SecretAccessKey.ToString());\nnew Secret(this, \"Secret\", new SecretProps {\n SecretStringBeta1 = secretValue\n});",
|
1842 | "version": "1"
|
1843 | },
|
1844 | "java": {
|
1845 | "source": "// Creates a new IAM user, access and secret keys, and stores the secret access key in a Secret.\nUser user = new User(this, \"User\");\nAccessKey accessKey = AccessKey.Builder.create(this, \"AccessKey\").user(user).build();\nSecretStringValueBeta1 secretValue = SecretStringValueBeta1.fromToken(accessKey.secretAccessKey.toString());\nSecret.Builder.create(this, \"Secret\")\n .secretStringBeta1(secretValue)\n .build();",
|
1846 | "version": "1"
|
1847 | },
|
1848 | "go": {
|
1849 | "source": "// Creates a new IAM user, access and secret keys, and stores the secret access key in a Secret.\nuser := iam.NewUser(this, jsii.String(\"User\"))\naccessKey := iam.NewAccessKey(this, jsii.String(\"AccessKey\"), &accessKeyProps{\n\tuser: user,\n})\nsecretValue := secretsmanager.secretStringValueBeta1.fromToken(accessKey.secretAccessKey.toString())\nsecretsmanager.NewSecret(this, jsii.String(\"Secret\"), &secretProps{\n\tsecretStringBeta1: secretValue,\n})",
|
1850 | "version": "1"
|
1851 | },
|
1852 | "$": {
|
1853 | "source": "// Creates a new IAM user, access and secret keys, and stores the secret access key in a Secret.\nconst user = new iam.User(this, 'User');\nconst accessKey = new iam.AccessKey(this, 'AccessKey', { user });\nconst secretValue = secretsmanager.SecretStringValueBeta1.fromToken(accessKey.secretAccessKey.toString());\nnew secretsmanager.Secret(this, 'Secret', {\n secretStringBeta1: secretValue,\n});",
|
1854 | "version": "0"
|
1855 | }
|
1856 | },
|
1857 | "location": {
|
1858 | "api": {
|
1859 | "api": "type",
|
1860 | "fqn": "@aws-cdk/aws-iam.AccessKeyProps"
|
1861 | },
|
1862 | "field": {
|
1863 | "field": "example"
|
1864 | }
|
1865 | },
|
1866 | "didCompile": true,
|
1867 | "fqnsReferenced": [
|
1868 | "@aws-cdk/aws-iam.AccessKey",
|
1869 | "@aws-cdk/aws-iam.AccessKey#secretAccessKey",
|
1870 | "@aws-cdk/aws-iam.AccessKeyProps",
|
1871 | "@aws-cdk/aws-iam.IUser",
|
1872 | "@aws-cdk/aws-iam.User",
|
1873 | "@aws-cdk/aws-secretsmanager.Secret",
|
1874 | "@aws-cdk/aws-secretsmanager.SecretProps",
|
1875 | "@aws-cdk/aws-secretsmanager.SecretStringValueBeta1",
|
1876 | "@aws-cdk/aws-secretsmanager.SecretStringValueBeta1#fromToken",
|
1877 | "@aws-cdk/core.Intrinsic#toString",
|
1878 | "constructs.Construct"
|
1879 | ],
|
1880 | "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core'; \nimport * as secretsmanager from '@aws-cdk/aws-secretsmanager';\nimport * as kms from '@aws-cdk/aws-kms';\nimport * as iam from '@aws-cdk/aws-iam';\nimport * as ec2 from '@aws-cdk/aws-ec2';\n\nclass Fixture extends Stack { \n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n// Creates a new IAM user, access and secret keys, and stores the secret access key in a Secret.\nconst user = new iam.User(this, 'User');\nconst accessKey = new iam.AccessKey(this, 'AccessKey', { user });\nconst secretValue = secretsmanager.SecretStringValueBeta1.fromToken(accessKey.secretAccessKey.toString());\nnew secretsmanager.Secret(this, 'Secret', {\n secretStringBeta1: secretValue,\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}",
|
1881 | "syntaxKindCounter": {
|
1882 | "10": 3,
|
1883 | "75": 18,
|
1884 | "104": 3,
|
1885 | "193": 2,
|
1886 | "194": 7,
|
1887 | "196": 2,
|
1888 | "197": 3,
|
1889 | "225": 3,
|
1890 | "226": 1,
|
1891 | "242": 3,
|
1892 | "243": 3,
|
1893 | "281": 1,
|
1894 | "282": 1
|
1895 | },
|
1896 | "fqnsFingerprint": "008cdddd44ba07a04c449f8fb8d07999bc8cec730b834fb9ec3271d0400f4ffa"
|
1897 | },
|
1898 | "f5907fa69b557d38f3d0b7eb471108a8ae826eeda4a75c0ab96544a277d25d92": {
|
1899 | "translations": {
|
1900 | "python": {
|
1901 | "source": "cluster = neptune.DatabaseCluster(self, \"Cluster\",\n vpc=vpc,\n instance_type=neptune.InstanceType.R5_LARGE,\n iam_authentication=True\n)\nrole = iam.Role(self, \"DBRole\", assumed_by=iam.AccountPrincipal(self.account))\ncluster.grant_connect(role)",
|
1902 | "version": "2"
|
1903 | },
|
1904 | "csharp": {
|
1905 | "source": "DatabaseCluster cluster = new DatabaseCluster(this, \"Cluster\", new DatabaseClusterProps {\n Vpc = vpc,\n InstanceType = InstanceType.R5_LARGE,\n IamAuthentication = true\n});\nRole role = new Role(this, \"DBRole\", new RoleProps { AssumedBy = new AccountPrincipal(Account) });\ncluster.GrantConnect(role);",
|
1906 | "version": "1"
|
1907 | },
|
1908 | "java": {
|
1909 | "source": "DatabaseCluster cluster = DatabaseCluster.Builder.create(this, \"Cluster\")\n .vpc(vpc)\n .instanceType(InstanceType.R5_LARGE)\n .iamAuthentication(true)\n .build();\nRole role = Role.Builder.create(this, \"DBRole\").assumedBy(new AccountPrincipal(this.account)).build();\ncluster.grantConnect(role);",
|
1910 | "version": "1"
|
1911 | },
|
1912 | "go": {
|
1913 | "source": "cluster := neptune.NewDatabaseCluster(this, jsii.String(\"Cluster\"), &databaseClusterProps{\n\tvpc: vpc,\n\tinstanceType: neptune.instanceType_R5_LARGE(),\n\tiamAuthentication: jsii.Boolean(true),\n})\nrole := iam.NewRole(this, jsii.String(\"DBRole\"), &roleProps{\n\tassumedBy: iam.NewAccountPrincipal(this.account),\n})\ncluster.grantConnect(role)",
|
1914 | "version": "1"
|
1915 | },
|
1916 | "$": {
|
1917 | "source": "const cluster = new neptune.DatabaseCluster(this, 'Cluster', {\n vpc,\n instanceType: neptune.InstanceType.R5_LARGE,\n iamAuthentication: true, // Optional - will be automatically set if you call grantConnect().\n});\nconst role = new iam.Role(this, 'DBRole', { assumedBy: new iam.AccountPrincipal(this.account) });\ncluster.grantConnect(role); // Grant the role connection access to the DB.",
|
1918 | "version": "0"
|
1919 | }
|
1920 | },
|
1921 | "location": {
|
1922 | "api": {
|
1923 | "api": "type",
|
1924 | "fqn": "@aws-cdk/aws-iam.AccountPrincipal"
|
1925 | },
|
1926 | "field": {
|
1927 | "field": "example"
|
1928 | }
|
1929 | },
|
1930 | "didCompile": true,
|
1931 | "fqnsReferenced": [
|
1932 | "@aws-cdk/aws-ec2.IVpc",
|
1933 | "@aws-cdk/aws-iam.AccountPrincipal",
|
1934 | "@aws-cdk/aws-iam.IGrantable",
|
1935 | "@aws-cdk/aws-iam.IPrincipal",
|
1936 | "@aws-cdk/aws-iam.Role",
|
1937 | "@aws-cdk/aws-iam.RoleProps",
|
1938 | "@aws-cdk/aws-neptune.DatabaseCluster",
|
1939 | "@aws-cdk/aws-neptune.DatabaseClusterBase#grantConnect",
|
1940 | "@aws-cdk/aws-neptune.DatabaseClusterProps",
|
1941 | "@aws-cdk/aws-neptune.InstanceType",
|
1942 | "@aws-cdk/aws-neptune.InstanceType#R5_LARGE",
|
1943 | "@aws-cdk/core.Stack#account",
|
1944 | "constructs.Construct"
|
1945 | ],
|
1946 | "fullSource": "import { Duration, Stack } from '@aws-cdk/core';\nimport { Construct } from 'constructs';\nimport * as iam from '@aws-cdk/aws-iam';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as neptune from '@aws-cdk/aws-neptune';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n const vpc = new ec2.Vpc(this, 'VPC', { maxAzs: 2 });\n\n // Code snippet begins after !show marker below\n/// !show\nconst cluster = new neptune.DatabaseCluster(this, 'Cluster', {\n vpc,\n instanceType: neptune.InstanceType.R5_LARGE,\n iamAuthentication: true, // Optional - will be automatically set if you call grantConnect().\n});\nconst role = new iam.Role(this, 'DBRole', { assumedBy: new iam.AccountPrincipal(this.account) });\ncluster.grantConnect(role);\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}",
|
1947 | "syntaxKindCounter": {
|
1948 | "10": 2,
|
1949 | "75": 19,
|
1950 | "104": 3,
|
1951 | "106": 1,
|
1952 | "193": 2,
|
1953 | "194": 7,
|
1954 | "196": 1,
|
1955 | "197": 3,
|
1956 | "225": 2,
|
1957 | "226": 1,
|
1958 | "242": 2,
|
1959 | "243": 2,
|
1960 | "281": 3,
|
1961 | "282": 1
|
1962 | },
|
1963 | "fqnsFingerprint": "2dcb1c1ef92862d56e4390f6580c2581bb2ccb485d81164dc59b2a23d3f1ccb1"
|
1964 | },
|
1965 | "3d3ceb9082e5e860e7209b679e38493fa1dc30d94048d7f72ff3c6d389ab9a01": {
|
1966 | "translations": {
|
1967 | "python": {
|
1968 | "source": "bucket = s3.Bucket(self, \"MyBucket\")\nresult = bucket.add_to_resource_policy(iam.PolicyStatement(\n actions=[\"s3:GetObject\"],\n resources=[bucket.arn_for_objects(\"file.txt\")],\n principals=[iam.AccountRootPrincipal()]\n))",
|
1969 | "version": "2"
|
1970 | },
|
1971 | "csharp": {
|
1972 | "source": "Bucket bucket = new Bucket(this, \"MyBucket\");\nAddToResourcePolicyResult result = bucket.AddToResourcePolicy(new PolicyStatement(new PolicyStatementProps {\n Actions = new [] { \"s3:GetObject\" },\n Resources = new [] { bucket.ArnForObjects(\"file.txt\") },\n Principals = new [] { new AccountRootPrincipal() }\n}));",
|
1973 | "version": "1"
|
1974 | },
|
1975 | "java": {
|
1976 | "source": "Bucket bucket = new Bucket(this, \"MyBucket\");\nAddToResourcePolicyResult result = bucket.addToResourcePolicy(PolicyStatement.Builder.create()\n .actions(List.of(\"s3:GetObject\"))\n .resources(List.of(bucket.arnForObjects(\"file.txt\")))\n .principals(List.of(new AccountRootPrincipal()))\n .build());",
|
1977 | "version": "1"
|
1978 | },
|
1979 | "go": {
|
1980 | "source": "bucket := s3.NewBucket(this, jsii.String(\"MyBucket\"))\nresult := bucket.addToResourcePolicy(iam.NewPolicyStatement(&policyStatementProps{\n\tactions: []*string{\n\t\tjsii.String(\"s3:GetObject\"),\n\t},\n\tresources: []*string{\n\t\tbucket.arnForObjects(jsii.String(\"file.txt\")),\n\t},\n\tprincipals: []iPrincipal{\n\t\tiam.NewAccountRootPrincipal(),\n\t},\n}))",
|
1981 | "version": "1"
|
1982 | },
|
1983 | "$": {
|
1984 | "source": "const bucket = new s3.Bucket(this, 'MyBucket');\nconst result = bucket.addToResourcePolicy(new iam.PolicyStatement({\n actions: ['s3:GetObject'],\n resources: [bucket.arnForObjects('file.txt')],\n principals: [new iam.AccountRootPrincipal()],\n}));",
|
1985 | "version": "0"
|
1986 | }
|
1987 | },
|
1988 | "location": {
|
1989 | "api": {
|
1990 | "api": "type",
|
1991 | "fqn": "@aws-cdk/aws-iam.AccountRootPrincipal"
|
1992 | },
|
1993 | "field": {
|
1994 | "field": "example"
|
1995 | }
|
1996 | },
|
1997 | "didCompile": true,
|
1998 | "fqnsReferenced": [
|
1999 | "@aws-cdk/aws-iam.AccountRootPrincipal",
|
2000 | "@aws-cdk/aws-iam.AddToResourcePolicyResult",
|
2001 | "@aws-cdk/aws-iam.PolicyStatement",
|
2002 | "@aws-cdk/aws-iam.PolicyStatementProps",
|
2003 | "@aws-cdk/aws-s3.Bucket",
|
2004 | "@aws-cdk/aws-s3.BucketBase#addToResourcePolicy",
|
2005 | "@aws-cdk/aws-s3.BucketBase#arnForObjects",
|
2006 | "constructs.Construct"
|
2007 | ],
|
2008 | "fullSource": "// Fixture with packages imported, but nothing else\nimport cdk = require('@aws-cdk/core');\nimport s3 = require('@aws-cdk/aws-s3');\nimport kms = require('@aws-cdk/aws-kms');\nimport iam = require('@aws-cdk/aws-iam');\nimport lambda = require('@aws-cdk/aws-lambda');\nimport s3n = require('@aws-cdk/aws-s3-notifications');\nimport sns = require('@aws-cdk/aws-sns');\nimport sqs = require('@aws-cdk/aws-sqs');\nimport assert = require('assert');\n\nclass Fixture extends cdk.Stack {\n constructor(scope: cdk.Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst bucket = new s3.Bucket(this, 'MyBucket');\nconst result = bucket.addToResourcePolicy(new iam.PolicyStatement({\n actions: ['s3:GetObject'],\n resources: [bucket.arnForObjects('file.txt')],\n principals: [new iam.AccountRootPrincipal()],\n}));\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
2009 | "syntaxKindCounter": {
|
2010 | "10": 3,
|
2011 | "75": 15,
|
2012 | "104": 1,
|
2013 | "192": 3,
|
2014 | "193": 1,
|
2015 | "194": 5,
|
2016 | "196": 2,
|
2017 | "197": 3,
|
2018 | "225": 2,
|
2019 | "242": 2,
|
2020 | "243": 2,
|
2021 | "281": 3
|
2022 | },
|
2023 | "fqnsFingerprint": "751e68454d8252e0a7ed68c148430802705a7e74c05bfbf11f1380788f19aaab"
|
2024 | },
|
2025 | "ac984c4f10fd031f6a22d2a53a7eea263105bc58e7d3764b3561eb85f97510f8": {
|
2026 | "translations": {
|
2027 | "python": {
|
2028 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_iam as iam\nimport aws_cdk.core as cdk\n\n# dependable: cdk.IDependable\n\nadd_to_principal_policy_result = iam.AddToPrincipalPolicyResult(\n statement_added=False,\n\n # the properties below are optional\n policy_dependable=dependable\n)",
|
2029 | "version": "2"
|
2030 | },
|
2031 | "csharp": {
|
2032 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.IAM;\nusing Amazon.CDK;\n\nIDependable dependable;\nAddToPrincipalPolicyResult addToPrincipalPolicyResult = new AddToPrincipalPolicyResult {\n StatementAdded = false,\n\n // the properties below are optional\n PolicyDependable = dependable\n};",
|
2033 | "version": "1"
|
2034 | },
|
2035 | "java": {
|
2036 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.iam.*;\nimport software.amazon.awscdk.core.*;\n\nIDependable dependable;\n\nAddToPrincipalPolicyResult addToPrincipalPolicyResult = AddToPrincipalPolicyResult.builder()\n .statementAdded(false)\n\n // the properties below are optional\n .policyDependable(dependable)\n .build();",
|
2037 | "version": "1"
|
2038 | },
|
2039 | "go": {
|
2040 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport iam \"github.com/aws-samples/dummy/awscdkawsiam\"\nimport cdk \"github.com/aws-samples/dummy/awscdkcore\"\n\nvar dependable iDependable\n\naddToPrincipalPolicyResult := &addToPrincipalPolicyResult{\n\tstatementAdded: jsii.Boolean(false),\n\n\t// the properties below are optional\n\tpolicyDependable: dependable,\n}",
|
2041 | "version": "1"
|
2042 | },
|
2043 | "$": {
|
2044 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\nimport * as cdk from '@aws-cdk/core';\n\ndeclare const dependable: cdk.IDependable;\nconst addToPrincipalPolicyResult: iam.AddToPrincipalPolicyResult = {\n statementAdded: false,\n\n // the properties below are optional\n policyDependable: dependable,\n};",
|
2045 | "version": "0"
|
2046 | }
|
2047 | },
|
2048 | "location": {
|
2049 | "api": {
|
2050 | "api": "type",
|
2051 | "fqn": "@aws-cdk/aws-iam.AddToPrincipalPolicyResult"
|
2052 | },
|
2053 | "field": {
|
2054 | "field": "example"
|
2055 | }
|
2056 | },
|
2057 | "didCompile": true,
|
2058 | "fqnsReferenced": [
|
2059 | "@aws-cdk/aws-iam.AddToPrincipalPolicyResult",
|
2060 | "@aws-cdk/core.IDependable"
|
2061 | ],
|
2062 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\nimport * as cdk from '@aws-cdk/core';\n\ndeclare const dependable: cdk.IDependable;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst addToPrincipalPolicyResult: iam.AddToPrincipalPolicyResult = {\n statementAdded: false,\n\n // the properties below are optional\n policyDependable: dependable,\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
2063 | "syntaxKindCounter": {
|
2064 | "10": 2,
|
2065 | "75": 11,
|
2066 | "91": 1,
|
2067 | "130": 1,
|
2068 | "153": 2,
|
2069 | "169": 2,
|
2070 | "193": 1,
|
2071 | "225": 2,
|
2072 | "242": 2,
|
2073 | "243": 2,
|
2074 | "254": 2,
|
2075 | "255": 2,
|
2076 | "256": 2,
|
2077 | "281": 2,
|
2078 | "290": 1
|
2079 | },
|
2080 | "fqnsFingerprint": "12e85fd706399845a081c89b98c16b28dcd0e843be408c8e2a435fa954e84d8b"
|
2081 | },
|
2082 | "92f8f6080e8554809a372707d2c75b8f8442b5a430984c1565d3ad812a24285c": {
|
2083 | "translations": {
|
2084 | "python": {
|
2085 | "source": "bucket = s3.Bucket.from_bucket_name(self, \"existingBucket\", \"bucket-name\")\n\n# No policy statement will be added to the resource\nresult = bucket.add_to_resource_policy(iam.PolicyStatement(\n actions=[\"s3:GetObject\"],\n resources=[bucket.arn_for_objects(\"file.txt\")],\n principals=[iam.AccountRootPrincipal()]\n))",
|
2086 | "version": "2"
|
2087 | },
|
2088 | "csharp": {
|
2089 | "source": "IBucket bucket = Bucket.FromBucketName(this, \"existingBucket\", \"bucket-name\");\n\n// No policy statement will be added to the resource\nAddToResourcePolicyResult result = bucket.AddToResourcePolicy(new PolicyStatement(new PolicyStatementProps {\n Actions = new [] { \"s3:GetObject\" },\n Resources = new [] { bucket.ArnForObjects(\"file.txt\") },\n Principals = new [] { new AccountRootPrincipal() }\n}));",
|
2090 | "version": "1"
|
2091 | },
|
2092 | "java": {
|
2093 | "source": "IBucket bucket = Bucket.fromBucketName(this, \"existingBucket\", \"bucket-name\");\n\n// No policy statement will be added to the resource\nAddToResourcePolicyResult result = bucket.addToResourcePolicy(PolicyStatement.Builder.create()\n .actions(List.of(\"s3:GetObject\"))\n .resources(List.of(bucket.arnForObjects(\"file.txt\")))\n .principals(List.of(new AccountRootPrincipal()))\n .build());",
|
2094 | "version": "1"
|
2095 | },
|
2096 | "go": {
|
2097 | "source": "bucket := s3.bucket.fromBucketName(this, jsii.String(\"existingBucket\"), jsii.String(\"bucket-name\"))\n\n// No policy statement will be added to the resource\nresult := bucket.addToResourcePolicy(iam.NewPolicyStatement(&policyStatementProps{\n\tactions: []*string{\n\t\tjsii.String(\"s3:GetObject\"),\n\t},\n\tresources: []*string{\n\t\tbucket.arnForObjects(jsii.String(\"file.txt\")),\n\t},\n\tprincipals: []iPrincipal{\n\t\tiam.NewAccountRootPrincipal(),\n\t},\n}))",
|
2098 | "version": "1"
|
2099 | },
|
2100 | "$": {
|
2101 | "source": "const bucket = s3.Bucket.fromBucketName(this, 'existingBucket', 'bucket-name');\n\n// No policy statement will be added to the resource\nconst result = bucket.addToResourcePolicy(new iam.PolicyStatement({\n actions: ['s3:GetObject'],\n resources: [bucket.arnForObjects('file.txt')],\n principals: [new iam.AccountRootPrincipal()],\n}));",
|
2102 | "version": "0"
|
2103 | }
|
2104 | },
|
2105 | "location": {
|
2106 | "api": {
|
2107 | "api": "type",
|
2108 | "fqn": "@aws-cdk/aws-iam.AddToResourcePolicyResult"
|
2109 | },
|
2110 | "field": {
|
2111 | "field": "example"
|
2112 | }
|
2113 | },
|
2114 | "didCompile": true,
|
2115 | "fqnsReferenced": [
|
2116 | "@aws-cdk/aws-iam.AccountRootPrincipal",
|
2117 | "@aws-cdk/aws-iam.AddToResourcePolicyResult",
|
2118 | "@aws-cdk/aws-iam.PolicyStatement",
|
2119 | "@aws-cdk/aws-iam.PolicyStatementProps",
|
2120 | "@aws-cdk/aws-s3.Bucket",
|
2121 | "@aws-cdk/aws-s3.Bucket#fromBucketName",
|
2122 | "@aws-cdk/aws-s3.IBucket",
|
2123 | "@aws-cdk/aws-s3.IBucket#addToResourcePolicy",
|
2124 | "@aws-cdk/aws-s3.IBucket#arnForObjects",
|
2125 | "constructs.Construct"
|
2126 | ],
|
2127 | "fullSource": "// Fixture with packages imported, but nothing else\nimport cdk = require('@aws-cdk/core');\nimport s3 = require('@aws-cdk/aws-s3');\nimport kms = require('@aws-cdk/aws-kms');\nimport iam = require('@aws-cdk/aws-iam');\nimport lambda = require('@aws-cdk/aws-lambda');\nimport s3n = require('@aws-cdk/aws-s3-notifications');\nimport sns = require('@aws-cdk/aws-sns');\nimport sqs = require('@aws-cdk/aws-sqs');\nimport assert = require('assert');\n\nclass Fixture extends cdk.Stack {\n constructor(scope: cdk.Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst bucket = s3.Bucket.fromBucketName(this, 'existingBucket', 'bucket-name');\n\n// No policy statement will be added to the resource\nconst result = bucket.addToResourcePolicy(new iam.PolicyStatement({\n actions: ['s3:GetObject'],\n resources: [bucket.arnForObjects('file.txt')],\n principals: [new iam.AccountRootPrincipal()],\n}));\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
2128 | "syntaxKindCounter": {
|
2129 | "10": 4,
|
2130 | "75": 16,
|
2131 | "104": 1,
|
2132 | "192": 3,
|
2133 | "193": 1,
|
2134 | "194": 6,
|
2135 | "196": 3,
|
2136 | "197": 2,
|
2137 | "225": 2,
|
2138 | "242": 2,
|
2139 | "243": 2,
|
2140 | "281": 3
|
2141 | },
|
2142 | "fqnsFingerprint": "9067f0bcad0f7e65e08989050c46a26bbc94e25ace7c5c95bbf8bbf40ca28e40"
|
2143 | },
|
2144 | "f11292a9a3f2076c471c889145e135aea2323a8e903c4629aea97e2810563e96": {
|
2145 | "translations": {
|
2146 | "python": {
|
2147 | "source": "topic = sns.Topic(self, \"Topic\")\ntopic_policy = sns.TopicPolicy(self, \"TopicPolicy\",\n topics=[topic]\n)\n\ntopic_policy.document.add_statements(iam.PolicyStatement(\n actions=[\"sns:Subscribe\"],\n principals=[iam.AnyPrincipal()],\n resources=[topic.topic_arn]\n))",
|
2148 | "version": "2"
|
2149 | },
|
2150 | "csharp": {
|
2151 | "source": "Topic topic = new Topic(this, \"Topic\");\nTopicPolicy topicPolicy = new TopicPolicy(this, \"TopicPolicy\", new TopicPolicyProps {\n Topics = new [] { topic }\n});\n\ntopicPolicy.Document.AddStatements(new PolicyStatement(new PolicyStatementProps {\n Actions = new [] { \"sns:Subscribe\" },\n Principals = new [] { new AnyPrincipal() },\n Resources = new [] { topic.TopicArn }\n}));",
|
2152 | "version": "1"
|
2153 | },
|
2154 | "java": {
|
2155 | "source": "Topic topic = new Topic(this, \"Topic\");\nTopicPolicy topicPolicy = TopicPolicy.Builder.create(this, \"TopicPolicy\")\n .topics(List.of(topic))\n .build();\n\ntopicPolicy.document.addStatements(PolicyStatement.Builder.create()\n .actions(List.of(\"sns:Subscribe\"))\n .principals(List.of(new AnyPrincipal()))\n .resources(List.of(topic.getTopicArn()))\n .build());",
|
2156 | "version": "1"
|
2157 | },
|
2158 | "go": {
|
2159 | "source": "topic := sns.NewTopic(this, jsii.String(\"Topic\"))\ntopicPolicy := sns.NewTopicPolicy(this, jsii.String(\"TopicPolicy\"), &topicPolicyProps{\n\ttopics: []iTopic{\n\t\ttopic,\n\t},\n})\n\ntopicPolicy.document.addStatements(iam.NewPolicyStatement(&policyStatementProps{\n\tactions: []*string{\n\t\tjsii.String(\"sns:Subscribe\"),\n\t},\n\tprincipals: []iPrincipal{\n\t\tiam.NewAnyPrincipal(),\n\t},\n\tresources: []*string{\n\t\ttopic.topicArn,\n\t},\n}))",
|
2160 | "version": "1"
|
2161 | },
|
2162 | "$": {
|
2163 | "source": "const topic = new sns.Topic(this, 'Topic');\nconst topicPolicy = new sns.TopicPolicy(this, 'TopicPolicy', {\n topics: [topic],\n});\n\ntopicPolicy.document.addStatements(new iam.PolicyStatement({\n actions: [\"sns:Subscribe\"],\n principals: [new iam.AnyPrincipal()],\n resources: [topic.topicArn],\n}));",
|
2164 | "version": "0"
|
2165 | }
|
2166 | },
|
2167 | "location": {
|
2168 | "api": {
|
2169 | "api": "type",
|
2170 | "fqn": "@aws-cdk/aws-iam.AnyPrincipal"
|
2171 | },
|
2172 | "field": {
|
2173 | "field": "example"
|
2174 | }
|
2175 | },
|
2176 | "didCompile": true,
|
2177 | "fqnsReferenced": [
|
2178 | "@aws-cdk/aws-iam.AnyPrincipal",
|
2179 | "@aws-cdk/aws-iam.PolicyDocument#addStatements",
|
2180 | "@aws-cdk/aws-iam.PolicyStatement",
|
2181 | "@aws-cdk/aws-iam.PolicyStatementProps",
|
2182 | "@aws-cdk/aws-sns.Topic",
|
2183 | "@aws-cdk/aws-sns.Topic#topicArn",
|
2184 | "@aws-cdk/aws-sns.TopicPolicy",
|
2185 | "@aws-cdk/aws-sns.TopicPolicy#document",
|
2186 | "@aws-cdk/aws-sns.TopicPolicyProps",
|
2187 | "constructs.Construct"
|
2188 | ],
|
2189 | "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as sns from '@aws-cdk/aws-sns';\nimport * as sqs from '@aws-cdk/aws-sqs';\nimport * as subscriptions from '@aws-cdk/aws-sns-subscriptions';\nimport * as iam from '@aws-cdk/aws-iam';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst topic = new sns.Topic(this, 'Topic');\nconst topicPolicy = new sns.TopicPolicy(this, 'TopicPolicy', {\n topics: [topic],\n});\n\ntopicPolicy.document.addStatements(new iam.PolicyStatement({\n actions: [\"sns:Subscribe\"],\n principals: [new iam.AnyPrincipal()],\n resources: [topic.topicArn],\n}));\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
2190 | "syntaxKindCounter": {
|
2191 | "10": 3,
|
2192 | "75": 20,
|
2193 | "104": 2,
|
2194 | "192": 4,
|
2195 | "193": 2,
|
2196 | "194": 7,
|
2197 | "196": 1,
|
2198 | "197": 4,
|
2199 | "225": 2,
|
2200 | "226": 1,
|
2201 | "242": 2,
|
2202 | "243": 2,
|
2203 | "281": 4
|
2204 | },
|
2205 | "fqnsFingerprint": "dc26ffe8736860aa83d096ff0c14b6aed9335a930a4b0be80aeb65e2ec30333b"
|
2206 | },
|
2207 | "705c3f3bd0152b40c2faf0b4ea9a7769e319e95b324a7c6b8bce306e3e99c605": {
|
2208 | "translations": {
|
2209 | "python": {
|
2210 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_iam as iam\n\nanyone = iam.Anyone()",
|
2211 | "version": "2"
|
2212 | },
|
2213 | "csharp": {
|
2214 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.IAM;\n\nAnyone anyone = new Anyone();",
|
2215 | "version": "1"
|
2216 | },
|
2217 | "java": {
|
2218 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.iam.*;\n\nAnyone anyone = new Anyone();",
|
2219 | "version": "1"
|
2220 | },
|
2221 | "go": {
|
2222 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport iam \"github.com/aws-samples/dummy/awscdkawsiam\"\n\nanyone := iam.NewAnyone()",
|
2223 | "version": "1"
|
2224 | },
|
2225 | "$": {
|
2226 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\nconst anyone = new iam.Anyone();",
|
2227 | "version": "0"
|
2228 | }
|
2229 | },
|
2230 | "location": {
|
2231 | "api": {
|
2232 | "api": "type",
|
2233 | "fqn": "@aws-cdk/aws-iam.Anyone"
|
2234 | },
|
2235 | "field": {
|
2236 | "field": "example"
|
2237 | }
|
2238 | },
|
2239 | "didCompile": true,
|
2240 | "fqnsReferenced": [
|
2241 | "@aws-cdk/aws-iam.Anyone"
|
2242 | ],
|
2243 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst anyone = new iam.Anyone();\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
2244 | "syntaxKindCounter": {
|
2245 | "10": 1,
|
2246 | "75": 4,
|
2247 | "194": 1,
|
2248 | "197": 1,
|
2249 | "225": 1,
|
2250 | "242": 1,
|
2251 | "243": 1,
|
2252 | "254": 1,
|
2253 | "255": 1,
|
2254 | "256": 1,
|
2255 | "290": 1
|
2256 | },
|
2257 | "fqnsFingerprint": "3bfad1559b916a64b8c9f8afc04a9aa2942752581dd7ff34c217068d1b87be58"
|
2258 | },
|
2259 | "923fff3d8558f3eaaddcfa70206a010821f424edad1821d2bb0581c7306baa4a": {
|
2260 | "translations": {
|
2261 | "python": {
|
2262 | "source": "# network_load_balancer1: elbv2.NetworkLoadBalancer\n# network_load_balancer2: elbv2.NetworkLoadBalancer\n\n\nec2.VpcEndpointService(self, \"EndpointService\",\n vpc_endpoint_service_load_balancers=[network_load_balancer1, network_load_balancer2],\n acceptance_required=True,\n allowed_principals=[iam.ArnPrincipal(\"arn:aws:iam::123456789012:root\")]\n)",
|
2263 | "version": "2"
|
2264 | },
|
2265 | "csharp": {
|
2266 | "source": "NetworkLoadBalancer networkLoadBalancer1;\nNetworkLoadBalancer networkLoadBalancer2;\n\n\nnew VpcEndpointService(this, \"EndpointService\", new VpcEndpointServiceProps {\n VpcEndpointServiceLoadBalancers = new [] { networkLoadBalancer1, networkLoadBalancer2 },\n AcceptanceRequired = true,\n AllowedPrincipals = new [] { new ArnPrincipal(\"arn:aws:iam::123456789012:root\") }\n});",
|
2267 | "version": "1"
|
2268 | },
|
2269 | "java": {
|
2270 | "source": "NetworkLoadBalancer networkLoadBalancer1;\nNetworkLoadBalancer networkLoadBalancer2;\n\n\nVpcEndpointService.Builder.create(this, \"EndpointService\")\n .vpcEndpointServiceLoadBalancers(List.of(networkLoadBalancer1, networkLoadBalancer2))\n .acceptanceRequired(true)\n .allowedPrincipals(List.of(new ArnPrincipal(\"arn:aws:iam::123456789012:root\")))\n .build();",
|
2271 | "version": "1"
|
2272 | },
|
2273 | "go": {
|
2274 | "source": "var networkLoadBalancer1 networkLoadBalancer\nvar networkLoadBalancer2 networkLoadBalancer\n\n\nec2.NewVpcEndpointService(this, jsii.String(\"EndpointService\"), &vpcEndpointServiceProps{\n\tvpcEndpointServiceLoadBalancers: []iVpcEndpointServiceLoadBalancer{\n\t\tnetworkLoadBalancer1,\n\t\tnetworkLoadBalancer2,\n\t},\n\tacceptanceRequired: jsii.Boolean(true),\n\tallowedPrincipals: []arnPrincipal{\n\t\tiam.NewArnPrincipal(jsii.String(\"arn:aws:iam::123456789012:root\")),\n\t},\n})",
|
2275 | "version": "1"
|
2276 | },
|
2277 | "$": {
|
2278 | "source": "declare const networkLoadBalancer1: elbv2.NetworkLoadBalancer;\ndeclare const networkLoadBalancer2: elbv2.NetworkLoadBalancer;\n\nnew ec2.VpcEndpointService(this, 'EndpointService', {\n vpcEndpointServiceLoadBalancers: [networkLoadBalancer1, networkLoadBalancer2],\n acceptanceRequired: true,\n allowedPrincipals: [new iam.ArnPrincipal('arn:aws:iam::123456789012:root')]\n});",
|
2279 | "version": "0"
|
2280 | }
|
2281 | },
|
2282 | "location": {
|
2283 | "api": {
|
2284 | "api": "type",
|
2285 | "fqn": "@aws-cdk/aws-iam.ArnPrincipal"
|
2286 | },
|
2287 | "field": {
|
2288 | "field": "example"
|
2289 | }
|
2290 | },
|
2291 | "didCompile": true,
|
2292 | "fqnsReferenced": [
|
2293 | "@aws-cdk/aws-ec2.VpcEndpointService",
|
2294 | "@aws-cdk/aws-ec2.VpcEndpointServiceProps",
|
2295 | "@aws-cdk/aws-iam.ArnPrincipal",
|
2296 | "constructs.Construct"
|
2297 | ],
|
2298 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const networkLoadBalancer1: elbv2.NetworkLoadBalancer;\ndeclare const networkLoadBalancer2: elbv2.NetworkLoadBalancer;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Aspects, Construct, Duration, Fn, Size, Stack, StackProps } from '@aws-cdk/core';\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport s3 = require('@aws-cdk/aws-s3');\nimport iam = require('@aws-cdk/aws-iam');\nimport logs = require('@aws-cdk/aws-logs');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport rds = require('@aws-cdk/aws-rds');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\n\nnew ec2.VpcEndpointService(this, 'EndpointService', {\n vpcEndpointServiceLoadBalancers: [networkLoadBalancer1, networkLoadBalancer2],\n acceptanceRequired: true,\n allowedPrincipals: [new iam.ArnPrincipal('arn:aws:iam::123456789012:root')]\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
2299 | "syntaxKindCounter": {
|
2300 | "10": 2,
|
2301 | "75": 15,
|
2302 | "104": 1,
|
2303 | "106": 1,
|
2304 | "130": 2,
|
2305 | "153": 2,
|
2306 | "169": 2,
|
2307 | "192": 2,
|
2308 | "193": 1,
|
2309 | "194": 2,
|
2310 | "197": 2,
|
2311 | "225": 2,
|
2312 | "226": 1,
|
2313 | "242": 2,
|
2314 | "243": 2,
|
2315 | "281": 3,
|
2316 | "290": 1
|
2317 | },
|
2318 | "fqnsFingerprint": "56ce9ce281ebb3c20167334b1746ec8a04e93e750bdd354903cf3ed88e576738"
|
2319 | },
|
2320 | "e9963537f4d2f20407186ba35efb0116ff570beacd61fbdeb255fce2ac58e5f5": {
|
2321 | "translations": {
|
2322 | "python": {
|
2323 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_iam as iam\n\ncanonical_user_principal = iam.CanonicalUserPrincipal(\"canonicalUserId\")",
|
2324 | "version": "2"
|
2325 | },
|
2326 | "csharp": {
|
2327 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.IAM;\n\nCanonicalUserPrincipal canonicalUserPrincipal = new CanonicalUserPrincipal(\"canonicalUserId\");",
|
2328 | "version": "1"
|
2329 | },
|
2330 | "java": {
|
2331 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.iam.*;\n\nCanonicalUserPrincipal canonicalUserPrincipal = new CanonicalUserPrincipal(\"canonicalUserId\");",
|
2332 | "version": "1"
|
2333 | },
|
2334 | "go": {
|
2335 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport iam \"github.com/aws-samples/dummy/awscdkawsiam\"\n\ncanonicalUserPrincipal := iam.NewCanonicalUserPrincipal(jsii.String(\"canonicalUserId\"))",
|
2336 | "version": "1"
|
2337 | },
|
2338 | "$": {
|
2339 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\nconst canonicalUserPrincipal = new iam.CanonicalUserPrincipal('canonicalUserId');",
|
2340 | "version": "0"
|
2341 | }
|
2342 | },
|
2343 | "location": {
|
2344 | "api": {
|
2345 | "api": "type",
|
2346 | "fqn": "@aws-cdk/aws-iam.CanonicalUserPrincipal"
|
2347 | },
|
2348 | "field": {
|
2349 | "field": "example"
|
2350 | }
|
2351 | },
|
2352 | "didCompile": true,
|
2353 | "fqnsReferenced": [
|
2354 | "@aws-cdk/aws-iam.CanonicalUserPrincipal"
|
2355 | ],
|
2356 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst canonicalUserPrincipal = new iam.CanonicalUserPrincipal('canonicalUserId');\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
2357 | "syntaxKindCounter": {
|
2358 | "10": 2,
|
2359 | "75": 4,
|
2360 | "194": 1,
|
2361 | "197": 1,
|
2362 | "225": 1,
|
2363 | "242": 1,
|
2364 | "243": 1,
|
2365 | "254": 1,
|
2366 | "255": 1,
|
2367 | "256": 1,
|
2368 | "290": 1
|
2369 | },
|
2370 | "fqnsFingerprint": "38fe255609209b0b90807936557e7f5feceed472382856714214c49abd206556"
|
2371 | },
|
2372 | "6295d4278936d208ba1426c307582cd9d2737bbd66acfa0cbea83d8d261299c5": {
|
2373 | "translations": {
|
2374 | "python": {
|
2375 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_iam as iam\n\ncfn_access_key = iam.CfnAccessKey(self, \"MyCfnAccessKey\",\n user_name=\"userName\",\n\n # the properties below are optional\n serial=123,\n status=\"status\"\n)",
|
2376 | "version": "2"
|
2377 | },
|
2378 | "csharp": {
|
2379 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.IAM;\n\nCfnAccessKey cfnAccessKey = new CfnAccessKey(this, \"MyCfnAccessKey\", new CfnAccessKeyProps {\n UserName = \"userName\",\n\n // the properties below are optional\n Serial = 123,\n Status = \"status\"\n});",
|
2380 | "version": "1"
|
2381 | },
|
2382 | "java": {
|
2383 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.iam.*;\n\nCfnAccessKey cfnAccessKey = CfnAccessKey.Builder.create(this, \"MyCfnAccessKey\")\n .userName(\"userName\")\n\n // the properties below are optional\n .serial(123)\n .status(\"status\")\n .build();",
|
2384 | "version": "1"
|
2385 | },
|
2386 | "go": {
|
2387 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport iam \"github.com/aws-samples/dummy/awscdkawsiam\"\n\ncfnAccessKey := iam.NewCfnAccessKey(this, jsii.String(\"MyCfnAccessKey\"), &cfnAccessKeyProps{\n\tuserName: jsii.String(\"userName\"),\n\n\t// the properties below are optional\n\tserial: jsii.Number(123),\n\tstatus: jsii.String(\"status\"),\n})",
|
2388 | "version": "1"
|
2389 | },
|
2390 | "$": {
|
2391 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\nconst cfnAccessKey = new iam.CfnAccessKey(this, 'MyCfnAccessKey', {\n userName: 'userName',\n\n // the properties below are optional\n serial: 123,\n status: 'status',\n});",
|
2392 | "version": "0"
|
2393 | }
|
2394 | },
|
2395 | "location": {
|
2396 | "api": {
|
2397 | "api": "type",
|
2398 | "fqn": "@aws-cdk/aws-iam.CfnAccessKey"
|
2399 | },
|
2400 | "field": {
|
2401 | "field": "example"
|
2402 | }
|
2403 | },
|
2404 | "didCompile": true,
|
2405 | "fqnsReferenced": [
|
2406 | "@aws-cdk/aws-iam.CfnAccessKey",
|
2407 | "@aws-cdk/aws-iam.CfnAccessKeyProps",
|
2408 | "@aws-cdk/core.Construct"
|
2409 | ],
|
2410 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst cfnAccessKey = new iam.CfnAccessKey(this, 'MyCfnAccessKey', {\n userName: 'userName',\n\n // the properties below are optional\n serial: 123,\n status: 'status',\n});\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
2411 | "syntaxKindCounter": {
|
2412 | "8": 1,
|
2413 | "10": 4,
|
2414 | "75": 7,
|
2415 | "104": 1,
|
2416 | "193": 1,
|
2417 | "194": 1,
|
2418 | "197": 1,
|
2419 | "225": 1,
|
2420 | "242": 1,
|
2421 | "243": 1,
|
2422 | "254": 1,
|
2423 | "255": 1,
|
2424 | "256": 1,
|
2425 | "281": 3,
|
2426 | "290": 1
|
2427 | },
|
2428 | "fqnsFingerprint": "f5dd6c20ce92ef8020731d297ebf93063e54a7b4ef14c8b86f596090273ef380"
|
2429 | },
|
2430 | "e46e5d597a04b2ba031d1d6cb0473d004982d76befcd7134f40a378f537373d8": {
|
2431 | "translations": {
|
2432 | "python": {
|
2433 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_iam as iam\n\ncfn_access_key_props = iam.CfnAccessKeyProps(\n user_name=\"userName\",\n\n # the properties below are optional\n serial=123,\n status=\"status\"\n)",
|
2434 | "version": "2"
|
2435 | },
|
2436 | "csharp": {
|
2437 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.IAM;\n\nCfnAccessKeyProps cfnAccessKeyProps = new CfnAccessKeyProps {\n UserName = \"userName\",\n\n // the properties below are optional\n Serial = 123,\n Status = \"status\"\n};",
|
2438 | "version": "1"
|
2439 | },
|
2440 | "java": {
|
2441 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.iam.*;\n\nCfnAccessKeyProps cfnAccessKeyProps = CfnAccessKeyProps.builder()\n .userName(\"userName\")\n\n // the properties below are optional\n .serial(123)\n .status(\"status\")\n .build();",
|
2442 | "version": "1"
|
2443 | },
|
2444 | "go": {
|
2445 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport iam \"github.com/aws-samples/dummy/awscdkawsiam\"\n\ncfnAccessKeyProps := &cfnAccessKeyProps{\n\tuserName: jsii.String(\"userName\"),\n\n\t// the properties below are optional\n\tserial: jsii.Number(123),\n\tstatus: jsii.String(\"status\"),\n}",
|
2446 | "version": "1"
|
2447 | },
|
2448 | "$": {
|
2449 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\nconst cfnAccessKeyProps: iam.CfnAccessKeyProps = {\n userName: 'userName',\n\n // the properties below are optional\n serial: 123,\n status: 'status',\n};",
|
2450 | "version": "0"
|
2451 | }
|
2452 | },
|
2453 | "location": {
|
2454 | "api": {
|
2455 | "api": "type",
|
2456 | "fqn": "@aws-cdk/aws-iam.CfnAccessKeyProps"
|
2457 | },
|
2458 | "field": {
|
2459 | "field": "example"
|
2460 | }
|
2461 | },
|
2462 | "didCompile": true,
|
2463 | "fqnsReferenced": [
|
2464 | "@aws-cdk/aws-iam.CfnAccessKeyProps"
|
2465 | ],
|
2466 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst cfnAccessKeyProps: iam.CfnAccessKeyProps = {\n userName: 'userName',\n\n // the properties below are optional\n serial: 123,\n status: 'status',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
2467 | "syntaxKindCounter": {
|
2468 | "8": 1,
|
2469 | "10": 3,
|
2470 | "75": 7,
|
2471 | "153": 1,
|
2472 | "169": 1,
|
2473 | "193": 1,
|
2474 | "225": 1,
|
2475 | "242": 1,
|
2476 | "243": 1,
|
2477 | "254": 1,
|
2478 | "255": 1,
|
2479 | "256": 1,
|
2480 | "281": 3,
|
2481 | "290": 1
|
2482 | },
|
2483 | "fqnsFingerprint": "2ccf90967a2b833f4816bf58e72a3259d34620022406ccc0bf1156f881540c0c"
|
2484 | },
|
2485 | "836c917aa87541ef552d6a2d9509419ed2765c2c9f2b236a57c73340dcf8a498": {
|
2486 | "translations": {
|
2487 | "python": {
|
2488 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_iam as iam\n\n# policy_document: Any\n\ncfn_group = iam.CfnGroup(self, \"MyCfnGroup\",\n group_name=\"groupName\",\n managed_policy_arns=[\"managedPolicyArns\"],\n path=\"path\",\n policies=[iam.CfnGroup.PolicyProperty(\n policy_document=policy_document,\n policy_name=\"policyName\"\n )]\n)",
|
2489 | "version": "2"
|
2490 | },
|
2491 | "csharp": {
|
2492 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.IAM;\n\nvar policyDocument;\n\nCfnGroup cfnGroup = new CfnGroup(this, \"MyCfnGroup\", new CfnGroupProps {\n GroupName = \"groupName\",\n ManagedPolicyArns = new [] { \"managedPolicyArns\" },\n Path = \"path\",\n Policies = new [] { new PolicyProperty {\n PolicyDocument = policyDocument,\n PolicyName = \"policyName\"\n } }\n});",
|
2493 | "version": "1"
|
2494 | },
|
2495 | "java": {
|
2496 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.iam.*;\n\nObject policyDocument;\n\nCfnGroup cfnGroup = CfnGroup.Builder.create(this, \"MyCfnGroup\")\n .groupName(\"groupName\")\n .managedPolicyArns(List.of(\"managedPolicyArns\"))\n .path(\"path\")\n .policies(List.of(PolicyProperty.builder()\n .policyDocument(policyDocument)\n .policyName(\"policyName\")\n .build()))\n .build();",
|
2497 | "version": "1"
|
2498 | },
|
2499 | "go": {
|
2500 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport iam \"github.com/aws-samples/dummy/awscdkawsiam\"\n\nvar policyDocument interface{}\n\ncfnGroup := iam.NewCfnGroup(this, jsii.String(\"MyCfnGroup\"), &cfnGroupProps{\n\tgroupName: jsii.String(\"groupName\"),\n\tmanagedPolicyArns: []*string{\n\t\tjsii.String(\"managedPolicyArns\"),\n\t},\n\tpath: jsii.String(\"path\"),\n\tpolicies: []interface{}{\n\t\t&policyProperty{\n\t\t\tpolicyDocument: policyDocument,\n\t\t\tpolicyName: jsii.String(\"policyName\"),\n\t\t},\n\t},\n})",
|
2501 | "version": "1"
|
2502 | },
|
2503 | "$": {
|
2504 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\n\ndeclare const policyDocument: any;\nconst cfnGroup = new iam.CfnGroup(this, 'MyCfnGroup', /* all optional props */ {\n groupName: 'groupName',\n managedPolicyArns: ['managedPolicyArns'],\n path: 'path',\n policies: [{\n policyDocument: policyDocument,\n policyName: 'policyName',\n }],\n});",
|
2505 | "version": "0"
|
2506 | }
|
2507 | },
|
2508 | "location": {
|
2509 | "api": {
|
2510 | "api": "type",
|
2511 | "fqn": "@aws-cdk/aws-iam.CfnGroup"
|
2512 | },
|
2513 | "field": {
|
2514 | "field": "example"
|
2515 | }
|
2516 | },
|
2517 | "didCompile": true,
|
2518 | "fqnsReferenced": [
|
2519 | "@aws-cdk/aws-iam.CfnGroup",
|
2520 | "@aws-cdk/aws-iam.CfnGroupProps",
|
2521 | "@aws-cdk/core.Construct"
|
2522 | ],
|
2523 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\n\ndeclare const policyDocument: any;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst cfnGroup = new iam.CfnGroup(this, 'MyCfnGroup', /* all optional props */ {\n groupName: 'groupName',\n managedPolicyArns: ['managedPolicyArns'],\n path: 'path',\n policies: [{\n policyDocument: policyDocument,\n policyName: 'policyName',\n }],\n});\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
2524 | "syntaxKindCounter": {
|
2525 | "10": 6,
|
2526 | "75": 12,
|
2527 | "104": 1,
|
2528 | "125": 1,
|
2529 | "130": 1,
|
2530 | "192": 2,
|
2531 | "193": 2,
|
2532 | "194": 1,
|
2533 | "197": 1,
|
2534 | "225": 2,
|
2535 | "242": 2,
|
2536 | "243": 2,
|
2537 | "254": 1,
|
2538 | "255": 1,
|
2539 | "256": 1,
|
2540 | "281": 6,
|
2541 | "290": 1
|
2542 | },
|
2543 | "fqnsFingerprint": "cda5e8ba2da207b3af63800cabb7fbd59b40556689cf56912986275bb459e3b0"
|
2544 | },
|
2545 | "d500287d1a152c047f213e7b96275fc04b95c04ea60f6cfa83295cacd7196c18": {
|
2546 | "translations": {
|
2547 | "python": {
|
2548 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_iam as iam\n\n# policy_document: Any\n\npolicy_property = iam.CfnGroup.PolicyProperty(\n policy_document=policy_document,\n policy_name=\"policyName\"\n)",
|
2549 | "version": "2"
|
2550 | },
|
2551 | "csharp": {
|
2552 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.IAM;\n\nvar policyDocument;\n\nPolicyProperty policyProperty = new PolicyProperty {\n PolicyDocument = policyDocument,\n PolicyName = \"policyName\"\n};",
|
2553 | "version": "1"
|
2554 | },
|
2555 | "java": {
|
2556 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.iam.*;\n\nObject policyDocument;\n\nPolicyProperty policyProperty = PolicyProperty.builder()\n .policyDocument(policyDocument)\n .policyName(\"policyName\")\n .build();",
|
2557 | "version": "1"
|
2558 | },
|
2559 | "go": {
|
2560 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport iam \"github.com/aws-samples/dummy/awscdkawsiam\"\n\nvar policyDocument interface{}\n\npolicyProperty := &policyProperty{\n\tpolicyDocument: policyDocument,\n\tpolicyName: jsii.String(\"policyName\"),\n}",
|
2561 | "version": "1"
|
2562 | },
|
2563 | "$": {
|
2564 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\n\ndeclare const policyDocument: any;\nconst policyProperty: iam.CfnGroup.PolicyProperty = {\n policyDocument: policyDocument,\n policyName: 'policyName',\n};",
|
2565 | "version": "0"
|
2566 | }
|
2567 | },
|
2568 | "location": {
|
2569 | "api": {
|
2570 | "api": "type",
|
2571 | "fqn": "@aws-cdk/aws-iam.CfnGroup.PolicyProperty"
|
2572 | },
|
2573 | "field": {
|
2574 | "field": "example"
|
2575 | }
|
2576 | },
|
2577 | "didCompile": true,
|
2578 | "fqnsReferenced": [
|
2579 | "@aws-cdk/aws-iam.CfnGroup.PolicyProperty"
|
2580 | ],
|
2581 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\n\ndeclare const policyDocument: any;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst policyProperty: iam.CfnGroup.PolicyProperty = {\n policyDocument: policyDocument,\n policyName: 'policyName',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
2582 | "syntaxKindCounter": {
|
2583 | "10": 2,
|
2584 | "75": 9,
|
2585 | "125": 1,
|
2586 | "130": 1,
|
2587 | "153": 2,
|
2588 | "169": 1,
|
2589 | "193": 1,
|
2590 | "225": 2,
|
2591 | "242": 2,
|
2592 | "243": 2,
|
2593 | "254": 1,
|
2594 | "255": 1,
|
2595 | "256": 1,
|
2596 | "281": 2,
|
2597 | "290": 1
|
2598 | },
|
2599 | "fqnsFingerprint": "5e5f4da813827deae0a1dc6565fbc10bfb37782c1bd25d7e0818fd7c5a91f0f3"
|
2600 | },
|
2601 | "efb844086d28f92fcfb177ad85bfc2d8fd58ce8dd64d82d62ceb855fe4656226": {
|
2602 | "translations": {
|
2603 | "python": {
|
2604 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_iam as iam\n\n# policy_document: Any\n\ncfn_group_props = iam.CfnGroupProps(\n group_name=\"groupName\",\n managed_policy_arns=[\"managedPolicyArns\"],\n path=\"path\",\n policies=[iam.CfnGroup.PolicyProperty(\n policy_document=policy_document,\n policy_name=\"policyName\"\n )]\n)",
|
2605 | "version": "2"
|
2606 | },
|
2607 | "csharp": {
|
2608 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.IAM;\n\nvar policyDocument;\n\nCfnGroupProps cfnGroupProps = new CfnGroupProps {\n GroupName = \"groupName\",\n ManagedPolicyArns = new [] { \"managedPolicyArns\" },\n Path = \"path\",\n Policies = new [] { new PolicyProperty {\n PolicyDocument = policyDocument,\n PolicyName = \"policyName\"\n } }\n};",
|
2609 | "version": "1"
|
2610 | },
|
2611 | "java": {
|
2612 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.iam.*;\n\nObject policyDocument;\n\nCfnGroupProps cfnGroupProps = CfnGroupProps.builder()\n .groupName(\"groupName\")\n .managedPolicyArns(List.of(\"managedPolicyArns\"))\n .path(\"path\")\n .policies(List.of(PolicyProperty.builder()\n .policyDocument(policyDocument)\n .policyName(\"policyName\")\n .build()))\n .build();",
|
2613 | "version": "1"
|
2614 | },
|
2615 | "go": {
|
2616 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport iam \"github.com/aws-samples/dummy/awscdkawsiam\"\n\nvar policyDocument interface{}\n\ncfnGroupProps := &cfnGroupProps{\n\tgroupName: jsii.String(\"groupName\"),\n\tmanagedPolicyArns: []*string{\n\t\tjsii.String(\"managedPolicyArns\"),\n\t},\n\tpath: jsii.String(\"path\"),\n\tpolicies: []interface{}{\n\t\t&policyProperty{\n\t\t\tpolicyDocument: policyDocument,\n\t\t\tpolicyName: jsii.String(\"policyName\"),\n\t\t},\n\t},\n}",
|
2617 | "version": "1"
|
2618 | },
|
2619 | "$": {
|
2620 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\n\ndeclare const policyDocument: any;\nconst cfnGroupProps: iam.CfnGroupProps = {\n groupName: 'groupName',\n managedPolicyArns: ['managedPolicyArns'],\n path: 'path',\n policies: [{\n policyDocument: policyDocument,\n policyName: 'policyName',\n }],\n};",
|
2621 | "version": "0"
|
2622 | }
|
2623 | },
|
2624 | "location": {
|
2625 | "api": {
|
2626 | "api": "type",
|
2627 | "fqn": "@aws-cdk/aws-iam.CfnGroupProps"
|
2628 | },
|
2629 | "field": {
|
2630 | "field": "example"
|
2631 | }
|
2632 | },
|
2633 | "didCompile": true,
|
2634 | "fqnsReferenced": [
|
2635 | "@aws-cdk/aws-iam.CfnGroupProps"
|
2636 | ],
|
2637 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\n\ndeclare const policyDocument: any;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst cfnGroupProps: iam.CfnGroupProps = {\n groupName: 'groupName',\n managedPolicyArns: ['managedPolicyArns'],\n path: 'path',\n policies: [{\n policyDocument: policyDocument,\n policyName: 'policyName',\n }],\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
2638 | "syntaxKindCounter": {
|
2639 | "10": 5,
|
2640 | "75": 12,
|
2641 | "125": 1,
|
2642 | "130": 1,
|
2643 | "153": 1,
|
2644 | "169": 1,
|
2645 | "192": 2,
|
2646 | "193": 2,
|
2647 | "225": 2,
|
2648 | "242": 2,
|
2649 | "243": 2,
|
2650 | "254": 1,
|
2651 | "255": 1,
|
2652 | "256": 1,
|
2653 | "281": 6,
|
2654 | "290": 1
|
2655 | },
|
2656 | "fqnsFingerprint": "79d474fb4dd1ed5fba5fa884cb40f4dc05df43a4125502b2f9868a0811353e7f"
|
2657 | },
|
2658 | "2c9e18092d183af7be0c8e2702e00311fb432cb0c2e855bf96bc10e03df1f311": {
|
2659 | "translations": {
|
2660 | "python": {
|
2661 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_iam as iam\n\ncfn_instance_profile = iam.CfnInstanceProfile(self, \"MyCfnInstanceProfile\",\n roles=[\"roles\"],\n\n # the properties below are optional\n instance_profile_name=\"instanceProfileName\",\n path=\"path\"\n)",
|
2662 | "version": "2"
|
2663 | },
|
2664 | "csharp": {
|
2665 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.IAM;\n\nCfnInstanceProfile cfnInstanceProfile = new CfnInstanceProfile(this, \"MyCfnInstanceProfile\", new CfnInstanceProfileProps {\n Roles = new [] { \"roles\" },\n\n // the properties below are optional\n InstanceProfileName = \"instanceProfileName\",\n Path = \"path\"\n});",
|
2666 | "version": "1"
|
2667 | },
|
2668 | "java": {
|
2669 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.iam.*;\n\nCfnInstanceProfile cfnInstanceProfile = CfnInstanceProfile.Builder.create(this, \"MyCfnInstanceProfile\")\n .roles(List.of(\"roles\"))\n\n // the properties below are optional\n .instanceProfileName(\"instanceProfileName\")\n .path(\"path\")\n .build();",
|
2670 | "version": "1"
|
2671 | },
|
2672 | "go": {
|
2673 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport iam \"github.com/aws-samples/dummy/awscdkawsiam\"\n\ncfnInstanceProfile := iam.NewCfnInstanceProfile(this, jsii.String(\"MyCfnInstanceProfile\"), &cfnInstanceProfileProps{\n\troles: []*string{\n\t\tjsii.String(\"roles\"),\n\t},\n\n\t// the properties below are optional\n\tinstanceProfileName: jsii.String(\"instanceProfileName\"),\n\tpath: jsii.String(\"path\"),\n})",
|
2674 | "version": "1"
|
2675 | },
|
2676 | "$": {
|
2677 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\nconst cfnInstanceProfile = new iam.CfnInstanceProfile(this, 'MyCfnInstanceProfile', {\n roles: ['roles'],\n\n // the properties below are optional\n instanceProfileName: 'instanceProfileName',\n path: 'path',\n});",
|
2678 | "version": "0"
|
2679 | }
|
2680 | },
|
2681 | "location": {
|
2682 | "api": {
|
2683 | "api": "type",
|
2684 | "fqn": "@aws-cdk/aws-iam.CfnInstanceProfile"
|
2685 | },
|
2686 | "field": {
|
2687 | "field": "example"
|
2688 | }
|
2689 | },
|
2690 | "didCompile": true,
|
2691 | "fqnsReferenced": [
|
2692 | "@aws-cdk/aws-iam.CfnInstanceProfile",
|
2693 | "@aws-cdk/aws-iam.CfnInstanceProfileProps",
|
2694 | "@aws-cdk/core.Construct"
|
2695 | ],
|
2696 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst cfnInstanceProfile = new iam.CfnInstanceProfile(this, 'MyCfnInstanceProfile', {\n roles: ['roles'],\n\n // the properties below are optional\n instanceProfileName: 'instanceProfileName',\n path: 'path',\n});\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
2697 | "syntaxKindCounter": {
|
2698 | "10": 5,
|
2699 | "75": 7,
|
2700 | "104": 1,
|
2701 | "192": 1,
|
2702 | "193": 1,
|
2703 | "194": 1,
|
2704 | "197": 1,
|
2705 | "225": 1,
|
2706 | "242": 1,
|
2707 | "243": 1,
|
2708 | "254": 1,
|
2709 | "255": 1,
|
2710 | "256": 1,
|
2711 | "281": 3,
|
2712 | "290": 1
|
2713 | },
|
2714 | "fqnsFingerprint": "693e2f861295755b5917b815d413c16444eeab7268ab8870116614d11f0495fb"
|
2715 | },
|
2716 | "f322f29e2c26c5fe8d4193321351e2c6e92fa05d6a734646e9c52459b081ad81": {
|
2717 | "translations": {
|
2718 | "python": {
|
2719 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_iam as iam\n\ncfn_instance_profile_props = iam.CfnInstanceProfileProps(\n roles=[\"roles\"],\n\n # the properties below are optional\n instance_profile_name=\"instanceProfileName\",\n path=\"path\"\n)",
|
2720 | "version": "2"
|
2721 | },
|
2722 | "csharp": {
|
2723 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.IAM;\n\nCfnInstanceProfileProps cfnInstanceProfileProps = new CfnInstanceProfileProps {\n Roles = new [] { \"roles\" },\n\n // the properties below are optional\n InstanceProfileName = \"instanceProfileName\",\n Path = \"path\"\n};",
|
2724 | "version": "1"
|
2725 | },
|
2726 | "java": {
|
2727 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.iam.*;\n\nCfnInstanceProfileProps cfnInstanceProfileProps = CfnInstanceProfileProps.builder()\n .roles(List.of(\"roles\"))\n\n // the properties below are optional\n .instanceProfileName(\"instanceProfileName\")\n .path(\"path\")\n .build();",
|
2728 | "version": "1"
|
2729 | },
|
2730 | "go": {
|
2731 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport iam \"github.com/aws-samples/dummy/awscdkawsiam\"\n\ncfnInstanceProfileProps := &cfnInstanceProfileProps{\n\troles: []*string{\n\t\tjsii.String(\"roles\"),\n\t},\n\n\t// the properties below are optional\n\tinstanceProfileName: jsii.String(\"instanceProfileName\"),\n\tpath: jsii.String(\"path\"),\n}",
|
2732 | "version": "1"
|
2733 | },
|
2734 | "$": {
|
2735 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\nconst cfnInstanceProfileProps: iam.CfnInstanceProfileProps = {\n roles: ['roles'],\n\n // the properties below are optional\n instanceProfileName: 'instanceProfileName',\n path: 'path',\n};",
|
2736 | "version": "0"
|
2737 | }
|
2738 | },
|
2739 | "location": {
|
2740 | "api": {
|
2741 | "api": "type",
|
2742 | "fqn": "@aws-cdk/aws-iam.CfnInstanceProfileProps"
|
2743 | },
|
2744 | "field": {
|
2745 | "field": "example"
|
2746 | }
|
2747 | },
|
2748 | "didCompile": true,
|
2749 | "fqnsReferenced": [
|
2750 | "@aws-cdk/aws-iam.CfnInstanceProfileProps"
|
2751 | ],
|
2752 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst cfnInstanceProfileProps: iam.CfnInstanceProfileProps = {\n roles: ['roles'],\n\n // the properties below are optional\n instanceProfileName: 'instanceProfileName',\n path: 'path',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
2753 | "syntaxKindCounter": {
|
2754 | "10": 4,
|
2755 | "75": 7,
|
2756 | "153": 1,
|
2757 | "169": 1,
|
2758 | "192": 1,
|
2759 | "193": 1,
|
2760 | "225": 1,
|
2761 | "242": 1,
|
2762 | "243": 1,
|
2763 | "254": 1,
|
2764 | "255": 1,
|
2765 | "256": 1,
|
2766 | "281": 3,
|
2767 | "290": 1
|
2768 | },
|
2769 | "fqnsFingerprint": "1969d18088658c869656fe84c574f89292e1de0ab16022f338127941df7ed13d"
|
2770 | },
|
2771 | "a65042bda11f96598aac54fd77f1c165bb7398bda466bead72cccff6ef9f8212": {
|
2772 | "translations": {
|
2773 | "python": {
|
2774 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_iam as iam\n\n# policy_document: Any\n\ncfn_managed_policy = iam.CfnManagedPolicy(self, \"MyCfnManagedPolicy\",\n policy_document=policy_document,\n\n # the properties below are optional\n description=\"description\",\n groups=[\"groups\"],\n managed_policy_name=\"managedPolicyName\",\n path=\"path\",\n roles=[\"roles\"],\n users=[\"users\"]\n)",
|
2775 | "version": "2"
|
2776 | },
|
2777 | "csharp": {
|
2778 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.IAM;\n\nvar policyDocument;\n\nCfnManagedPolicy cfnManagedPolicy = new CfnManagedPolicy(this, \"MyCfnManagedPolicy\", new CfnManagedPolicyProps {\n PolicyDocument = policyDocument,\n\n // the properties below are optional\n Description = \"description\",\n Groups = new [] { \"groups\" },\n ManagedPolicyName = \"managedPolicyName\",\n Path = \"path\",\n Roles = new [] { \"roles\" },\n Users = new [] { \"users\" }\n});",
|
2779 | "version": "1"
|
2780 | },
|
2781 | "java": {
|
2782 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.iam.*;\n\nObject policyDocument;\n\nCfnManagedPolicy cfnManagedPolicy = CfnManagedPolicy.Builder.create(this, \"MyCfnManagedPolicy\")\n .policyDocument(policyDocument)\n\n // the properties below are optional\n .description(\"description\")\n .groups(List.of(\"groups\"))\n .managedPolicyName(\"managedPolicyName\")\n .path(\"path\")\n .roles(List.of(\"roles\"))\n .users(List.of(\"users\"))\n .build();",
|
2783 | "version": "1"
|
2784 | },
|
2785 | "go": {
|
2786 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport iam \"github.com/aws-samples/dummy/awscdkawsiam\"\n\nvar policyDocument interface{}\n\ncfnManagedPolicy := iam.NewCfnManagedPolicy(this, jsii.String(\"MyCfnManagedPolicy\"), &cfnManagedPolicyProps{\n\tpolicyDocument: policyDocument,\n\n\t// the properties below are optional\n\tdescription: jsii.String(\"description\"),\n\tgroups: []*string{\n\t\tjsii.String(\"groups\"),\n\t},\n\tmanagedPolicyName: jsii.String(\"managedPolicyName\"),\n\tpath: jsii.String(\"path\"),\n\troles: []*string{\n\t\tjsii.String(\"roles\"),\n\t},\n\tusers: []*string{\n\t\tjsii.String(\"users\"),\n\t},\n})",
|
2787 | "version": "1"
|
2788 | },
|
2789 | "$": {
|
2790 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\n\ndeclare const policyDocument: any;\nconst cfnManagedPolicy = new iam.CfnManagedPolicy(this, 'MyCfnManagedPolicy', {\n policyDocument: policyDocument,\n\n // the properties below are optional\n description: 'description',\n groups: ['groups'],\n managedPolicyName: 'managedPolicyName',\n path: 'path',\n roles: ['roles'],\n users: ['users'],\n});",
|
2791 | "version": "0"
|
2792 | }
|
2793 | },
|
2794 | "location": {
|
2795 | "api": {
|
2796 | "api": "type",
|
2797 | "fqn": "@aws-cdk/aws-iam.CfnManagedPolicy"
|
2798 | },
|
2799 | "field": {
|
2800 | "field": "example"
|
2801 | }
|
2802 | },
|
2803 | "didCompile": true,
|
2804 | "fqnsReferenced": [
|
2805 | "@aws-cdk/aws-iam.CfnManagedPolicy",
|
2806 | "@aws-cdk/aws-iam.CfnManagedPolicyProps",
|
2807 | "@aws-cdk/core.Construct"
|
2808 | ],
|
2809 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\n\ndeclare const policyDocument: any;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst cfnManagedPolicy = new iam.CfnManagedPolicy(this, 'MyCfnManagedPolicy', {\n policyDocument: policyDocument,\n\n // the properties below are optional\n description: 'description',\n groups: ['groups'],\n managedPolicyName: 'managedPolicyName',\n path: 'path',\n roles: ['roles'],\n users: ['users'],\n});\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
2810 | "syntaxKindCounter": {
|
2811 | "10": 8,
|
2812 | "75": 13,
|
2813 | "104": 1,
|
2814 | "125": 1,
|
2815 | "130": 1,
|
2816 | "192": 3,
|
2817 | "193": 1,
|
2818 | "194": 1,
|
2819 | "197": 1,
|
2820 | "225": 2,
|
2821 | "242": 2,
|
2822 | "243": 2,
|
2823 | "254": 1,
|
2824 | "255": 1,
|
2825 | "256": 1,
|
2826 | "281": 7,
|
2827 | "290": 1
|
2828 | },
|
2829 | "fqnsFingerprint": "e551ef43171f4077e1d58dd31c5d7822ca171d02a9f89aec41a982bb63d2f189"
|
2830 | },
|
2831 | "a196ac881c0b58ffe672508524e03b18a58fa8d770b04b8970ca4d4cac457750": {
|
2832 | "translations": {
|
2833 | "python": {
|
2834 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_iam as iam\n\n# policy_document: Any\n\ncfn_managed_policy_props = iam.CfnManagedPolicyProps(\n policy_document=policy_document,\n\n # the properties below are optional\n description=\"description\",\n groups=[\"groups\"],\n managed_policy_name=\"managedPolicyName\",\n path=\"path\",\n roles=[\"roles\"],\n users=[\"users\"]\n)",
|
2835 | "version": "2"
|
2836 | },
|
2837 | "csharp": {
|
2838 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.IAM;\n\nvar policyDocument;\n\nCfnManagedPolicyProps cfnManagedPolicyProps = new CfnManagedPolicyProps {\n PolicyDocument = policyDocument,\n\n // the properties below are optional\n Description = \"description\",\n Groups = new [] { \"groups\" },\n ManagedPolicyName = \"managedPolicyName\",\n Path = \"path\",\n Roles = new [] { \"roles\" },\n Users = new [] { \"users\" }\n};",
|
2839 | "version": "1"
|
2840 | },
|
2841 | "java": {
|
2842 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.iam.*;\n\nObject policyDocument;\n\nCfnManagedPolicyProps cfnManagedPolicyProps = CfnManagedPolicyProps.builder()\n .policyDocument(policyDocument)\n\n // the properties below are optional\n .description(\"description\")\n .groups(List.of(\"groups\"))\n .managedPolicyName(\"managedPolicyName\")\n .path(\"path\")\n .roles(List.of(\"roles\"))\n .users(List.of(\"users\"))\n .build();",
|
2843 | "version": "1"
|
2844 | },
|
2845 | "go": {
|
2846 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport iam \"github.com/aws-samples/dummy/awscdkawsiam\"\n\nvar policyDocument interface{}\n\ncfnManagedPolicyProps := &cfnManagedPolicyProps{\n\tpolicyDocument: policyDocument,\n\n\t// the properties below are optional\n\tdescription: jsii.String(\"description\"),\n\tgroups: []*string{\n\t\tjsii.String(\"groups\"),\n\t},\n\tmanagedPolicyName: jsii.String(\"managedPolicyName\"),\n\tpath: jsii.String(\"path\"),\n\troles: []*string{\n\t\tjsii.String(\"roles\"),\n\t},\n\tusers: []*string{\n\t\tjsii.String(\"users\"),\n\t},\n}",
|
2847 | "version": "1"
|
2848 | },
|
2849 | "$": {
|
2850 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\n\ndeclare const policyDocument: any;\nconst cfnManagedPolicyProps: iam.CfnManagedPolicyProps = {\n policyDocument: policyDocument,\n\n // the properties below are optional\n description: 'description',\n groups: ['groups'],\n managedPolicyName: 'managedPolicyName',\n path: 'path',\n roles: ['roles'],\n users: ['users'],\n};",
|
2851 | "version": "0"
|
2852 | }
|
2853 | },
|
2854 | "location": {
|
2855 | "api": {
|
2856 | "api": "type",
|
2857 | "fqn": "@aws-cdk/aws-iam.CfnManagedPolicyProps"
|
2858 | },
|
2859 | "field": {
|
2860 | "field": "example"
|
2861 | }
|
2862 | },
|
2863 | "didCompile": true,
|
2864 | "fqnsReferenced": [
|
2865 | "@aws-cdk/aws-iam.CfnManagedPolicyProps"
|
2866 | ],
|
2867 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\n\ndeclare const policyDocument: any;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst cfnManagedPolicyProps: iam.CfnManagedPolicyProps = {\n policyDocument: policyDocument,\n\n // the properties below are optional\n description: 'description',\n groups: ['groups'],\n managedPolicyName: 'managedPolicyName',\n path: 'path',\n roles: ['roles'],\n users: ['users'],\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
2868 | "syntaxKindCounter": {
|
2869 | "10": 7,
|
2870 | "75": 13,
|
2871 | "125": 1,
|
2872 | "130": 1,
|
2873 | "153": 1,
|
2874 | "169": 1,
|
2875 | "192": 3,
|
2876 | "193": 1,
|
2877 | "225": 2,
|
2878 | "242": 2,
|
2879 | "243": 2,
|
2880 | "254": 1,
|
2881 | "255": 1,
|
2882 | "256": 1,
|
2883 | "281": 7,
|
2884 | "290": 1
|
2885 | },
|
2886 | "fqnsFingerprint": "9c01cf5187615a63736d60d4ccd1ba00107c52ee48cf08a2d8a2ed178ac8aff5"
|
2887 | },
|
2888 | "c699e23772c5e27e542e1313bee8000571fafea4da79da9cde7d34bb9cfd3118": {
|
2889 | "translations": {
|
2890 | "python": {
|
2891 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_iam as iam\n\ncfn_oIDCProvider = iam.CfnOIDCProvider(self, \"MyCfnOIDCProvider\",\n thumbprint_list=[\"thumbprintList\"],\n\n # the properties below are optional\n client_id_list=[\"clientIdList\"],\n tags=[CfnTag(\n key=\"key\",\n value=\"value\"\n )],\n url=\"url\"\n)",
|
2892 | "version": "2"
|
2893 | },
|
2894 | "csharp": {
|
2895 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.IAM;\n\nCfnOIDCProvider cfnOIDCProvider = new CfnOIDCProvider(this, \"MyCfnOIDCProvider\", new CfnOIDCProviderProps {\n ThumbprintList = new [] { \"thumbprintList\" },\n\n // the properties below are optional\n ClientIdList = new [] { \"clientIdList\" },\n Tags = new [] { new CfnTag {\n Key = \"key\",\n Value = \"value\"\n } },\n Url = \"url\"\n});",
|
2896 | "version": "1"
|
2897 | },
|
2898 | "java": {
|
2899 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.iam.*;\n\nCfnOIDCProvider cfnOIDCProvider = CfnOIDCProvider.Builder.create(this, \"MyCfnOIDCProvider\")\n .thumbprintList(List.of(\"thumbprintList\"))\n\n // the properties below are optional\n .clientIdList(List.of(\"clientIdList\"))\n .tags(List.of(CfnTag.builder()\n .key(\"key\")\n .value(\"value\")\n .build()))\n .url(\"url\")\n .build();",
|
2900 | "version": "1"
|
2901 | },
|
2902 | "go": {
|
2903 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport iam \"github.com/aws-samples/dummy/awscdkawsiam\"\n\ncfnOIDCProvider := iam.NewCfnOIDCProvider(this, jsii.String(\"MyCfnOIDCProvider\"), &cfnOIDCProviderProps{\n\tthumbprintList: []*string{\n\t\tjsii.String(\"thumbprintList\"),\n\t},\n\n\t// the properties below are optional\n\tclientIdList: []*string{\n\t\tjsii.String(\"clientIdList\"),\n\t},\n\ttags: []cfnTag{\n\t\t&cfnTag{\n\t\t\tkey: jsii.String(\"key\"),\n\t\t\tvalue: jsii.String(\"value\"),\n\t\t},\n\t},\n\turl: jsii.String(\"url\"),\n})",
|
2904 | "version": "1"
|
2905 | },
|
2906 | "$": {
|
2907 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\nconst cfnOIDCProvider = new iam.CfnOIDCProvider(this, 'MyCfnOIDCProvider', {\n thumbprintList: ['thumbprintList'],\n\n // the properties below are optional\n clientIdList: ['clientIdList'],\n tags: [{\n key: 'key',\n value: 'value',\n }],\n url: 'url',\n});",
|
2908 | "version": "0"
|
2909 | }
|
2910 | },
|
2911 | "location": {
|
2912 | "api": {
|
2913 | "api": "type",
|
2914 | "fqn": "@aws-cdk/aws-iam.CfnOIDCProvider"
|
2915 | },
|
2916 | "field": {
|
2917 | "field": "example"
|
2918 | }
|
2919 | },
|
2920 | "didCompile": true,
|
2921 | "fqnsReferenced": [
|
2922 | "@aws-cdk/aws-iam.CfnOIDCProvider",
|
2923 | "@aws-cdk/aws-iam.CfnOIDCProviderProps",
|
2924 | "@aws-cdk/core.Construct"
|
2925 | ],
|
2926 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst cfnOIDCProvider = new iam.CfnOIDCProvider(this, 'MyCfnOIDCProvider', {\n thumbprintList: ['thumbprintList'],\n\n // the properties below are optional\n clientIdList: ['clientIdList'],\n tags: [{\n key: 'key',\n value: 'value',\n }],\n url: 'url',\n});\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
2927 | "syntaxKindCounter": {
|
2928 | "10": 7,
|
2929 | "75": 10,
|
2930 | "104": 1,
|
2931 | "192": 3,
|
2932 | "193": 2,
|
2933 | "194": 1,
|
2934 | "197": 1,
|
2935 | "225": 1,
|
2936 | "242": 1,
|
2937 | "243": 1,
|
2938 | "254": 1,
|
2939 | "255": 1,
|
2940 | "256": 1,
|
2941 | "281": 6,
|
2942 | "290": 1
|
2943 | },
|
2944 | "fqnsFingerprint": "7c2e54aa94bf30f3613cae91bd2818b31d6605b85b5b02e7a7d6926ddd8c0aaf"
|
2945 | },
|
2946 | "f4ee7ad1907fa0fd4e749d995cc4bd28b6c1e150733f753f90a5e435a57cf492": {
|
2947 | "translations": {
|
2948 | "python": {
|
2949 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_iam as iam\n\ncfn_oIDCProvider_props = iam.CfnOIDCProviderProps(\n thumbprint_list=[\"thumbprintList\"],\n\n # the properties below are optional\n client_id_list=[\"clientIdList\"],\n tags=[CfnTag(\n key=\"key\",\n value=\"value\"\n )],\n url=\"url\"\n)",
|
2950 | "version": "2"
|
2951 | },
|
2952 | "csharp": {
|
2953 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.IAM;\n\nCfnOIDCProviderProps cfnOIDCProviderProps = new CfnOIDCProviderProps {\n ThumbprintList = new [] { \"thumbprintList\" },\n\n // the properties below are optional\n ClientIdList = new [] { \"clientIdList\" },\n Tags = new [] { new CfnTag {\n Key = \"key\",\n Value = \"value\"\n } },\n Url = \"url\"\n};",
|
2954 | "version": "1"
|
2955 | },
|
2956 | "java": {
|
2957 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.iam.*;\n\nCfnOIDCProviderProps cfnOIDCProviderProps = CfnOIDCProviderProps.builder()\n .thumbprintList(List.of(\"thumbprintList\"))\n\n // the properties below are optional\n .clientIdList(List.of(\"clientIdList\"))\n .tags(List.of(CfnTag.builder()\n .key(\"key\")\n .value(\"value\")\n .build()))\n .url(\"url\")\n .build();",
|
2958 | "version": "1"
|
2959 | },
|
2960 | "go": {
|
2961 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport iam \"github.com/aws-samples/dummy/awscdkawsiam\"\n\ncfnOIDCProviderProps := &cfnOIDCProviderProps{\n\tthumbprintList: []*string{\n\t\tjsii.String(\"thumbprintList\"),\n\t},\n\n\t// the properties below are optional\n\tclientIdList: []*string{\n\t\tjsii.String(\"clientIdList\"),\n\t},\n\ttags: []cfnTag{\n\t\t&cfnTag{\n\t\t\tkey: jsii.String(\"key\"),\n\t\t\tvalue: jsii.String(\"value\"),\n\t\t},\n\t},\n\turl: jsii.String(\"url\"),\n}",
|
2962 | "version": "1"
|
2963 | },
|
2964 | "$": {
|
2965 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\nconst cfnOIDCProviderProps: iam.CfnOIDCProviderProps = {\n thumbprintList: ['thumbprintList'],\n\n // the properties below are optional\n clientIdList: ['clientIdList'],\n tags: [{\n key: 'key',\n value: 'value',\n }],\n url: 'url',\n};",
|
2966 | "version": "0"
|
2967 | }
|
2968 | },
|
2969 | "location": {
|
2970 | "api": {
|
2971 | "api": "type",
|
2972 | "fqn": "@aws-cdk/aws-iam.CfnOIDCProviderProps"
|
2973 | },
|
2974 | "field": {
|
2975 | "field": "example"
|
2976 | }
|
2977 | },
|
2978 | "didCompile": true,
|
2979 | "fqnsReferenced": [
|
2980 | "@aws-cdk/aws-iam.CfnOIDCProviderProps"
|
2981 | ],
|
2982 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst cfnOIDCProviderProps: iam.CfnOIDCProviderProps = {\n thumbprintList: ['thumbprintList'],\n\n // the properties below are optional\n clientIdList: ['clientIdList'],\n tags: [{\n key: 'key',\n value: 'value',\n }],\n url: 'url',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
2983 | "syntaxKindCounter": {
|
2984 | "10": 6,
|
2985 | "75": 10,
|
2986 | "153": 1,
|
2987 | "169": 1,
|
2988 | "192": 3,
|
2989 | "193": 2,
|
2990 | "225": 1,
|
2991 | "242": 1,
|
2992 | "243": 1,
|
2993 | "254": 1,
|
2994 | "255": 1,
|
2995 | "256": 1,
|
2996 | "281": 6,
|
2997 | "290": 1
|
2998 | },
|
2999 | "fqnsFingerprint": "69b5eee7b119fc892e7343d5d35b326407651efe919f3a19bfef59f2a2b13b34"
|
3000 | },
|
3001 | "5ea0e7e4cd51a7354463db0f98395f4414fc7aabe49b2369d48c54aedf27427b": {
|
3002 | "translations": {
|
3003 | "python": {
|
3004 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_iam as iam\n\n# policy_document: Any\n\ncfn_policy = iam.CfnPolicy(self, \"MyCfnPolicy\",\n policy_document=policy_document,\n policy_name=\"policyName\",\n\n # the properties below are optional\n groups=[\"groups\"],\n roles=[\"roles\"],\n users=[\"users\"]\n)",
|
3005 | "version": "2"
|
3006 | },
|
3007 | "csharp": {
|
3008 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.IAM;\n\nvar policyDocument;\n\nCfnPolicy cfnPolicy = new CfnPolicy(this, \"MyCfnPolicy\", new CfnPolicyProps {\n PolicyDocument = policyDocument,\n PolicyName = \"policyName\",\n\n // the properties below are optional\n Groups = new [] { \"groups\" },\n Roles = new [] { \"roles\" },\n Users = new [] { \"users\" }\n});",
|
3009 | "version": "1"
|
3010 | },
|
3011 | "java": {
|
3012 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.iam.*;\n\nObject policyDocument;\n\nCfnPolicy cfnPolicy = CfnPolicy.Builder.create(this, \"MyCfnPolicy\")\n .policyDocument(policyDocument)\n .policyName(\"policyName\")\n\n // the properties below are optional\n .groups(List.of(\"groups\"))\n .roles(List.of(\"roles\"))\n .users(List.of(\"users\"))\n .build();",
|
3013 | "version": "1"
|
3014 | },
|
3015 | "go": {
|
3016 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport iam \"github.com/aws-samples/dummy/awscdkawsiam\"\n\nvar policyDocument interface{}\n\ncfnPolicy := iam.NewCfnPolicy(this, jsii.String(\"MyCfnPolicy\"), &cfnPolicyProps{\n\tpolicyDocument: policyDocument,\n\tpolicyName: jsii.String(\"policyName\"),\n\n\t// the properties below are optional\n\tgroups: []*string{\n\t\tjsii.String(\"groups\"),\n\t},\n\troles: []*string{\n\t\tjsii.String(\"roles\"),\n\t},\n\tusers: []*string{\n\t\tjsii.String(\"users\"),\n\t},\n})",
|
3017 | "version": "1"
|
3018 | },
|
3019 | "$": {
|
3020 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\n\ndeclare const policyDocument: any;\nconst cfnPolicy = new iam.CfnPolicy(this, 'MyCfnPolicy', {\n policyDocument: policyDocument,\n policyName: 'policyName',\n\n // the properties below are optional\n groups: ['groups'],\n roles: ['roles'],\n users: ['users'],\n});",
|
3021 | "version": "0"
|
3022 | }
|
3023 | },
|
3024 | "location": {
|
3025 | "api": {
|
3026 | "api": "type",
|
3027 | "fqn": "@aws-cdk/aws-iam.CfnPolicy"
|
3028 | },
|
3029 | "field": {
|
3030 | "field": "example"
|
3031 | }
|
3032 | },
|
3033 | "didCompile": true,
|
3034 | "fqnsReferenced": [
|
3035 | "@aws-cdk/aws-iam.CfnPolicy",
|
3036 | "@aws-cdk/aws-iam.CfnPolicyProps",
|
3037 | "@aws-cdk/core.Construct"
|
3038 | ],
|
3039 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\n\ndeclare const policyDocument: any;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst cfnPolicy = new iam.CfnPolicy(this, 'MyCfnPolicy', {\n policyDocument: policyDocument,\n policyName: 'policyName',\n\n // the properties below are optional\n groups: ['groups'],\n roles: ['roles'],\n users: ['users'],\n});\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
3040 | "syntaxKindCounter": {
|
3041 | "10": 6,
|
3042 | "75": 11,
|
3043 | "104": 1,
|
3044 | "125": 1,
|
3045 | "130": 1,
|
3046 | "192": 3,
|
3047 | "193": 1,
|
3048 | "194": 1,
|
3049 | "197": 1,
|
3050 | "225": 2,
|
3051 | "242": 2,
|
3052 | "243": 2,
|
3053 | "254": 1,
|
3054 | "255": 1,
|
3055 | "256": 1,
|
3056 | "281": 5,
|
3057 | "290": 1
|
3058 | },
|
3059 | "fqnsFingerprint": "caa639b0692cd52b00eb59944ac80d0e516f34f5b8718478270f4d4df615a045"
|
3060 | },
|
3061 | "5333b208d05e04d3f5f17bf98252e282e439f27cbd0c6ca92c90fe1d690d9f35": {
|
3062 | "translations": {
|
3063 | "python": {
|
3064 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_iam as iam\n\n# policy_document: Any\n\ncfn_policy_props = iam.CfnPolicyProps(\n policy_document=policy_document,\n policy_name=\"policyName\",\n\n # the properties below are optional\n groups=[\"groups\"],\n roles=[\"roles\"],\n users=[\"users\"]\n)",
|
3065 | "version": "2"
|
3066 | },
|
3067 | "csharp": {
|
3068 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.IAM;\n\nvar policyDocument;\n\nCfnPolicyProps cfnPolicyProps = new CfnPolicyProps {\n PolicyDocument = policyDocument,\n PolicyName = \"policyName\",\n\n // the properties below are optional\n Groups = new [] { \"groups\" },\n Roles = new [] { \"roles\" },\n Users = new [] { \"users\" }\n};",
|
3069 | "version": "1"
|
3070 | },
|
3071 | "java": {
|
3072 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.iam.*;\n\nObject policyDocument;\n\nCfnPolicyProps cfnPolicyProps = CfnPolicyProps.builder()\n .policyDocument(policyDocument)\n .policyName(\"policyName\")\n\n // the properties below are optional\n .groups(List.of(\"groups\"))\n .roles(List.of(\"roles\"))\n .users(List.of(\"users\"))\n .build();",
|
3073 | "version": "1"
|
3074 | },
|
3075 | "go": {
|
3076 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport iam \"github.com/aws-samples/dummy/awscdkawsiam\"\n\nvar policyDocument interface{}\n\ncfnPolicyProps := &cfnPolicyProps{\n\tpolicyDocument: policyDocument,\n\tpolicyName: jsii.String(\"policyName\"),\n\n\t// the properties below are optional\n\tgroups: []*string{\n\t\tjsii.String(\"groups\"),\n\t},\n\troles: []*string{\n\t\tjsii.String(\"roles\"),\n\t},\n\tusers: []*string{\n\t\tjsii.String(\"users\"),\n\t},\n}",
|
3077 | "version": "1"
|
3078 | },
|
3079 | "$": {
|
3080 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\n\ndeclare const policyDocument: any;\nconst cfnPolicyProps: iam.CfnPolicyProps = {\n policyDocument: policyDocument,\n policyName: 'policyName',\n\n // the properties below are optional\n groups: ['groups'],\n roles: ['roles'],\n users: ['users'],\n};",
|
3081 | "version": "0"
|
3082 | }
|
3083 | },
|
3084 | "location": {
|
3085 | "api": {
|
3086 | "api": "type",
|
3087 | "fqn": "@aws-cdk/aws-iam.CfnPolicyProps"
|
3088 | },
|
3089 | "field": {
|
3090 | "field": "example"
|
3091 | }
|
3092 | },
|
3093 | "didCompile": true,
|
3094 | "fqnsReferenced": [
|
3095 | "@aws-cdk/aws-iam.CfnPolicyProps"
|
3096 | ],
|
3097 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\n\ndeclare const policyDocument: any;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst cfnPolicyProps: iam.CfnPolicyProps = {\n policyDocument: policyDocument,\n policyName: 'policyName',\n\n // the properties below are optional\n groups: ['groups'],\n roles: ['roles'],\n users: ['users'],\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
3098 | "syntaxKindCounter": {
|
3099 | "10": 5,
|
3100 | "75": 11,
|
3101 | "125": 1,
|
3102 | "130": 1,
|
3103 | "153": 1,
|
3104 | "169": 1,
|
3105 | "192": 3,
|
3106 | "193": 1,
|
3107 | "225": 2,
|
3108 | "242": 2,
|
3109 | "243": 2,
|
3110 | "254": 1,
|
3111 | "255": 1,
|
3112 | "256": 1,
|
3113 | "281": 5,
|
3114 | "290": 1
|
3115 | },
|
3116 | "fqnsFingerprint": "5f211b1c1be2369fb800de64051aea2e1f1bb3cea82f3ba4a19fb666b383893a"
|
3117 | },
|
3118 | "d29703d1bef1277b54d64138bec56b96f46219d121a3b73d0a6daff0bd647b58": {
|
3119 | "translations": {
|
3120 | "python": {
|
3121 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_iam as iam\n\n# assume_role_policy_document: Any\n# policy_document: Any\n\ncfn_role = iam.CfnRole(self, \"MyCfnRole\",\n assume_role_policy_document=assume_role_policy_document,\n\n # the properties below are optional\n description=\"description\",\n managed_policy_arns=[\"managedPolicyArns\"],\n max_session_duration=123,\n path=\"path\",\n permissions_boundary=\"permissionsBoundary\",\n policies=[iam.CfnRole.PolicyProperty(\n policy_document=policy_document,\n policy_name=\"policyName\"\n )],\n role_name=\"roleName\",\n tags=[CfnTag(\n key=\"key\",\n value=\"value\"\n )]\n)",
|
3122 | "version": "2"
|
3123 | },
|
3124 | "csharp": {
|
3125 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.IAM;\n\nvar assumeRolePolicyDocument;\nvar policyDocument;\n\nCfnRole cfnRole = new CfnRole(this, \"MyCfnRole\", new CfnRoleProps {\n AssumeRolePolicyDocument = assumeRolePolicyDocument,\n\n // the properties below are optional\n Description = \"description\",\n ManagedPolicyArns = new [] { \"managedPolicyArns\" },\n MaxSessionDuration = 123,\n Path = \"path\",\n PermissionsBoundary = \"permissionsBoundary\",\n Policies = new [] { new PolicyProperty {\n PolicyDocument = policyDocument,\n PolicyName = \"policyName\"\n } },\n RoleName = \"roleName\",\n Tags = new [] { new CfnTag {\n Key = \"key\",\n Value = \"value\"\n } }\n});",
|
3126 | "version": "1"
|
3127 | },
|
3128 | "java": {
|
3129 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.iam.*;\n\nObject assumeRolePolicyDocument;\nObject policyDocument;\n\nCfnRole cfnRole = CfnRole.Builder.create(this, \"MyCfnRole\")\n .assumeRolePolicyDocument(assumeRolePolicyDocument)\n\n // the properties below are optional\n .description(\"description\")\n .managedPolicyArns(List.of(\"managedPolicyArns\"))\n .maxSessionDuration(123)\n .path(\"path\")\n .permissionsBoundary(\"permissionsBoundary\")\n .policies(List.of(PolicyProperty.builder()\n .policyDocument(policyDocument)\n .policyName(\"policyName\")\n .build()))\n .roleName(\"roleName\")\n .tags(List.of(CfnTag.builder()\n .key(\"key\")\n .value(\"value\")\n .build()))\n .build();",
|
3130 | "version": "1"
|
3131 | },
|
3132 | "go": {
|
3133 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport iam \"github.com/aws-samples/dummy/awscdkawsiam\"\n\nvar assumeRolePolicyDocument interface{}\nvar policyDocument interface{}\n\ncfnRole := iam.NewCfnRole(this, jsii.String(\"MyCfnRole\"), &cfnRoleProps{\n\tassumeRolePolicyDocument: assumeRolePolicyDocument,\n\n\t// the properties below are optional\n\tdescription: jsii.String(\"description\"),\n\tmanagedPolicyArns: []*string{\n\t\tjsii.String(\"managedPolicyArns\"),\n\t},\n\tmaxSessionDuration: jsii.Number(123),\n\tpath: jsii.String(\"path\"),\n\tpermissionsBoundary: jsii.String(\"permissionsBoundary\"),\n\tpolicies: []interface{}{\n\t\t&policyProperty{\n\t\t\tpolicyDocument: policyDocument,\n\t\t\tpolicyName: jsii.String(\"policyName\"),\n\t\t},\n\t},\n\troleName: jsii.String(\"roleName\"),\n\ttags: []cfnTag{\n\t\t&cfnTag{\n\t\t\tkey: jsii.String(\"key\"),\n\t\t\tvalue: jsii.String(\"value\"),\n\t\t},\n\t},\n})",
|
3134 | "version": "1"
|
3135 | },
|
3136 | "$": {
|
3137 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\n\ndeclare const assumeRolePolicyDocument: any;\ndeclare const policyDocument: any;\nconst cfnRole = new iam.CfnRole(this, 'MyCfnRole', {\n assumeRolePolicyDocument: assumeRolePolicyDocument,\n\n // the properties below are optional\n description: 'description',\n managedPolicyArns: ['managedPolicyArns'],\n maxSessionDuration: 123,\n path: 'path',\n permissionsBoundary: 'permissionsBoundary',\n policies: [{\n policyDocument: policyDocument,\n policyName: 'policyName',\n }],\n roleName: 'roleName',\n tags: [{\n key: 'key',\n value: 'value',\n }],\n});",
|
3138 | "version": "0"
|
3139 | }
|
3140 | },
|
3141 | "location": {
|
3142 | "api": {
|
3143 | "api": "type",
|
3144 | "fqn": "@aws-cdk/aws-iam.CfnRole"
|
3145 | },
|
3146 | "field": {
|
3147 | "field": "example"
|
3148 | }
|
3149 | },
|
3150 | "didCompile": true,
|
3151 | "fqnsReferenced": [
|
3152 | "@aws-cdk/aws-iam.CfnRole",
|
3153 | "@aws-cdk/aws-iam.CfnRoleProps",
|
3154 | "@aws-cdk/core.Construct"
|
3155 | ],
|
3156 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\n\ndeclare const assumeRolePolicyDocument: any;\ndeclare const policyDocument: any;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst cfnRole = new iam.CfnRole(this, 'MyCfnRole', {\n assumeRolePolicyDocument: assumeRolePolicyDocument,\n\n // the properties below are optional\n description: 'description',\n managedPolicyArns: ['managedPolicyArns'],\n maxSessionDuration: 123,\n path: 'path',\n permissionsBoundary: 'permissionsBoundary',\n policies: [{\n policyDocument: policyDocument,\n policyName: 'policyName',\n }],\n roleName: 'roleName',\n tags: [{\n key: 'key',\n value: 'value',\n }],\n});\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
3157 | "syntaxKindCounter": {
|
3158 | "8": 1,
|
3159 | "10": 10,
|
3160 | "75": 21,
|
3161 | "104": 1,
|
3162 | "125": 2,
|
3163 | "130": 2,
|
3164 | "192": 3,
|
3165 | "193": 3,
|
3166 | "194": 1,
|
3167 | "197": 1,
|
3168 | "225": 3,
|
3169 | "242": 3,
|
3170 | "243": 3,
|
3171 | "254": 1,
|
3172 | "255": 1,
|
3173 | "256": 1,
|
3174 | "281": 13,
|
3175 | "290": 1
|
3176 | },
|
3177 | "fqnsFingerprint": "996f632ab90f7e839a203e5bebc8e75354237f2a001dc5852cf466998d2fd6c3"
|
3178 | },
|
3179 | "60bd70d3ebff62e3f2c80c68a6ca3e13672ea5a4dd26b6a5aeea1f191b188edd": {
|
3180 | "translations": {
|
3181 | "python": {
|
3182 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_iam as iam\n\n# policy_document: Any\n\npolicy_property = iam.CfnRole.PolicyProperty(\n policy_document=policy_document,\n policy_name=\"policyName\"\n)",
|
3183 | "version": "2"
|
3184 | },
|
3185 | "csharp": {
|
3186 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.IAM;\n\nvar policyDocument;\n\nPolicyProperty policyProperty = new PolicyProperty {\n PolicyDocument = policyDocument,\n PolicyName = \"policyName\"\n};",
|
3187 | "version": "1"
|
3188 | },
|
3189 | "java": {
|
3190 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.iam.*;\n\nObject policyDocument;\n\nPolicyProperty policyProperty = PolicyProperty.builder()\n .policyDocument(policyDocument)\n .policyName(\"policyName\")\n .build();",
|
3191 | "version": "1"
|
3192 | },
|
3193 | "go": {
|
3194 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport iam \"github.com/aws-samples/dummy/awscdkawsiam\"\n\nvar policyDocument interface{}\n\npolicyProperty := &policyProperty{\n\tpolicyDocument: policyDocument,\n\tpolicyName: jsii.String(\"policyName\"),\n}",
|
3195 | "version": "1"
|
3196 | },
|
3197 | "$": {
|
3198 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\n\ndeclare const policyDocument: any;\nconst policyProperty: iam.CfnRole.PolicyProperty = {\n policyDocument: policyDocument,\n policyName: 'policyName',\n};",
|
3199 | "version": "0"
|
3200 | }
|
3201 | },
|
3202 | "location": {
|
3203 | "api": {
|
3204 | "api": "type",
|
3205 | "fqn": "@aws-cdk/aws-iam.CfnRole.PolicyProperty"
|
3206 | },
|
3207 | "field": {
|
3208 | "field": "example"
|
3209 | }
|
3210 | },
|
3211 | "didCompile": true,
|
3212 | "fqnsReferenced": [
|
3213 | "@aws-cdk/aws-iam.CfnRole.PolicyProperty"
|
3214 | ],
|
3215 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\n\ndeclare const policyDocument: any;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst policyProperty: iam.CfnRole.PolicyProperty = {\n policyDocument: policyDocument,\n policyName: 'policyName',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
3216 | "syntaxKindCounter": {
|
3217 | "10": 2,
|
3218 | "75": 9,
|
3219 | "125": 1,
|
3220 | "130": 1,
|
3221 | "153": 2,
|
3222 | "169": 1,
|
3223 | "193": 1,
|
3224 | "225": 2,
|
3225 | "242": 2,
|
3226 | "243": 2,
|
3227 | "254": 1,
|
3228 | "255": 1,
|
3229 | "256": 1,
|
3230 | "281": 2,
|
3231 | "290": 1
|
3232 | },
|
3233 | "fqnsFingerprint": "6716b16769a1d4aab7ad5f0ab2750c0ab10bf5463829e78051bd8687d717813f"
|
3234 | },
|
3235 | "3301862f66b8a4fe11205fa54379c427068977dd567f4e3dc32abaae40f8fde0": {
|
3236 | "translations": {
|
3237 | "python": {
|
3238 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_iam as iam\n\n# assume_role_policy_document: Any\n# policy_document: Any\n\ncfn_role_props = iam.CfnRoleProps(\n assume_role_policy_document=assume_role_policy_document,\n\n # the properties below are optional\n description=\"description\",\n managed_policy_arns=[\"managedPolicyArns\"],\n max_session_duration=123,\n path=\"path\",\n permissions_boundary=\"permissionsBoundary\",\n policies=[iam.CfnRole.PolicyProperty(\n policy_document=policy_document,\n policy_name=\"policyName\"\n )],\n role_name=\"roleName\",\n tags=[CfnTag(\n key=\"key\",\n value=\"value\"\n )]\n)",
|
3239 | "version": "2"
|
3240 | },
|
3241 | "csharp": {
|
3242 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.IAM;\n\nvar assumeRolePolicyDocument;\nvar policyDocument;\n\nCfnRoleProps cfnRoleProps = new CfnRoleProps {\n AssumeRolePolicyDocument = assumeRolePolicyDocument,\n\n // the properties below are optional\n Description = \"description\",\n ManagedPolicyArns = new [] { \"managedPolicyArns\" },\n MaxSessionDuration = 123,\n Path = \"path\",\n PermissionsBoundary = \"permissionsBoundary\",\n Policies = new [] { new PolicyProperty {\n PolicyDocument = policyDocument,\n PolicyName = \"policyName\"\n } },\n RoleName = \"roleName\",\n Tags = new [] { new CfnTag {\n Key = \"key\",\n Value = \"value\"\n } }\n};",
|
3243 | "version": "1"
|
3244 | },
|
3245 | "java": {
|
3246 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.iam.*;\n\nObject assumeRolePolicyDocument;\nObject policyDocument;\n\nCfnRoleProps cfnRoleProps = CfnRoleProps.builder()\n .assumeRolePolicyDocument(assumeRolePolicyDocument)\n\n // the properties below are optional\n .description(\"description\")\n .managedPolicyArns(List.of(\"managedPolicyArns\"))\n .maxSessionDuration(123)\n .path(\"path\")\n .permissionsBoundary(\"permissionsBoundary\")\n .policies(List.of(PolicyProperty.builder()\n .policyDocument(policyDocument)\n .policyName(\"policyName\")\n .build()))\n .roleName(\"roleName\")\n .tags(List.of(CfnTag.builder()\n .key(\"key\")\n .value(\"value\")\n .build()))\n .build();",
|
3247 | "version": "1"
|
3248 | },
|
3249 | "go": {
|
3250 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport iam \"github.com/aws-samples/dummy/awscdkawsiam\"\n\nvar assumeRolePolicyDocument interface{}\nvar policyDocument interface{}\n\ncfnRoleProps := &cfnRoleProps{\n\tassumeRolePolicyDocument: assumeRolePolicyDocument,\n\n\t// the properties below are optional\n\tdescription: jsii.String(\"description\"),\n\tmanagedPolicyArns: []*string{\n\t\tjsii.String(\"managedPolicyArns\"),\n\t},\n\tmaxSessionDuration: jsii.Number(123),\n\tpath: jsii.String(\"path\"),\n\tpermissionsBoundary: jsii.String(\"permissionsBoundary\"),\n\tpolicies: []interface{}{\n\t\t&policyProperty{\n\t\t\tpolicyDocument: policyDocument,\n\t\t\tpolicyName: jsii.String(\"policyName\"),\n\t\t},\n\t},\n\troleName: jsii.String(\"roleName\"),\n\ttags: []cfnTag{\n\t\t&cfnTag{\n\t\t\tkey: jsii.String(\"key\"),\n\t\t\tvalue: jsii.String(\"value\"),\n\t\t},\n\t},\n}",
|
3251 | "version": "1"
|
3252 | },
|
3253 | "$": {
|
3254 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\n\ndeclare const assumeRolePolicyDocument: any;\ndeclare const policyDocument: any;\nconst cfnRoleProps: iam.CfnRoleProps = {\n assumeRolePolicyDocument: assumeRolePolicyDocument,\n\n // the properties below are optional\n description: 'description',\n managedPolicyArns: ['managedPolicyArns'],\n maxSessionDuration: 123,\n path: 'path',\n permissionsBoundary: 'permissionsBoundary',\n policies: [{\n policyDocument: policyDocument,\n policyName: 'policyName',\n }],\n roleName: 'roleName',\n tags: [{\n key: 'key',\n value: 'value',\n }],\n};",
|
3255 | "version": "0"
|
3256 | }
|
3257 | },
|
3258 | "location": {
|
3259 | "api": {
|
3260 | "api": "type",
|
3261 | "fqn": "@aws-cdk/aws-iam.CfnRoleProps"
|
3262 | },
|
3263 | "field": {
|
3264 | "field": "example"
|
3265 | }
|
3266 | },
|
3267 | "didCompile": true,
|
3268 | "fqnsReferenced": [
|
3269 | "@aws-cdk/aws-iam.CfnRoleProps"
|
3270 | ],
|
3271 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\n\ndeclare const assumeRolePolicyDocument: any;\ndeclare const policyDocument: any;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst cfnRoleProps: iam.CfnRoleProps = {\n assumeRolePolicyDocument: assumeRolePolicyDocument,\n\n // the properties below are optional\n description: 'description',\n managedPolicyArns: ['managedPolicyArns'],\n maxSessionDuration: 123,\n path: 'path',\n permissionsBoundary: 'permissionsBoundary',\n policies: [{\n policyDocument: policyDocument,\n policyName: 'policyName',\n }],\n roleName: 'roleName',\n tags: [{\n key: 'key',\n value: 'value',\n }],\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
3272 | "syntaxKindCounter": {
|
3273 | "8": 1,
|
3274 | "10": 9,
|
3275 | "75": 21,
|
3276 | "125": 2,
|
3277 | "130": 2,
|
3278 | "153": 1,
|
3279 | "169": 1,
|
3280 | "192": 3,
|
3281 | "193": 3,
|
3282 | "225": 3,
|
3283 | "242": 3,
|
3284 | "243": 3,
|
3285 | "254": 1,
|
3286 | "255": 1,
|
3287 | "256": 1,
|
3288 | "281": 13,
|
3289 | "290": 1
|
3290 | },
|
3291 | "fqnsFingerprint": "29b7d9a193165d4e34caa3d67010c7fabfca2f81edb36e839eb7075df541f86a"
|
3292 | },
|
3293 | "f4e1e5b48da3e4a3b8a10987067d4021597b3d079672e08ea6bd77bd7cfb2793": {
|
3294 | "translations": {
|
3295 | "python": {
|
3296 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_iam as iam\n\ncfn_sAMLProvider = iam.CfnSAMLProvider(self, \"MyCfnSAMLProvider\",\n saml_metadata_document=\"samlMetadataDocument\",\n\n # the properties below are optional\n name=\"name\",\n tags=[CfnTag(\n key=\"key\",\n value=\"value\"\n )]\n)",
|
3297 | "version": "2"
|
3298 | },
|
3299 | "csharp": {
|
3300 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.IAM;\n\nCfnSAMLProvider cfnSAMLProvider = new CfnSAMLProvider(this, \"MyCfnSAMLProvider\", new CfnSAMLProviderProps {\n SamlMetadataDocument = \"samlMetadataDocument\",\n\n // the properties below are optional\n Name = \"name\",\n Tags = new [] { new CfnTag {\n Key = \"key\",\n Value = \"value\"\n } }\n});",
|
3301 | "version": "1"
|
3302 | },
|
3303 | "java": {
|
3304 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.iam.*;\n\nCfnSAMLProvider cfnSAMLProvider = CfnSAMLProvider.Builder.create(this, \"MyCfnSAMLProvider\")\n .samlMetadataDocument(\"samlMetadataDocument\")\n\n // the properties below are optional\n .name(\"name\")\n .tags(List.of(CfnTag.builder()\n .key(\"key\")\n .value(\"value\")\n .build()))\n .build();",
|
3305 | "version": "1"
|
3306 | },
|
3307 | "go": {
|
3308 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport iam \"github.com/aws-samples/dummy/awscdkawsiam\"\n\ncfnSAMLProvider := iam.NewCfnSAMLProvider(this, jsii.String(\"MyCfnSAMLProvider\"), &cfnSAMLProviderProps{\n\tsamlMetadataDocument: jsii.String(\"samlMetadataDocument\"),\n\n\t// the properties below are optional\n\tname: jsii.String(\"name\"),\n\ttags: []cfnTag{\n\t\t&cfnTag{\n\t\t\tkey: jsii.String(\"key\"),\n\t\t\tvalue: jsii.String(\"value\"),\n\t\t},\n\t},\n})",
|
3309 | "version": "1"
|
3310 | },
|
3311 | "$": {
|
3312 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\nconst cfnSAMLProvider = new iam.CfnSAMLProvider(this, 'MyCfnSAMLProvider', {\n samlMetadataDocument: 'samlMetadataDocument',\n\n // the properties below are optional\n name: 'name',\n tags: [{\n key: 'key',\n value: 'value',\n }],\n});",
|
3313 | "version": "0"
|
3314 | }
|
3315 | },
|
3316 | "location": {
|
3317 | "api": {
|
3318 | "api": "type",
|
3319 | "fqn": "@aws-cdk/aws-iam.CfnSAMLProvider"
|
3320 | },
|
3321 | "field": {
|
3322 | "field": "example"
|
3323 | }
|
3324 | },
|
3325 | "didCompile": true,
|
3326 | "fqnsReferenced": [
|
3327 | "@aws-cdk/aws-iam.CfnSAMLProvider",
|
3328 | "@aws-cdk/aws-iam.CfnSAMLProviderProps",
|
3329 | "@aws-cdk/core.Construct"
|
3330 | ],
|
3331 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst cfnSAMLProvider = new iam.CfnSAMLProvider(this, 'MyCfnSAMLProvider', {\n samlMetadataDocument: 'samlMetadataDocument',\n\n // the properties below are optional\n name: 'name',\n tags: [{\n key: 'key',\n value: 'value',\n }],\n});\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
3332 | "syntaxKindCounter": {
|
3333 | "10": 6,
|
3334 | "75": 9,
|
3335 | "104": 1,
|
3336 | "192": 1,
|
3337 | "193": 2,
|
3338 | "194": 1,
|
3339 | "197": 1,
|
3340 | "225": 1,
|
3341 | "242": 1,
|
3342 | "243": 1,
|
3343 | "254": 1,
|
3344 | "255": 1,
|
3345 | "256": 1,
|
3346 | "281": 5,
|
3347 | "290": 1
|
3348 | },
|
3349 | "fqnsFingerprint": "d5375f273d0e37f33a42ad2aa38d530cbf6cf9f6cb62ed773832c58a2df5d222"
|
3350 | },
|
3351 | "674428ba593f958669d767954be99c007eeb44cd93783c39481f574b92b6125f": {
|
3352 | "translations": {
|
3353 | "python": {
|
3354 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_iam as iam\n\ncfn_sAMLProvider_props = iam.CfnSAMLProviderProps(\n saml_metadata_document=\"samlMetadataDocument\",\n\n # the properties below are optional\n name=\"name\",\n tags=[CfnTag(\n key=\"key\",\n value=\"value\"\n )]\n)",
|
3355 | "version": "2"
|
3356 | },
|
3357 | "csharp": {
|
3358 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.IAM;\n\nCfnSAMLProviderProps cfnSAMLProviderProps = new CfnSAMLProviderProps {\n SamlMetadataDocument = \"samlMetadataDocument\",\n\n // the properties below are optional\n Name = \"name\",\n Tags = new [] { new CfnTag {\n Key = \"key\",\n Value = \"value\"\n } }\n};",
|
3359 | "version": "1"
|
3360 | },
|
3361 | "java": {
|
3362 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.iam.*;\n\nCfnSAMLProviderProps cfnSAMLProviderProps = CfnSAMLProviderProps.builder()\n .samlMetadataDocument(\"samlMetadataDocument\")\n\n // the properties below are optional\n .name(\"name\")\n .tags(List.of(CfnTag.builder()\n .key(\"key\")\n .value(\"value\")\n .build()))\n .build();",
|
3363 | "version": "1"
|
3364 | },
|
3365 | "go": {
|
3366 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport iam \"github.com/aws-samples/dummy/awscdkawsiam\"\n\ncfnSAMLProviderProps := &cfnSAMLProviderProps{\n\tsamlMetadataDocument: jsii.String(\"samlMetadataDocument\"),\n\n\t// the properties below are optional\n\tname: jsii.String(\"name\"),\n\ttags: []cfnTag{\n\t\t&cfnTag{\n\t\t\tkey: jsii.String(\"key\"),\n\t\t\tvalue: jsii.String(\"value\"),\n\t\t},\n\t},\n}",
|
3367 | "version": "1"
|
3368 | },
|
3369 | "$": {
|
3370 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\nconst cfnSAMLProviderProps: iam.CfnSAMLProviderProps = {\n samlMetadataDocument: 'samlMetadataDocument',\n\n // the properties below are optional\n name: 'name',\n tags: [{\n key: 'key',\n value: 'value',\n }],\n};",
|
3371 | "version": "0"
|
3372 | }
|
3373 | },
|
3374 | "location": {
|
3375 | "api": {
|
3376 | "api": "type",
|
3377 | "fqn": "@aws-cdk/aws-iam.CfnSAMLProviderProps"
|
3378 | },
|
3379 | "field": {
|
3380 | "field": "example"
|
3381 | }
|
3382 | },
|
3383 | "didCompile": true,
|
3384 | "fqnsReferenced": [
|
3385 | "@aws-cdk/aws-iam.CfnSAMLProviderProps"
|
3386 | ],
|
3387 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst cfnSAMLProviderProps: iam.CfnSAMLProviderProps = {\n samlMetadataDocument: 'samlMetadataDocument',\n\n // the properties below are optional\n name: 'name',\n tags: [{\n key: 'key',\n value: 'value',\n }],\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
3388 | "syntaxKindCounter": {
|
3389 | "10": 5,
|
3390 | "75": 9,
|
3391 | "153": 1,
|
3392 | "169": 1,
|
3393 | "192": 1,
|
3394 | "193": 2,
|
3395 | "225": 1,
|
3396 | "242": 1,
|
3397 | "243": 1,
|
3398 | "254": 1,
|
3399 | "255": 1,
|
3400 | "256": 1,
|
3401 | "281": 5,
|
3402 | "290": 1
|
3403 | },
|
3404 | "fqnsFingerprint": "3bb3eead2cf256d159eca3f146b68e4499d3896bfd69c4d44ba9ea2c904dae2b"
|
3405 | },
|
3406 | "f500bd169bc1b9d38d75fefa545b58ca2dddb667908c8eec9301cda145d0395e": {
|
3407 | "translations": {
|
3408 | "python": {
|
3409 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_iam as iam\n\ncfn_server_certificate = iam.CfnServerCertificate(self, \"MyCfnServerCertificate\",\n certificate_body=\"certificateBody\",\n certificate_chain=\"certificateChain\",\n path=\"path\",\n private_key=\"privateKey\",\n server_certificate_name=\"serverCertificateName\",\n tags=[CfnTag(\n key=\"key\",\n value=\"value\"\n )]\n)",
|
3410 | "version": "2"
|
3411 | },
|
3412 | "csharp": {
|
3413 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.IAM;\n\nCfnServerCertificate cfnServerCertificate = new CfnServerCertificate(this, \"MyCfnServerCertificate\", new CfnServerCertificateProps {\n CertificateBody = \"certificateBody\",\n CertificateChain = \"certificateChain\",\n Path = \"path\",\n PrivateKey = \"privateKey\",\n ServerCertificateName = \"serverCertificateName\",\n Tags = new [] { new CfnTag {\n Key = \"key\",\n Value = \"value\"\n } }\n});",
|
3414 | "version": "1"
|
3415 | },
|
3416 | "java": {
|
3417 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.iam.*;\n\nCfnServerCertificate cfnServerCertificate = CfnServerCertificate.Builder.create(this, \"MyCfnServerCertificate\")\n .certificateBody(\"certificateBody\")\n .certificateChain(\"certificateChain\")\n .path(\"path\")\n .privateKey(\"privateKey\")\n .serverCertificateName(\"serverCertificateName\")\n .tags(List.of(CfnTag.builder()\n .key(\"key\")\n .value(\"value\")\n .build()))\n .build();",
|
3418 | "version": "1"
|
3419 | },
|
3420 | "go": {
|
3421 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport iam \"github.com/aws-samples/dummy/awscdkawsiam\"\n\ncfnServerCertificate := iam.NewCfnServerCertificate(this, jsii.String(\"MyCfnServerCertificate\"), &cfnServerCertificateProps{\n\tcertificateBody: jsii.String(\"certificateBody\"),\n\tcertificateChain: jsii.String(\"certificateChain\"),\n\tpath: jsii.String(\"path\"),\n\tprivateKey: jsii.String(\"privateKey\"),\n\tserverCertificateName: jsii.String(\"serverCertificateName\"),\n\ttags: []cfnTag{\n\t\t&cfnTag{\n\t\t\tkey: jsii.String(\"key\"),\n\t\t\tvalue: jsii.String(\"value\"),\n\t\t},\n\t},\n})",
|
3422 | "version": "1"
|
3423 | },
|
3424 | "$": {
|
3425 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\nconst cfnServerCertificate = new iam.CfnServerCertificate(this, 'MyCfnServerCertificate', /* all optional props */ {\n certificateBody: 'certificateBody',\n certificateChain: 'certificateChain',\n path: 'path',\n privateKey: 'privateKey',\n serverCertificateName: 'serverCertificateName',\n tags: [{\n key: 'key',\n value: 'value',\n }],\n});",
|
3426 | "version": "0"
|
3427 | }
|
3428 | },
|
3429 | "location": {
|
3430 | "api": {
|
3431 | "api": "type",
|
3432 | "fqn": "@aws-cdk/aws-iam.CfnServerCertificate"
|
3433 | },
|
3434 | "field": {
|
3435 | "field": "example"
|
3436 | }
|
3437 | },
|
3438 | "didCompile": true,
|
3439 | "fqnsReferenced": [
|
3440 | "@aws-cdk/aws-iam.CfnServerCertificate",
|
3441 | "@aws-cdk/aws-iam.CfnServerCertificateProps",
|
3442 | "@aws-cdk/core.Construct"
|
3443 | ],
|
3444 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst cfnServerCertificate = new iam.CfnServerCertificate(this, 'MyCfnServerCertificate', /* all optional props */ {\n certificateBody: 'certificateBody',\n certificateChain: 'certificateChain',\n path: 'path',\n privateKey: 'privateKey',\n serverCertificateName: 'serverCertificateName',\n tags: [{\n key: 'key',\n value: 'value',\n }],\n});\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
3445 | "syntaxKindCounter": {
|
3446 | "10": 9,
|
3447 | "75": 12,
|
3448 | "104": 1,
|
3449 | "192": 1,
|
3450 | "193": 2,
|
3451 | "194": 1,
|
3452 | "197": 1,
|
3453 | "225": 1,
|
3454 | "242": 1,
|
3455 | "243": 1,
|
3456 | "254": 1,
|
3457 | "255": 1,
|
3458 | "256": 1,
|
3459 | "281": 8,
|
3460 | "290": 1
|
3461 | },
|
3462 | "fqnsFingerprint": "5c38d1662c74ea777548441ea36a639720e376a9a314d35c4796e5f183856e51"
|
3463 | },
|
3464 | "f27e7b85c5e2db09e94e0fa89d3418765cfc37a7601f5e0a76c093005afa941d": {
|
3465 | "translations": {
|
3466 | "python": {
|
3467 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_iam as iam\n\ncfn_server_certificate_props = iam.CfnServerCertificateProps(\n certificate_body=\"certificateBody\",\n certificate_chain=\"certificateChain\",\n path=\"path\",\n private_key=\"privateKey\",\n server_certificate_name=\"serverCertificateName\",\n tags=[CfnTag(\n key=\"key\",\n value=\"value\"\n )]\n)",
|
3468 | "version": "2"
|
3469 | },
|
3470 | "csharp": {
|
3471 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.IAM;\n\nCfnServerCertificateProps cfnServerCertificateProps = new CfnServerCertificateProps {\n CertificateBody = \"certificateBody\",\n CertificateChain = \"certificateChain\",\n Path = \"path\",\n PrivateKey = \"privateKey\",\n ServerCertificateName = \"serverCertificateName\",\n Tags = new [] { new CfnTag {\n Key = \"key\",\n Value = \"value\"\n } }\n};",
|
3472 | "version": "1"
|
3473 | },
|
3474 | "java": {
|
3475 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.iam.*;\n\nCfnServerCertificateProps cfnServerCertificateProps = CfnServerCertificateProps.builder()\n .certificateBody(\"certificateBody\")\n .certificateChain(\"certificateChain\")\n .path(\"path\")\n .privateKey(\"privateKey\")\n .serverCertificateName(\"serverCertificateName\")\n .tags(List.of(CfnTag.builder()\n .key(\"key\")\n .value(\"value\")\n .build()))\n .build();",
|
3476 | "version": "1"
|
3477 | },
|
3478 | "go": {
|
3479 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport iam \"github.com/aws-samples/dummy/awscdkawsiam\"\n\ncfnServerCertificateProps := &cfnServerCertificateProps{\n\tcertificateBody: jsii.String(\"certificateBody\"),\n\tcertificateChain: jsii.String(\"certificateChain\"),\n\tpath: jsii.String(\"path\"),\n\tprivateKey: jsii.String(\"privateKey\"),\n\tserverCertificateName: jsii.String(\"serverCertificateName\"),\n\ttags: []cfnTag{\n\t\t&cfnTag{\n\t\t\tkey: jsii.String(\"key\"),\n\t\t\tvalue: jsii.String(\"value\"),\n\t\t},\n\t},\n}",
|
3480 | "version": "1"
|
3481 | },
|
3482 | "$": {
|
3483 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\nconst cfnServerCertificateProps: iam.CfnServerCertificateProps = {\n certificateBody: 'certificateBody',\n certificateChain: 'certificateChain',\n path: 'path',\n privateKey: 'privateKey',\n serverCertificateName: 'serverCertificateName',\n tags: [{\n key: 'key',\n value: 'value',\n }],\n};",
|
3484 | "version": "0"
|
3485 | }
|
3486 | },
|
3487 | "location": {
|
3488 | "api": {
|
3489 | "api": "type",
|
3490 | "fqn": "@aws-cdk/aws-iam.CfnServerCertificateProps"
|
3491 | },
|
3492 | "field": {
|
3493 | "field": "example"
|
3494 | }
|
3495 | },
|
3496 | "didCompile": true,
|
3497 | "fqnsReferenced": [
|
3498 | "@aws-cdk/aws-iam.CfnServerCertificateProps"
|
3499 | ],
|
3500 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst cfnServerCertificateProps: iam.CfnServerCertificateProps = {\n certificateBody: 'certificateBody',\n certificateChain: 'certificateChain',\n path: 'path',\n privateKey: 'privateKey',\n serverCertificateName: 'serverCertificateName',\n tags: [{\n key: 'key',\n value: 'value',\n }],\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
3501 | "syntaxKindCounter": {
|
3502 | "10": 8,
|
3503 | "75": 12,
|
3504 | "153": 1,
|
3505 | "169": 1,
|
3506 | "192": 1,
|
3507 | "193": 2,
|
3508 | "225": 1,
|
3509 | "242": 1,
|
3510 | "243": 1,
|
3511 | "254": 1,
|
3512 | "255": 1,
|
3513 | "256": 1,
|
3514 | "281": 8,
|
3515 | "290": 1
|
3516 | },
|
3517 | "fqnsFingerprint": "aee0b290c110e9ed4f50e4218a1c024daaa7986e275a2958461edb8377a7f915"
|
3518 | },
|
3519 | "9df87eaf4c3b1c5d1143ffd058a76e1a32119eaf70ebdf23cc2df20fad2ca459": {
|
3520 | "translations": {
|
3521 | "python": {
|
3522 | "source": "slr = iam.CfnServiceLinkedRole(self, \"ElasticSLR\",\n aws_service_name=\"es.amazonaws.com\"\n)",
|
3523 | "version": "2"
|
3524 | },
|
3525 | "csharp": {
|
3526 | "source": "CfnServiceLinkedRole slr = new CfnServiceLinkedRole(this, \"ElasticSLR\", new CfnServiceLinkedRoleProps {\n AwsServiceName = \"es.amazonaws.com\"\n});",
|
3527 | "version": "1"
|
3528 | },
|
3529 | "java": {
|
3530 | "source": "CfnServiceLinkedRole slr = CfnServiceLinkedRole.Builder.create(this, \"ElasticSLR\")\n .awsServiceName(\"es.amazonaws.com\")\n .build();",
|
3531 | "version": "1"
|
3532 | },
|
3533 | "go": {
|
3534 | "source": "slr := iam.NewCfnServiceLinkedRole(this, jsii.String(\"ElasticSLR\"), &cfnServiceLinkedRoleProps{\n\tawsServiceName: jsii.String(\"es.amazonaws.com\"),\n})",
|
3535 | "version": "1"
|
3536 | },
|
3537 | "$": {
|
3538 | "source": "const slr = new iam.CfnServiceLinkedRole(this, 'ElasticSLR', {\n awsServiceName: 'es.amazonaws.com',\n});",
|
3539 | "version": "0"
|
3540 | }
|
3541 | },
|
3542 | "location": {
|
3543 | "api": {
|
3544 | "api": "type",
|
3545 | "fqn": "@aws-cdk/aws-iam.CfnServiceLinkedRole"
|
3546 | },
|
3547 | "field": {
|
3548 | "field": "example"
|
3549 | }
|
3550 | },
|
3551 | "didCompile": true,
|
3552 | "fqnsReferenced": [
|
3553 | "@aws-cdk/aws-iam.CfnServiceLinkedRole",
|
3554 | "@aws-cdk/aws-iam.CfnServiceLinkedRoleProps",
|
3555 | "@aws-cdk/core.Construct"
|
3556 | ],
|
3557 | "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { RemovalPolicy, Stack } from '@aws-cdk/core'; \nimport * as es from '@aws-cdk/aws-elasticsearch';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as iam from '@aws-cdk/aws-iam';\n\nclass Fixture extends Stack { \n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst slr = new iam.CfnServiceLinkedRole(this, 'ElasticSLR', {\n awsServiceName: 'es.amazonaws.com',\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
3558 | "syntaxKindCounter": {
|
3559 | "10": 2,
|
3560 | "75": 4,
|
3561 | "104": 1,
|
3562 | "193": 1,
|
3563 | "194": 1,
|
3564 | "197": 1,
|
3565 | "225": 1,
|
3566 | "242": 1,
|
3567 | "243": 1,
|
3568 | "281": 1
|
3569 | },
|
3570 | "fqnsFingerprint": "5ed06f13250c16a7a59f590f7d92617c5f1af8dd0b28497cdda0f60df0220812"
|
3571 | },
|
3572 | "ec2300269c21f21cf5cbc4967204dde4db88930c4e9efcf944fd77c3b575985f": {
|
3573 | "translations": {
|
3574 | "python": {
|
3575 | "source": "slr = iam.CfnServiceLinkedRole(self, \"ElasticSLR\",\n aws_service_name=\"es.amazonaws.com\"\n)",
|
3576 | "version": "2"
|
3577 | },
|
3578 | "csharp": {
|
3579 | "source": "CfnServiceLinkedRole slr = new CfnServiceLinkedRole(this, \"ElasticSLR\", new CfnServiceLinkedRoleProps {\n AwsServiceName = \"es.amazonaws.com\"\n});",
|
3580 | "version": "1"
|
3581 | },
|
3582 | "java": {
|
3583 | "source": "CfnServiceLinkedRole slr = CfnServiceLinkedRole.Builder.create(this, \"ElasticSLR\")\n .awsServiceName(\"es.amazonaws.com\")\n .build();",
|
3584 | "version": "1"
|
3585 | },
|
3586 | "go": {
|
3587 | "source": "slr := iam.NewCfnServiceLinkedRole(this, jsii.String(\"ElasticSLR\"), &cfnServiceLinkedRoleProps{\n\tawsServiceName: jsii.String(\"es.amazonaws.com\"),\n})",
|
3588 | "version": "1"
|
3589 | },
|
3590 | "$": {
|
3591 | "source": "const slr = new iam.CfnServiceLinkedRole(this, 'ElasticSLR', {\n awsServiceName: 'es.amazonaws.com',\n});",
|
3592 | "version": "0"
|
3593 | }
|
3594 | },
|
3595 | "location": {
|
3596 | "api": {
|
3597 | "api": "type",
|
3598 | "fqn": "@aws-cdk/aws-iam.CfnServiceLinkedRoleProps"
|
3599 | },
|
3600 | "field": {
|
3601 | "field": "example"
|
3602 | }
|
3603 | },
|
3604 | "didCompile": true,
|
3605 | "fqnsReferenced": [
|
3606 | "@aws-cdk/aws-iam.CfnServiceLinkedRole",
|
3607 | "@aws-cdk/aws-iam.CfnServiceLinkedRoleProps",
|
3608 | "@aws-cdk/core.Construct"
|
3609 | ],
|
3610 | "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { RemovalPolicy, Stack } from '@aws-cdk/core'; \nimport * as es from '@aws-cdk/aws-elasticsearch';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as iam from '@aws-cdk/aws-iam';\n\nclass Fixture extends Stack { \n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst slr = new iam.CfnServiceLinkedRole(this, 'ElasticSLR', {\n awsServiceName: 'es.amazonaws.com',\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
3611 | "syntaxKindCounter": {
|
3612 | "10": 2,
|
3613 | "75": 4,
|
3614 | "104": 1,
|
3615 | "193": 1,
|
3616 | "194": 1,
|
3617 | "197": 1,
|
3618 | "225": 1,
|
3619 | "242": 1,
|
3620 | "243": 1,
|
3621 | "281": 1
|
3622 | },
|
3623 | "fqnsFingerprint": "5ed06f13250c16a7a59f590f7d92617c5f1af8dd0b28497cdda0f60df0220812"
|
3624 | },
|
3625 | "bfd73c2dbdf4c5c560d98984124d89ac4c36c9b6f7cd7e7aecad86f00bcb4900": {
|
3626 | "translations": {
|
3627 | "python": {
|
3628 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_iam as iam\n\n# policy_document: Any\n\ncfn_user = iam.CfnUser(self, \"MyCfnUser\",\n groups=[\"groups\"],\n login_profile=iam.CfnUser.LoginProfileProperty(\n password=\"password\",\n\n # the properties below are optional\n password_reset_required=False\n ),\n managed_policy_arns=[\"managedPolicyArns\"],\n path=\"path\",\n permissions_boundary=\"permissionsBoundary\",\n policies=[iam.CfnUser.PolicyProperty(\n policy_document=policy_document,\n policy_name=\"policyName\"\n )],\n tags=[CfnTag(\n key=\"key\",\n value=\"value\"\n )],\n user_name=\"userName\"\n)",
|
3629 | "version": "2"
|
3630 | },
|
3631 | "csharp": {
|
3632 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.IAM;\n\nvar policyDocument;\n\nCfnUser cfnUser = new CfnUser(this, \"MyCfnUser\", new CfnUserProps {\n Groups = new [] { \"groups\" },\n LoginProfile = new LoginProfileProperty {\n Password = \"password\",\n\n // the properties below are optional\n PasswordResetRequired = false\n },\n ManagedPolicyArns = new [] { \"managedPolicyArns\" },\n Path = \"path\",\n PermissionsBoundary = \"permissionsBoundary\",\n Policies = new [] { new PolicyProperty {\n PolicyDocument = policyDocument,\n PolicyName = \"policyName\"\n } },\n Tags = new [] { new CfnTag {\n Key = \"key\",\n Value = \"value\"\n } },\n UserName = \"userName\"\n});",
|
3633 | "version": "1"
|
3634 | },
|
3635 | "java": {
|
3636 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.iam.*;\n\nObject policyDocument;\n\nCfnUser cfnUser = CfnUser.Builder.create(this, \"MyCfnUser\")\n .groups(List.of(\"groups\"))\n .loginProfile(LoginProfileProperty.builder()\n .password(\"password\")\n\n // the properties below are optional\n .passwordResetRequired(false)\n .build())\n .managedPolicyArns(List.of(\"managedPolicyArns\"))\n .path(\"path\")\n .permissionsBoundary(\"permissionsBoundary\")\n .policies(List.of(PolicyProperty.builder()\n .policyDocument(policyDocument)\n .policyName(\"policyName\")\n .build()))\n .tags(List.of(CfnTag.builder()\n .key(\"key\")\n .value(\"value\")\n .build()))\n .userName(\"userName\")\n .build();",
|
3637 | "version": "1"
|
3638 | },
|
3639 | "go": {
|
3640 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport iam \"github.com/aws-samples/dummy/awscdkawsiam\"\n\nvar policyDocument interface{}\n\ncfnUser := iam.NewCfnUser(this, jsii.String(\"MyCfnUser\"), &cfnUserProps{\n\tgroups: []*string{\n\t\tjsii.String(\"groups\"),\n\t},\n\tloginProfile: &loginProfileProperty{\n\t\tpassword: jsii.String(\"password\"),\n\n\t\t// the properties below are optional\n\t\tpasswordResetRequired: jsii.Boolean(false),\n\t},\n\tmanagedPolicyArns: []*string{\n\t\tjsii.String(\"managedPolicyArns\"),\n\t},\n\tpath: jsii.String(\"path\"),\n\tpermissionsBoundary: jsii.String(\"permissionsBoundary\"),\n\tpolicies: []interface{}{\n\t\t&policyProperty{\n\t\t\tpolicyDocument: policyDocument,\n\t\t\tpolicyName: jsii.String(\"policyName\"),\n\t\t},\n\t},\n\ttags: []cfnTag{\n\t\t&cfnTag{\n\t\t\tkey: jsii.String(\"key\"),\n\t\t\tvalue: jsii.String(\"value\"),\n\t\t},\n\t},\n\tuserName: jsii.String(\"userName\"),\n})",
|
3641 | "version": "1"
|
3642 | },
|
3643 | "$": {
|
3644 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\n\ndeclare const policyDocument: any;\nconst cfnUser = new iam.CfnUser(this, 'MyCfnUser', /* all optional props */ {\n groups: ['groups'],\n loginProfile: {\n password: 'password',\n\n // the properties below are optional\n passwordResetRequired: false,\n },\n managedPolicyArns: ['managedPolicyArns'],\n path: 'path',\n permissionsBoundary: 'permissionsBoundary',\n policies: [{\n policyDocument: policyDocument,\n policyName: 'policyName',\n }],\n tags: [{\n key: 'key',\n value: 'value',\n }],\n userName: 'userName',\n});",
|
3645 | "version": "0"
|
3646 | }
|
3647 | },
|
3648 | "location": {
|
3649 | "api": {
|
3650 | "api": "type",
|
3651 | "fqn": "@aws-cdk/aws-iam.CfnUser"
|
3652 | },
|
3653 | "field": {
|
3654 | "field": "example"
|
3655 | }
|
3656 | },
|
3657 | "didCompile": true,
|
3658 | "fqnsReferenced": [
|
3659 | "@aws-cdk/aws-iam.CfnUser",
|
3660 | "@aws-cdk/aws-iam.CfnUserProps",
|
3661 | "@aws-cdk/core.Construct"
|
3662 | ],
|
3663 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\n\ndeclare const policyDocument: any;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst cfnUser = new iam.CfnUser(this, 'MyCfnUser', /* all optional props */ {\n groups: ['groups'],\n loginProfile: {\n password: 'password',\n\n // the properties below are optional\n passwordResetRequired: false,\n },\n managedPolicyArns: ['managedPolicyArns'],\n path: 'path',\n permissionsBoundary: 'permissionsBoundary',\n policies: [{\n policyDocument: policyDocument,\n policyName: 'policyName',\n }],\n tags: [{\n key: 'key',\n value: 'value',\n }],\n userName: 'userName',\n});\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
3664 | "syntaxKindCounter": {
|
3665 | "10": 11,
|
3666 | "75": 20,
|
3667 | "91": 1,
|
3668 | "104": 1,
|
3669 | "125": 1,
|
3670 | "130": 1,
|
3671 | "192": 4,
|
3672 | "193": 4,
|
3673 | "194": 1,
|
3674 | "197": 1,
|
3675 | "225": 2,
|
3676 | "242": 2,
|
3677 | "243": 2,
|
3678 | "254": 1,
|
3679 | "255": 1,
|
3680 | "256": 1,
|
3681 | "281": 14,
|
3682 | "290": 1
|
3683 | },
|
3684 | "fqnsFingerprint": "5dab7d3f5ad5580de4133b563560cec9e6299be2d6436ff1f62318ad118470e1"
|
3685 | },
|
3686 | "e90fc2fd9c347035873c5f6a10afb7abea8e8b0313f6d7fa370391e8de2d020f": {
|
3687 | "translations": {
|
3688 | "python": {
|
3689 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_iam as iam\n\nlogin_profile_property = iam.CfnUser.LoginProfileProperty(\n password=\"password\",\n\n # the properties below are optional\n password_reset_required=False\n)",
|
3690 | "version": "2"
|
3691 | },
|
3692 | "csharp": {
|
3693 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.IAM;\n\nLoginProfileProperty loginProfileProperty = new LoginProfileProperty {\n Password = \"password\",\n\n // the properties below are optional\n PasswordResetRequired = false\n};",
|
3694 | "version": "1"
|
3695 | },
|
3696 | "java": {
|
3697 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.iam.*;\n\nLoginProfileProperty loginProfileProperty = LoginProfileProperty.builder()\n .password(\"password\")\n\n // the properties below are optional\n .passwordResetRequired(false)\n .build();",
|
3698 | "version": "1"
|
3699 | },
|
3700 | "go": {
|
3701 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport iam \"github.com/aws-samples/dummy/awscdkawsiam\"\n\nloginProfileProperty := &loginProfileProperty{\n\tpassword: jsii.String(\"password\"),\n\n\t// the properties below are optional\n\tpasswordResetRequired: jsii.Boolean(false),\n}",
|
3702 | "version": "1"
|
3703 | },
|
3704 | "$": {
|
3705 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\nconst loginProfileProperty: iam.CfnUser.LoginProfileProperty = {\n password: 'password',\n\n // the properties below are optional\n passwordResetRequired: false,\n};",
|
3706 | "version": "0"
|
3707 | }
|
3708 | },
|
3709 | "location": {
|
3710 | "api": {
|
3711 | "api": "type",
|
3712 | "fqn": "@aws-cdk/aws-iam.CfnUser.LoginProfileProperty"
|
3713 | },
|
3714 | "field": {
|
3715 | "field": "example"
|
3716 | }
|
3717 | },
|
3718 | "didCompile": true,
|
3719 | "fqnsReferenced": [
|
3720 | "@aws-cdk/aws-iam.CfnUser.LoginProfileProperty"
|
3721 | ],
|
3722 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst loginProfileProperty: iam.CfnUser.LoginProfileProperty = {\n password: 'password',\n\n // the properties below are optional\n passwordResetRequired: false,\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
3723 | "syntaxKindCounter": {
|
3724 | "10": 2,
|
3725 | "75": 7,
|
3726 | "91": 1,
|
3727 | "153": 2,
|
3728 | "169": 1,
|
3729 | "193": 1,
|
3730 | "225": 1,
|
3731 | "242": 1,
|
3732 | "243": 1,
|
3733 | "254": 1,
|
3734 | "255": 1,
|
3735 | "256": 1,
|
3736 | "281": 2,
|
3737 | "290": 1
|
3738 | },
|
3739 | "fqnsFingerprint": "eaae99089b80f2da9a844a0efd949035b0c9e4b93994a7d541dfc9ea5fd03052"
|
3740 | },
|
3741 | "7a511304b6c3352b32ac0a0b154073386c2d875589f3d3815e15f93428191bcb": {
|
3742 | "translations": {
|
3743 | "python": {
|
3744 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_iam as iam\n\n# policy_document: Any\n\npolicy_property = iam.CfnUser.PolicyProperty(\n policy_document=policy_document,\n policy_name=\"policyName\"\n)",
|
3745 | "version": "2"
|
3746 | },
|
3747 | "csharp": {
|
3748 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.IAM;\n\nvar policyDocument;\n\nPolicyProperty policyProperty = new PolicyProperty {\n PolicyDocument = policyDocument,\n PolicyName = \"policyName\"\n};",
|
3749 | "version": "1"
|
3750 | },
|
3751 | "java": {
|
3752 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.iam.*;\n\nObject policyDocument;\n\nPolicyProperty policyProperty = PolicyProperty.builder()\n .policyDocument(policyDocument)\n .policyName(\"policyName\")\n .build();",
|
3753 | "version": "1"
|
3754 | },
|
3755 | "go": {
|
3756 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport iam \"github.com/aws-samples/dummy/awscdkawsiam\"\n\nvar policyDocument interface{}\n\npolicyProperty := &policyProperty{\n\tpolicyDocument: policyDocument,\n\tpolicyName: jsii.String(\"policyName\"),\n}",
|
3757 | "version": "1"
|
3758 | },
|
3759 | "$": {
|
3760 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\n\ndeclare const policyDocument: any;\nconst policyProperty: iam.CfnUser.PolicyProperty = {\n policyDocument: policyDocument,\n policyName: 'policyName',\n};",
|
3761 | "version": "0"
|
3762 | }
|
3763 | },
|
3764 | "location": {
|
3765 | "api": {
|
3766 | "api": "type",
|
3767 | "fqn": "@aws-cdk/aws-iam.CfnUser.PolicyProperty"
|
3768 | },
|
3769 | "field": {
|
3770 | "field": "example"
|
3771 | }
|
3772 | },
|
3773 | "didCompile": true,
|
3774 | "fqnsReferenced": [
|
3775 | "@aws-cdk/aws-iam.CfnUser.PolicyProperty"
|
3776 | ],
|
3777 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\n\ndeclare const policyDocument: any;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst policyProperty: iam.CfnUser.PolicyProperty = {\n policyDocument: policyDocument,\n policyName: 'policyName',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
3778 | "syntaxKindCounter": {
|
3779 | "10": 2,
|
3780 | "75": 9,
|
3781 | "125": 1,
|
3782 | "130": 1,
|
3783 | "153": 2,
|
3784 | "169": 1,
|
3785 | "193": 1,
|
3786 | "225": 2,
|
3787 | "242": 2,
|
3788 | "243": 2,
|
3789 | "254": 1,
|
3790 | "255": 1,
|
3791 | "256": 1,
|
3792 | "281": 2,
|
3793 | "290": 1
|
3794 | },
|
3795 | "fqnsFingerprint": "ed648784663251999e86451863c3e8fdf4c239824a33f7618333e5f0c9a9aed1"
|
3796 | },
|
3797 | "be3e62b8bc74fea5966aee7e1dce0e72d07753cee962cd5a321eda627bb6d066": {
|
3798 | "translations": {
|
3799 | "python": {
|
3800 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_iam as iam\n\n# policy_document: Any\n\ncfn_user_props = iam.CfnUserProps(\n groups=[\"groups\"],\n login_profile=iam.CfnUser.LoginProfileProperty(\n password=\"password\",\n\n # the properties below are optional\n password_reset_required=False\n ),\n managed_policy_arns=[\"managedPolicyArns\"],\n path=\"path\",\n permissions_boundary=\"permissionsBoundary\",\n policies=[iam.CfnUser.PolicyProperty(\n policy_document=policy_document,\n policy_name=\"policyName\"\n )],\n tags=[CfnTag(\n key=\"key\",\n value=\"value\"\n )],\n user_name=\"userName\"\n)",
|
3801 | "version": "2"
|
3802 | },
|
3803 | "csharp": {
|
3804 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.IAM;\n\nvar policyDocument;\n\nCfnUserProps cfnUserProps = new CfnUserProps {\n Groups = new [] { \"groups\" },\n LoginProfile = new LoginProfileProperty {\n Password = \"password\",\n\n // the properties below are optional\n PasswordResetRequired = false\n },\n ManagedPolicyArns = new [] { \"managedPolicyArns\" },\n Path = \"path\",\n PermissionsBoundary = \"permissionsBoundary\",\n Policies = new [] { new PolicyProperty {\n PolicyDocument = policyDocument,\n PolicyName = \"policyName\"\n } },\n Tags = new [] { new CfnTag {\n Key = \"key\",\n Value = \"value\"\n } },\n UserName = \"userName\"\n};",
|
3805 | "version": "1"
|
3806 | },
|
3807 | "java": {
|
3808 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.iam.*;\n\nObject policyDocument;\n\nCfnUserProps cfnUserProps = CfnUserProps.builder()\n .groups(List.of(\"groups\"))\n .loginProfile(LoginProfileProperty.builder()\n .password(\"password\")\n\n // the properties below are optional\n .passwordResetRequired(false)\n .build())\n .managedPolicyArns(List.of(\"managedPolicyArns\"))\n .path(\"path\")\n .permissionsBoundary(\"permissionsBoundary\")\n .policies(List.of(PolicyProperty.builder()\n .policyDocument(policyDocument)\n .policyName(\"policyName\")\n .build()))\n .tags(List.of(CfnTag.builder()\n .key(\"key\")\n .value(\"value\")\n .build()))\n .userName(\"userName\")\n .build();",
|
3809 | "version": "1"
|
3810 | },
|
3811 | "go": {
|
3812 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport iam \"github.com/aws-samples/dummy/awscdkawsiam\"\n\nvar policyDocument interface{}\n\ncfnUserProps := &cfnUserProps{\n\tgroups: []*string{\n\t\tjsii.String(\"groups\"),\n\t},\n\tloginProfile: &loginProfileProperty{\n\t\tpassword: jsii.String(\"password\"),\n\n\t\t// the properties below are optional\n\t\tpasswordResetRequired: jsii.Boolean(false),\n\t},\n\tmanagedPolicyArns: []*string{\n\t\tjsii.String(\"managedPolicyArns\"),\n\t},\n\tpath: jsii.String(\"path\"),\n\tpermissionsBoundary: jsii.String(\"permissionsBoundary\"),\n\tpolicies: []interface{}{\n\t\t&policyProperty{\n\t\t\tpolicyDocument: policyDocument,\n\t\t\tpolicyName: jsii.String(\"policyName\"),\n\t\t},\n\t},\n\ttags: []cfnTag{\n\t\t&cfnTag{\n\t\t\tkey: jsii.String(\"key\"),\n\t\t\tvalue: jsii.String(\"value\"),\n\t\t},\n\t},\n\tuserName: jsii.String(\"userName\"),\n}",
|
3813 | "version": "1"
|
3814 | },
|
3815 | "$": {
|
3816 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\n\ndeclare const policyDocument: any;\nconst cfnUserProps: iam.CfnUserProps = {\n groups: ['groups'],\n loginProfile: {\n password: 'password',\n\n // the properties below are optional\n passwordResetRequired: false,\n },\n managedPolicyArns: ['managedPolicyArns'],\n path: 'path',\n permissionsBoundary: 'permissionsBoundary',\n policies: [{\n policyDocument: policyDocument,\n policyName: 'policyName',\n }],\n tags: [{\n key: 'key',\n value: 'value',\n }],\n userName: 'userName',\n};",
|
3817 | "version": "0"
|
3818 | }
|
3819 | },
|
3820 | "location": {
|
3821 | "api": {
|
3822 | "api": "type",
|
3823 | "fqn": "@aws-cdk/aws-iam.CfnUserProps"
|
3824 | },
|
3825 | "field": {
|
3826 | "field": "example"
|
3827 | }
|
3828 | },
|
3829 | "didCompile": true,
|
3830 | "fqnsReferenced": [
|
3831 | "@aws-cdk/aws-iam.CfnUserProps"
|
3832 | ],
|
3833 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\n\ndeclare const policyDocument: any;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst cfnUserProps: iam.CfnUserProps = {\n groups: ['groups'],\n loginProfile: {\n password: 'password',\n\n // the properties below are optional\n passwordResetRequired: false,\n },\n managedPolicyArns: ['managedPolicyArns'],\n path: 'path',\n permissionsBoundary: 'permissionsBoundary',\n policies: [{\n policyDocument: policyDocument,\n policyName: 'policyName',\n }],\n tags: [{\n key: 'key',\n value: 'value',\n }],\n userName: 'userName',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
3834 | "syntaxKindCounter": {
|
3835 | "10": 10,
|
3836 | "75": 20,
|
3837 | "91": 1,
|
3838 | "125": 1,
|
3839 | "130": 1,
|
3840 | "153": 1,
|
3841 | "169": 1,
|
3842 | "192": 4,
|
3843 | "193": 4,
|
3844 | "225": 2,
|
3845 | "242": 2,
|
3846 | "243": 2,
|
3847 | "254": 1,
|
3848 | "255": 1,
|
3849 | "256": 1,
|
3850 | "281": 14,
|
3851 | "290": 1
|
3852 | },
|
3853 | "fqnsFingerprint": "d2fde249cef81418664985a20bc2e3dafffe8477d712205eeb17661ca1980a3a"
|
3854 | },
|
3855 | "ecc91ad8d9dd8c5e5a97da4756842ba10d3e66adfd8d860bb33710208dfa11a2": {
|
3856 | "translations": {
|
3857 | "python": {
|
3858 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_iam as iam\n\ncfn_user_to_group_addition = iam.CfnUserToGroupAddition(self, \"MyCfnUserToGroupAddition\",\n group_name=\"groupName\",\n users=[\"users\"]\n)",
|
3859 | "version": "2"
|
3860 | },
|
3861 | "csharp": {
|
3862 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.IAM;\n\nCfnUserToGroupAddition cfnUserToGroupAddition = new CfnUserToGroupAddition(this, \"MyCfnUserToGroupAddition\", new CfnUserToGroupAdditionProps {\n GroupName = \"groupName\",\n Users = new [] { \"users\" }\n});",
|
3863 | "version": "1"
|
3864 | },
|
3865 | "java": {
|
3866 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.iam.*;\n\nCfnUserToGroupAddition cfnUserToGroupAddition = CfnUserToGroupAddition.Builder.create(this, \"MyCfnUserToGroupAddition\")\n .groupName(\"groupName\")\n .users(List.of(\"users\"))\n .build();",
|
3867 | "version": "1"
|
3868 | },
|
3869 | "go": {
|
3870 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport iam \"github.com/aws-samples/dummy/awscdkawsiam\"\n\ncfnUserToGroupAddition := iam.NewCfnUserToGroupAddition(this, jsii.String(\"MyCfnUserToGroupAddition\"), &cfnUserToGroupAdditionProps{\n\tgroupName: jsii.String(\"groupName\"),\n\tusers: []*string{\n\t\tjsii.String(\"users\"),\n\t},\n})",
|
3871 | "version": "1"
|
3872 | },
|
3873 | "$": {
|
3874 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\nconst cfnUserToGroupAddition = new iam.CfnUserToGroupAddition(this, 'MyCfnUserToGroupAddition', {\n groupName: 'groupName',\n users: ['users'],\n});",
|
3875 | "version": "0"
|
3876 | }
|
3877 | },
|
3878 | "location": {
|
3879 | "api": {
|
3880 | "api": "type",
|
3881 | "fqn": "@aws-cdk/aws-iam.CfnUserToGroupAddition"
|
3882 | },
|
3883 | "field": {
|
3884 | "field": "example"
|
3885 | }
|
3886 | },
|
3887 | "didCompile": true,
|
3888 | "fqnsReferenced": [
|
3889 | "@aws-cdk/aws-iam.CfnUserToGroupAddition",
|
3890 | "@aws-cdk/aws-iam.CfnUserToGroupAdditionProps",
|
3891 | "@aws-cdk/core.Construct"
|
3892 | ],
|
3893 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst cfnUserToGroupAddition = new iam.CfnUserToGroupAddition(this, 'MyCfnUserToGroupAddition', {\n groupName: 'groupName',\n users: ['users'],\n});\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
3894 | "syntaxKindCounter": {
|
3895 | "10": 4,
|
3896 | "75": 6,
|
3897 | "104": 1,
|
3898 | "192": 1,
|
3899 | "193": 1,
|
3900 | "194": 1,
|
3901 | "197": 1,
|
3902 | "225": 1,
|
3903 | "242": 1,
|
3904 | "243": 1,
|
3905 | "254": 1,
|
3906 | "255": 1,
|
3907 | "256": 1,
|
3908 | "281": 2,
|
3909 | "290": 1
|
3910 | },
|
3911 | "fqnsFingerprint": "e447380bf09ed28d86b8396cd79d4aca6b63a4f1bf17d89e7fc718a84dc72202"
|
3912 | },
|
3913 | "200d8cc30ce76131f63e636adaf615df336a1ec940d7c9eb3a80ca5cfa2ac5dc": {
|
3914 | "translations": {
|
3915 | "python": {
|
3916 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_iam as iam\n\ncfn_user_to_group_addition_props = iam.CfnUserToGroupAdditionProps(\n group_name=\"groupName\",\n users=[\"users\"]\n)",
|
3917 | "version": "2"
|
3918 | },
|
3919 | "csharp": {
|
3920 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.IAM;\n\nCfnUserToGroupAdditionProps cfnUserToGroupAdditionProps = new CfnUserToGroupAdditionProps {\n GroupName = \"groupName\",\n Users = new [] { \"users\" }\n};",
|
3921 | "version": "1"
|
3922 | },
|
3923 | "java": {
|
3924 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.iam.*;\n\nCfnUserToGroupAdditionProps cfnUserToGroupAdditionProps = CfnUserToGroupAdditionProps.builder()\n .groupName(\"groupName\")\n .users(List.of(\"users\"))\n .build();",
|
3925 | "version": "1"
|
3926 | },
|
3927 | "go": {
|
3928 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport iam \"github.com/aws-samples/dummy/awscdkawsiam\"\n\ncfnUserToGroupAdditionProps := &cfnUserToGroupAdditionProps{\n\tgroupName: jsii.String(\"groupName\"),\n\tusers: []*string{\n\t\tjsii.String(\"users\"),\n\t},\n}",
|
3929 | "version": "1"
|
3930 | },
|
3931 | "$": {
|
3932 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\nconst cfnUserToGroupAdditionProps: iam.CfnUserToGroupAdditionProps = {\n groupName: 'groupName',\n users: ['users'],\n};",
|
3933 | "version": "0"
|
3934 | }
|
3935 | },
|
3936 | "location": {
|
3937 | "api": {
|
3938 | "api": "type",
|
3939 | "fqn": "@aws-cdk/aws-iam.CfnUserToGroupAdditionProps"
|
3940 | },
|
3941 | "field": {
|
3942 | "field": "example"
|
3943 | }
|
3944 | },
|
3945 | "didCompile": true,
|
3946 | "fqnsReferenced": [
|
3947 | "@aws-cdk/aws-iam.CfnUserToGroupAdditionProps"
|
3948 | ],
|
3949 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst cfnUserToGroupAdditionProps: iam.CfnUserToGroupAdditionProps = {\n groupName: 'groupName',\n users: ['users'],\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
3950 | "syntaxKindCounter": {
|
3951 | "10": 3,
|
3952 | "75": 6,
|
3953 | "153": 1,
|
3954 | "169": 1,
|
3955 | "192": 1,
|
3956 | "193": 1,
|
3957 | "225": 1,
|
3958 | "242": 1,
|
3959 | "243": 1,
|
3960 | "254": 1,
|
3961 | "255": 1,
|
3962 | "256": 1,
|
3963 | "281": 2,
|
3964 | "290": 1
|
3965 | },
|
3966 | "fqnsFingerprint": "0b5c455734f0afbbccab5dc20cd5ead16545e53422e34421e3cbf221605286eb"
|
3967 | },
|
3968 | "aad1d70b036a4d72885c3dbde4030d30ce88cd18c28793443052764222daa0e6": {
|
3969 | "translations": {
|
3970 | "python": {
|
3971 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_iam as iam\n\ncfn_virtual_mFADevice = iam.CfnVirtualMFADevice(self, \"MyCfnVirtualMFADevice\",\n users=[\"users\"],\n\n # the properties below are optional\n path=\"path\",\n tags=[CfnTag(\n key=\"key\",\n value=\"value\"\n )],\n virtual_mfa_device_name=\"virtualMfaDeviceName\"\n)",
|
3972 | "version": "2"
|
3973 | },
|
3974 | "csharp": {
|
3975 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.IAM;\n\nCfnVirtualMFADevice cfnVirtualMFADevice = new CfnVirtualMFADevice(this, \"MyCfnVirtualMFADevice\", new CfnVirtualMFADeviceProps {\n Users = new [] { \"users\" },\n\n // the properties below are optional\n Path = \"path\",\n Tags = new [] { new CfnTag {\n Key = \"key\",\n Value = \"value\"\n } },\n VirtualMfaDeviceName = \"virtualMfaDeviceName\"\n});",
|
3976 | "version": "1"
|
3977 | },
|
3978 | "java": {
|
3979 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.iam.*;\n\nCfnVirtualMFADevice cfnVirtualMFADevice = CfnVirtualMFADevice.Builder.create(this, \"MyCfnVirtualMFADevice\")\n .users(List.of(\"users\"))\n\n // the properties below are optional\n .path(\"path\")\n .tags(List.of(CfnTag.builder()\n .key(\"key\")\n .value(\"value\")\n .build()))\n .virtualMfaDeviceName(\"virtualMfaDeviceName\")\n .build();",
|
3980 | "version": "1"
|
3981 | },
|
3982 | "go": {
|
3983 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport iam \"github.com/aws-samples/dummy/awscdkawsiam\"\n\ncfnVirtualMFADevice := iam.NewCfnVirtualMFADevice(this, jsii.String(\"MyCfnVirtualMFADevice\"), &cfnVirtualMFADeviceProps{\n\tusers: []*string{\n\t\tjsii.String(\"users\"),\n\t},\n\n\t// the properties below are optional\n\tpath: jsii.String(\"path\"),\n\ttags: []cfnTag{\n\t\t&cfnTag{\n\t\t\tkey: jsii.String(\"key\"),\n\t\t\tvalue: jsii.String(\"value\"),\n\t\t},\n\t},\n\tvirtualMfaDeviceName: jsii.String(\"virtualMfaDeviceName\"),\n})",
|
3984 | "version": "1"
|
3985 | },
|
3986 | "$": {
|
3987 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\nconst cfnVirtualMFADevice = new iam.CfnVirtualMFADevice(this, 'MyCfnVirtualMFADevice', {\n users: ['users'],\n\n // the properties below are optional\n path: 'path',\n tags: [{\n key: 'key',\n value: 'value',\n }],\n virtualMfaDeviceName: 'virtualMfaDeviceName',\n});",
|
3988 | "version": "0"
|
3989 | }
|
3990 | },
|
3991 | "location": {
|
3992 | "api": {
|
3993 | "api": "type",
|
3994 | "fqn": "@aws-cdk/aws-iam.CfnVirtualMFADevice"
|
3995 | },
|
3996 | "field": {
|
3997 | "field": "example"
|
3998 | }
|
3999 | },
|
4000 | "didCompile": true,
|
4001 | "fqnsReferenced": [
|
4002 | "@aws-cdk/aws-iam.CfnVirtualMFADevice",
|
4003 | "@aws-cdk/aws-iam.CfnVirtualMFADeviceProps",
|
4004 | "@aws-cdk/core.Construct"
|
4005 | ],
|
4006 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst cfnVirtualMFADevice = new iam.CfnVirtualMFADevice(this, 'MyCfnVirtualMFADevice', {\n users: ['users'],\n\n // the properties below are optional\n path: 'path',\n tags: [{\n key: 'key',\n value: 'value',\n }],\n virtualMfaDeviceName: 'virtualMfaDeviceName',\n});\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
4007 | "syntaxKindCounter": {
|
4008 | "10": 7,
|
4009 | "75": 10,
|
4010 | "104": 1,
|
4011 | "192": 2,
|
4012 | "193": 2,
|
4013 | "194": 1,
|
4014 | "197": 1,
|
4015 | "225": 1,
|
4016 | "242": 1,
|
4017 | "243": 1,
|
4018 | "254": 1,
|
4019 | "255": 1,
|
4020 | "256": 1,
|
4021 | "281": 6,
|
4022 | "290": 1
|
4023 | },
|
4024 | "fqnsFingerprint": "bb36010bd3da042c8e6a0863fe5c7d5d39334677ac845ede702f9b80f9abf062"
|
4025 | },
|
4026 | "4f08a8e1e7766bb785aecbd0c603e6d0c8824945ac87b04c5b2f97b1d57bff7b": {
|
4027 | "translations": {
|
4028 | "python": {
|
4029 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_iam as iam\n\ncfn_virtual_mFADevice_props = iam.CfnVirtualMFADeviceProps(\n users=[\"users\"],\n\n # the properties below are optional\n path=\"path\",\n tags=[CfnTag(\n key=\"key\",\n value=\"value\"\n )],\n virtual_mfa_device_name=\"virtualMfaDeviceName\"\n)",
|
4030 | "version": "2"
|
4031 | },
|
4032 | "csharp": {
|
4033 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.IAM;\n\nCfnVirtualMFADeviceProps cfnVirtualMFADeviceProps = new CfnVirtualMFADeviceProps {\n Users = new [] { \"users\" },\n\n // the properties below are optional\n Path = \"path\",\n Tags = new [] { new CfnTag {\n Key = \"key\",\n Value = \"value\"\n } },\n VirtualMfaDeviceName = \"virtualMfaDeviceName\"\n};",
|
4034 | "version": "1"
|
4035 | },
|
4036 | "java": {
|
4037 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.iam.*;\n\nCfnVirtualMFADeviceProps cfnVirtualMFADeviceProps = CfnVirtualMFADeviceProps.builder()\n .users(List.of(\"users\"))\n\n // the properties below are optional\n .path(\"path\")\n .tags(List.of(CfnTag.builder()\n .key(\"key\")\n .value(\"value\")\n .build()))\n .virtualMfaDeviceName(\"virtualMfaDeviceName\")\n .build();",
|
4038 | "version": "1"
|
4039 | },
|
4040 | "go": {
|
4041 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport iam \"github.com/aws-samples/dummy/awscdkawsiam\"\n\ncfnVirtualMFADeviceProps := &cfnVirtualMFADeviceProps{\n\tusers: []*string{\n\t\tjsii.String(\"users\"),\n\t},\n\n\t// the properties below are optional\n\tpath: jsii.String(\"path\"),\n\ttags: []cfnTag{\n\t\t&cfnTag{\n\t\t\tkey: jsii.String(\"key\"),\n\t\t\tvalue: jsii.String(\"value\"),\n\t\t},\n\t},\n\tvirtualMfaDeviceName: jsii.String(\"virtualMfaDeviceName\"),\n}",
|
4042 | "version": "1"
|
4043 | },
|
4044 | "$": {
|
4045 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\nconst cfnVirtualMFADeviceProps: iam.CfnVirtualMFADeviceProps = {\n users: ['users'],\n\n // the properties below are optional\n path: 'path',\n tags: [{\n key: 'key',\n value: 'value',\n }],\n virtualMfaDeviceName: 'virtualMfaDeviceName',\n};",
|
4046 | "version": "0"
|
4047 | }
|
4048 | },
|
4049 | "location": {
|
4050 | "api": {
|
4051 | "api": "type",
|
4052 | "fqn": "@aws-cdk/aws-iam.CfnVirtualMFADeviceProps"
|
4053 | },
|
4054 | "field": {
|
4055 | "field": "example"
|
4056 | }
|
4057 | },
|
4058 | "didCompile": true,
|
4059 | "fqnsReferenced": [
|
4060 | "@aws-cdk/aws-iam.CfnVirtualMFADeviceProps"
|
4061 | ],
|
4062 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst cfnVirtualMFADeviceProps: iam.CfnVirtualMFADeviceProps = {\n users: ['users'],\n\n // the properties below are optional\n path: 'path',\n tags: [{\n key: 'key',\n value: 'value',\n }],\n virtualMfaDeviceName: 'virtualMfaDeviceName',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
4063 | "syntaxKindCounter": {
|
4064 | "10": 6,
|
4065 | "75": 10,
|
4066 | "153": 1,
|
4067 | "169": 1,
|
4068 | "192": 2,
|
4069 | "193": 2,
|
4070 | "225": 1,
|
4071 | "242": 1,
|
4072 | "243": 1,
|
4073 | "254": 1,
|
4074 | "255": 1,
|
4075 | "256": 1,
|
4076 | "281": 6,
|
4077 | "290": 1
|
4078 | },
|
4079 | "fqnsFingerprint": "1771dbca8e167555578a88ba816da2780769419b33bdad212eecc4ddaab5f897"
|
4080 | },
|
4081 | "e8a06707e4af3132a13988f552b3b9e081db89ebaaa52807bd8b06cd3fe3e8ef": {
|
4082 | "translations": {
|
4083 | "python": {
|
4084 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_iam as iam\n\n# grantable: iam.IGrantable\n\ncommon_grant_options = iam.CommonGrantOptions(\n actions=[\"actions\"],\n grantee=grantable,\n resource_arns=[\"resourceArns\"]\n)",
|
4085 | "version": "2"
|
4086 | },
|
4087 | "csharp": {
|
4088 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.IAM;\n\nIGrantable grantable;\n\nCommonGrantOptions commonGrantOptions = new CommonGrantOptions {\n Actions = new [] { \"actions\" },\n Grantee = grantable,\n ResourceArns = new [] { \"resourceArns\" }\n};",
|
4089 | "version": "1"
|
4090 | },
|
4091 | "java": {
|
4092 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.iam.*;\n\nIGrantable grantable;\n\nCommonGrantOptions commonGrantOptions = CommonGrantOptions.builder()\n .actions(List.of(\"actions\"))\n .grantee(grantable)\n .resourceArns(List.of(\"resourceArns\"))\n .build();",
|
4093 | "version": "1"
|
4094 | },
|
4095 | "go": {
|
4096 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport iam \"github.com/aws-samples/dummy/awscdkawsiam\"\n\nvar grantable iGrantable\n\ncommonGrantOptions := &commonGrantOptions{\n\tactions: []*string{\n\t\tjsii.String(\"actions\"),\n\t},\n\tgrantee: grantable,\n\tresourceArns: []*string{\n\t\tjsii.String(\"resourceArns\"),\n\t},\n}",
|
4097 | "version": "1"
|
4098 | },
|
4099 | "$": {
|
4100 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\n\ndeclare const grantable: iam.IGrantable;\nconst commonGrantOptions: iam.CommonGrantOptions = {\n actions: ['actions'],\n grantee: grantable,\n resourceArns: ['resourceArns'],\n};",
|
4101 | "version": "0"
|
4102 | }
|
4103 | },
|
4104 | "location": {
|
4105 | "api": {
|
4106 | "api": "type",
|
4107 | "fqn": "@aws-cdk/aws-iam.CommonGrantOptions"
|
4108 | },
|
4109 | "field": {
|
4110 | "field": "example"
|
4111 | }
|
4112 | },
|
4113 | "didCompile": true,
|
4114 | "fqnsReferenced": [
|
4115 | "@aws-cdk/aws-iam.CommonGrantOptions",
|
4116 | "@aws-cdk/aws-iam.IGrantable"
|
4117 | ],
|
4118 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\n\ndeclare const grantable: iam.IGrantable;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst commonGrantOptions: iam.CommonGrantOptions = {\n actions: ['actions'],\n grantee: grantable,\n resourceArns: ['resourceArns'],\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
4119 | "syntaxKindCounter": {
|
4120 | "10": 3,
|
4121 | "75": 11,
|
4122 | "130": 1,
|
4123 | "153": 2,
|
4124 | "169": 2,
|
4125 | "192": 2,
|
4126 | "193": 1,
|
4127 | "225": 2,
|
4128 | "242": 2,
|
4129 | "243": 2,
|
4130 | "254": 1,
|
4131 | "255": 1,
|
4132 | "256": 1,
|
4133 | "281": 3,
|
4134 | "290": 1
|
4135 | },
|
4136 | "fqnsFingerprint": "7a02c9a25cf2f4939de78551a719962d7f798f4e03e7e04ef6787831adbaa150"
|
4137 | },
|
4138 | "8fa5d3a9c530df7b8d21e7d61b09348385ae5fbd45e3435afa86cd2e4b0219ec": {
|
4139 | "translations": {
|
4140 | "python": {
|
4141 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_iam as iam\nimport aws_cdk.core as cdk\n\n# dependable: cdk.IDependable\n\ncomposite_dependable = iam.CompositeDependable(dependable)",
|
4142 | "version": "2"
|
4143 | },
|
4144 | "csharp": {
|
4145 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.IAM;\nusing Amazon.CDK;\n\nIDependable dependable;\nCompositeDependable compositeDependable = new CompositeDependable(dependable);",
|
4146 | "version": "1"
|
4147 | },
|
4148 | "java": {
|
4149 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.iam.*;\nimport software.amazon.awscdk.core.*;\n\nIDependable dependable;\n\nCompositeDependable compositeDependable = new CompositeDependable(dependable);",
|
4150 | "version": "1"
|
4151 | },
|
4152 | "go": {
|
4153 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport iam \"github.com/aws-samples/dummy/awscdkawsiam\"\nimport cdk \"github.com/aws-samples/dummy/awscdkcore\"\n\nvar dependable iDependable\n\ncompositeDependable := iam.NewCompositeDependable(dependable)",
|
4154 | "version": "1"
|
4155 | },
|
4156 | "$": {
|
4157 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\nimport * as cdk from '@aws-cdk/core';\n\ndeclare const dependable: cdk.IDependable;\nconst compositeDependable = new iam.CompositeDependable(dependable);",
|
4158 | "version": "0"
|
4159 | }
|
4160 | },
|
4161 | "location": {
|
4162 | "api": {
|
4163 | "api": "type",
|
4164 | "fqn": "@aws-cdk/aws-iam.CompositeDependable"
|
4165 | },
|
4166 | "field": {
|
4167 | "field": "example"
|
4168 | }
|
4169 | },
|
4170 | "didCompile": true,
|
4171 | "fqnsReferenced": [
|
4172 | "@aws-cdk/aws-iam.CompositeDependable",
|
4173 | "@aws-cdk/core.IDependable"
|
4174 | ],
|
4175 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\nimport * as cdk from '@aws-cdk/core';\n\ndeclare const dependable: cdk.IDependable;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst compositeDependable = new iam.CompositeDependable(dependable);\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
4176 | "syntaxKindCounter": {
|
4177 | "10": 2,
|
4178 | "75": 9,
|
4179 | "130": 1,
|
4180 | "153": 1,
|
4181 | "169": 1,
|
4182 | "194": 1,
|
4183 | "197": 1,
|
4184 | "225": 2,
|
4185 | "242": 2,
|
4186 | "243": 2,
|
4187 | "254": 2,
|
4188 | "255": 2,
|
4189 | "256": 2,
|
4190 | "290": 1
|
4191 | },
|
4192 | "fqnsFingerprint": "44882fcd6d92309ded2135c05fadbb52f8fffcb4f5a33bc5c32ce8191ec98a25"
|
4193 | },
|
4194 | "c473ecf8777a9001f626453de09a2c03acdfd0f568a7221699034ff87b89295e": {
|
4195 | "translations": {
|
4196 | "python": {
|
4197 | "source": "role = iam.Role(self, \"MyRole\",\n assumed_by=iam.CompositePrincipal(\n iam.ServicePrincipal(\"ec2.amazonaws.com\"),\n iam.AccountPrincipal(\"1818188181818187272\"))\n)",
|
4198 | "version": "2"
|
4199 | },
|
4200 | "csharp": {
|
4201 | "source": "Role role = new Role(this, \"MyRole\", new RoleProps {\n AssumedBy = new CompositePrincipal(\n new ServicePrincipal(\"ec2.amazonaws.com\"),\n new AccountPrincipal(\"1818188181818187272\"))\n});",
|
4202 | "version": "1"
|
4203 | },
|
4204 | "java": {
|
4205 | "source": "Role role = Role.Builder.create(this, \"MyRole\")\n .assumedBy(new CompositePrincipal(\n new ServicePrincipal(\"ec2.amazonaws.com\"),\n new AccountPrincipal(\"1818188181818187272\")))\n .build();",
|
4206 | "version": "1"
|
4207 | },
|
4208 | "go": {
|
4209 | "source": "role := iam.NewRole(this, jsii.String(\"MyRole\"), &roleProps{\n\tassumedBy: iam.NewCompositePrincipal(\n\tiam.NewServicePrincipal(jsii.String(\"ec2.amazonaws.com\")),\n\tiam.NewAccountPrincipal(jsii.String(\"1818188181818187272\"))),\n})",
|
4210 | "version": "1"
|
4211 | },
|
4212 | "$": {
|
4213 | "source": "const role = new iam.Role(this, 'MyRole', {\n assumedBy: new iam.CompositePrincipal(\n new iam.ServicePrincipal('ec2.amazonaws.com'),\n new iam.AccountPrincipal('1818188181818187272')\n ),\n});",
|
4214 | "version": "0"
|
4215 | }
|
4216 | },
|
4217 | "location": {
|
4218 | "api": {
|
4219 | "api": "type",
|
4220 | "fqn": "@aws-cdk/aws-iam.CompositePrincipal"
|
4221 | },
|
4222 | "field": {
|
4223 | "field": "example"
|
4224 | }
|
4225 | },
|
4226 | "didCompile": true,
|
4227 | "fqnsReferenced": [
|
4228 | "@aws-cdk/aws-iam.AccountPrincipal",
|
4229 | "@aws-cdk/aws-iam.CompositePrincipal",
|
4230 | "@aws-cdk/aws-iam.IPrincipal",
|
4231 | "@aws-cdk/aws-iam.Role",
|
4232 | "@aws-cdk/aws-iam.RoleProps",
|
4233 | "@aws-cdk/aws-iam.ServicePrincipal",
|
4234 | "constructs.Construct"
|
4235 | ],
|
4236 | "fullSource": "import { Construct } from 'constructs';\nimport { CustomResource, Stack } from '@aws-cdk/core';\nimport * as codepipeline from '@aws-cdk/aws-codepipeline';\nimport * as dynamodb from '@aws-cdk/aws-dynamodb';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as iam from '@aws-cdk/aws-iam';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst role = new iam.Role(this, 'MyRole', {\n assumedBy: new iam.CompositePrincipal(\n new iam.ServicePrincipal('ec2.amazonaws.com'),\n new iam.AccountPrincipal('1818188181818187272')\n ),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
4237 | "syntaxKindCounter": {
|
4238 | "10": 3,
|
4239 | "75": 10,
|
4240 | "104": 1,
|
4241 | "193": 1,
|
4242 | "194": 4,
|
4243 | "197": 4,
|
4244 | "225": 1,
|
4245 | "242": 1,
|
4246 | "243": 1,
|
4247 | "281": 1
|
4248 | },
|
4249 | "fqnsFingerprint": "97159aad086b7c4805f029ca288eaea0a73dbc5c79624e22d25c8d5c91c5f0e4"
|
4250 | },
|
4251 | "d4b078f795ba7479a034f85afca4ccc5361dc5498c01baf5b37014191a960516": {
|
4252 | "translations": {
|
4253 | "python": {
|
4254 | "source": "# books: apigateway.Resource\n# iam_user: iam.User\n\n\nget_books = books.add_method(\"GET\", apigateway.HttpIntegration(\"http://amazon.com\"),\n authorization_type=apigateway.AuthorizationType.IAM\n)\n\niam_user.attach_inline_policy(iam.Policy(self, \"AllowBooks\",\n statements=[\n iam.PolicyStatement(\n actions=[\"execute-api:Invoke\"],\n effect=iam.Effect.ALLOW,\n resources=[get_books.method_arn]\n )\n ]\n))",
|
4255 | "version": "2"
|
4256 | },
|
4257 | "csharp": {
|
4258 | "source": "Resource books;\nUser iamUser;\n\n\nMethod getBooks = books.AddMethod(\"GET\", new HttpIntegration(\"http://amazon.com\"), new MethodOptions {\n AuthorizationType = AuthorizationType.IAM\n});\n\niamUser.AttachInlinePolicy(new Policy(this, \"AllowBooks\", new PolicyProps {\n Statements = new [] {\n new PolicyStatement(new PolicyStatementProps {\n Actions = new [] { \"execute-api:Invoke\" },\n Effect = Effect.ALLOW,\n Resources = new [] { getBooks.MethodArn }\n }) }\n}));",
|
4259 | "version": "1"
|
4260 | },
|
4261 | "java": {
|
4262 | "source": "Resource books;\nUser iamUser;\n\n\nMethod getBooks = books.addMethod(\"GET\", new HttpIntegration(\"http://amazon.com\"), MethodOptions.builder()\n .authorizationType(AuthorizationType.IAM)\n .build());\n\niamUser.attachInlinePolicy(Policy.Builder.create(this, \"AllowBooks\")\n .statements(List.of(\n PolicyStatement.Builder.create()\n .actions(List.of(\"execute-api:Invoke\"))\n .effect(Effect.ALLOW)\n .resources(List.of(getBooks.getMethodArn()))\n .build()))\n .build());",
|
4263 | "version": "1"
|
4264 | },
|
4265 | "go": {
|
4266 | "source": "var books resource\nvar iamUser user\n\n\ngetBooks := books.addMethod(jsii.String(\"GET\"), apigateway.NewHttpIntegration(jsii.String(\"http://amazon.com\")), &methodOptions{\n\tauthorizationType: apigateway.authorizationType_IAM,\n})\n\niamUser.attachInlinePolicy(iam.NewPolicy(this, jsii.String(\"AllowBooks\"), &policyProps{\n\tstatements: []policyStatement{\n\t\tiam.NewPolicyStatement(&policyStatementProps{\n\t\t\tactions: []*string{\n\t\t\t\tjsii.String(\"execute-api:Invoke\"),\n\t\t\t},\n\t\t\teffect: iam.effect_ALLOW,\n\t\t\tresources: []*string{\n\t\t\t\tgetBooks.methodArn,\n\t\t\t},\n\t\t}),\n\t},\n}))",
|
4267 | "version": "1"
|
4268 | },
|
4269 | "$": {
|
4270 | "source": "declare const books: apigateway.Resource;\ndeclare const iamUser: iam.User;\n\nconst getBooks = books.addMethod('GET', new apigateway.HttpIntegration('http://amazon.com'), {\n authorizationType: apigateway.AuthorizationType.IAM\n});\n\niamUser.attachInlinePolicy(new iam.Policy(this, 'AllowBooks', {\n statements: [\n new iam.PolicyStatement({\n actions: [ 'execute-api:Invoke' ],\n effect: iam.Effect.ALLOW,\n resources: [ getBooks.methodArn ]\n })\n ]\n}))",
|
4271 | "version": "0"
|
4272 | }
|
4273 | },
|
4274 | "location": {
|
4275 | "api": {
|
4276 | "api": "type",
|
4277 | "fqn": "@aws-cdk/aws-iam.Effect"
|
4278 | },
|
4279 | "field": {
|
4280 | "field": "example"
|
4281 | }
|
4282 | },
|
4283 | "didCompile": true,
|
4284 | "fqnsReferenced": [
|
4285 | "@aws-cdk/aws-apigateway.AuthorizationType",
|
4286 | "@aws-cdk/aws-apigateway.AuthorizationType#IAM",
|
4287 | "@aws-cdk/aws-apigateway.HttpIntegration",
|
4288 | "@aws-cdk/aws-apigateway.Integration",
|
4289 | "@aws-cdk/aws-apigateway.Method",
|
4290 | "@aws-cdk/aws-apigateway.MethodOptions",
|
4291 | "@aws-cdk/aws-apigateway.ResourceBase#addMethod",
|
4292 | "@aws-cdk/aws-iam.Effect",
|
4293 | "@aws-cdk/aws-iam.Effect#ALLOW",
|
4294 | "@aws-cdk/aws-iam.Policy",
|
4295 | "@aws-cdk/aws-iam.PolicyProps",
|
4296 | "@aws-cdk/aws-iam.PolicyStatement",
|
4297 | "@aws-cdk/aws-iam.PolicyStatementProps",
|
4298 | "@aws-cdk/aws-iam.User#attachInlinePolicy",
|
4299 | "constructs.Construct"
|
4300 | ],
|
4301 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const books: apigateway.Resource;\ndeclare const iamUser: iam.User;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { Stack } from '@aws-cdk/core';\nimport apigateway = require('@aws-cdk/aws-apigateway');\nimport cognito = require('@aws-cdk/aws-cognito');\nimport lambda = require('@aws-cdk/aws-lambda');\nimport iam = require('@aws-cdk/aws-iam');\nimport s3 = require('@aws-cdk/aws-s3');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport logs = require('@aws-cdk/aws-logs');\nimport stepfunctions = require('@aws-cdk/aws-stepfunctions');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\n\nconst getBooks = books.addMethod('GET', new apigateway.HttpIntegration('http://amazon.com'), {\n authorizationType: apigateway.AuthorizationType.IAM\n});\n\niamUser.attachInlinePolicy(new iam.Policy(this, 'AllowBooks', {\n statements: [\n new iam.PolicyStatement({\n actions: [ 'execute-api:Invoke' ],\n effect: iam.Effect.ALLOW,\n resources: [ getBooks.methodArn ]\n })\n ]\n}))\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
4302 | "syntaxKindCounter": {
|
4303 | "10": 4,
|
4304 | "75": 30,
|
4305 | "104": 1,
|
4306 | "130": 2,
|
4307 | "153": 2,
|
4308 | "169": 2,
|
4309 | "192": 3,
|
4310 | "193": 3,
|
4311 | "194": 10,
|
4312 | "196": 2,
|
4313 | "197": 3,
|
4314 | "225": 3,
|
4315 | "226": 1,
|
4316 | "242": 3,
|
4317 | "243": 3,
|
4318 | "281": 5,
|
4319 | "290": 1
|
4320 | },
|
4321 | "fqnsFingerprint": "f47d460f676cc9a24a67e6172d02ac7b50bce9787f7384bbac3b9e9d9e2e53ba"
|
4322 | },
|
4323 | "355d2161d72557c745af65019fc3b482483644c9e7236a9586fc62fe526e44d7": {
|
4324 | "translations": {
|
4325 | "python": {
|
4326 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_iam as iam\n\n# conditions: Any\n\nfederated_principal = iam.FederatedPrincipal(\"federated\", {\n \"conditions_key\": conditions\n}, \"assumeRoleAction\")",
|
4327 | "version": "2"
|
4328 | },
|
4329 | "csharp": {
|
4330 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.IAM;\n\nvar conditions;\n\nFederatedPrincipal federatedPrincipal = new FederatedPrincipal(\"federated\", new Dictionary<string, object> {\n { \"conditionsKey\", conditions }\n}, \"assumeRoleAction\");",
|
4331 | "version": "1"
|
4332 | },
|
4333 | "java": {
|
4334 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.iam.*;\n\nObject conditions;\n\nFederatedPrincipal federatedPrincipal = new FederatedPrincipal(\"federated\", Map.of(\n \"conditionsKey\", conditions), \"assumeRoleAction\");",
|
4335 | "version": "1"
|
4336 | },
|
4337 | "go": {
|
4338 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport iam \"github.com/aws-samples/dummy/awscdkawsiam\"\n\nvar conditions interface{}\n\nfederatedPrincipal := iam.NewFederatedPrincipal(jsii.String(\"federated\"), map[string]interface{}{\n\t\"conditionsKey\": conditions,\n}, jsii.String(\"assumeRoleAction\"))",
|
4339 | "version": "1"
|
4340 | },
|
4341 | "$": {
|
4342 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\n\ndeclare const conditions: any;\nconst federatedPrincipal = new iam.FederatedPrincipal('federated', {\n conditionsKey: conditions,\n}, /* all optional props */ 'assumeRoleAction');",
|
4343 | "version": "0"
|
4344 | }
|
4345 | },
|
4346 | "location": {
|
4347 | "api": {
|
4348 | "api": "type",
|
4349 | "fqn": "@aws-cdk/aws-iam.FederatedPrincipal"
|
4350 | },
|
4351 | "field": {
|
4352 | "field": "example"
|
4353 | }
|
4354 | },
|
4355 | "didCompile": true,
|
4356 | "fqnsReferenced": [
|
4357 | "@aws-cdk/aws-iam.FederatedPrincipal"
|
4358 | ],
|
4359 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\n\ndeclare const conditions: any;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst federatedPrincipal = new iam.FederatedPrincipal('federated', {\n conditionsKey: conditions,\n}, /* all optional props */ 'assumeRoleAction');\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
4360 | "syntaxKindCounter": {
|
4361 | "10": 3,
|
4362 | "75": 7,
|
4363 | "125": 1,
|
4364 | "130": 1,
|
4365 | "193": 1,
|
4366 | "194": 1,
|
4367 | "197": 1,
|
4368 | "225": 2,
|
4369 | "242": 2,
|
4370 | "243": 2,
|
4371 | "254": 1,
|
4372 | "255": 1,
|
4373 | "256": 1,
|
4374 | "281": 1,
|
4375 | "290": 1
|
4376 | },
|
4377 | "fqnsFingerprint": "889a039fc60ffa22e0e68008c723465732e04c5e1b695c594318ef9cbdc23c39"
|
4378 | },
|
4379 | "d05bf2948294d2983efc44621bbf7cf39a98fd215b8b3579710abc83baf25a65": {
|
4380 | "translations": {
|
4381 | "python": {
|
4382 | "source": "role = iam.Role.from_role_arn(self, \"Role\", \"arn:aws:iam::123456789012:role/MyExistingRole\",\n # Set 'mutable' to 'false' to use the role as-is and prevent adding new\n # policies to it. The default is 'true', which means the role may be\n # modified as part of the deployment.\n mutable=False\n)",
|
4383 | "version": "2"
|
4384 | },
|
4385 | "csharp": {
|
4386 | "source": "IRole role = Role.FromRoleArn(this, \"Role\", \"arn:aws:iam::123456789012:role/MyExistingRole\", new FromRoleArnOptions {\n // Set 'mutable' to 'false' to use the role as-is and prevent adding new\n // policies to it. The default is 'true', which means the role may be\n // modified as part of the deployment.\n Mutable = false\n});",
|
4387 | "version": "1"
|
4388 | },
|
4389 | "java": {
|
4390 | "source": "IRole role = Role.fromRoleArn(this, \"Role\", \"arn:aws:iam::123456789012:role/MyExistingRole\", FromRoleArnOptions.builder()\n // Set 'mutable' to 'false' to use the role as-is and prevent adding new\n // policies to it. The default is 'true', which means the role may be\n // modified as part of the deployment.\n .mutable(false)\n .build());",
|
4391 | "version": "1"
|
4392 | },
|
4393 | "go": {
|
4394 | "source": "role := iam.role.fromRoleArn(this, jsii.String(\"Role\"), jsii.String(\"arn:aws:iam::123456789012:role/MyExistingRole\"), &fromRoleArnOptions{\n\t// Set 'mutable' to 'false' to use the role as-is and prevent adding new\n\t// policies to it. The default is 'true', which means the role may be\n\t// modified as part of the deployment.\n\tmutable: jsii.Boolean(false),\n})",
|
4395 | "version": "1"
|
4396 | },
|
4397 | "$": {
|
4398 | "source": "const role = iam.Role.fromRoleArn(this, 'Role', 'arn:aws:iam::123456789012:role/MyExistingRole', {\n // Set 'mutable' to 'false' to use the role as-is and prevent adding new\n // policies to it. The default is 'true', which means the role may be\n // modified as part of the deployment.\n mutable: false,\n});",
|
4399 | "version": "0"
|
4400 | }
|
4401 | },
|
4402 | "location": {
|
4403 | "api": {
|
4404 | "api": "type",
|
4405 | "fqn": "@aws-cdk/aws-iam.FromRoleArnOptions"
|
4406 | },
|
4407 | "field": {
|
4408 | "field": "example"
|
4409 | }
|
4410 | },
|
4411 | "didCompile": true,
|
4412 | "fqnsReferenced": [
|
4413 | "@aws-cdk/aws-iam.FromRoleArnOptions",
|
4414 | "@aws-cdk/aws-iam.IRole",
|
4415 | "@aws-cdk/aws-iam.Role",
|
4416 | "@aws-cdk/aws-iam.Role#fromRoleArn",
|
4417 | "constructs.Construct"
|
4418 | ],
|
4419 | "fullSource": "import { Construct } from 'constructs';\nimport { CustomResource, Stack } from '@aws-cdk/core';\nimport * as codepipeline from '@aws-cdk/aws-codepipeline';\nimport * as dynamodb from '@aws-cdk/aws-dynamodb';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as iam from '@aws-cdk/aws-iam';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst role = iam.Role.fromRoleArn(this, 'Role', 'arn:aws:iam::123456789012:role/MyExistingRole', {\n // Set 'mutable' to 'false' to use the role as-is and prevent adding new\n // policies to it. The default is 'true', which means the role may be\n // modified as part of the deployment.\n mutable: false,\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
4420 | "syntaxKindCounter": {
|
4421 | "10": 2,
|
4422 | "75": 5,
|
4423 | "91": 1,
|
4424 | "104": 1,
|
4425 | "193": 1,
|
4426 | "194": 2,
|
4427 | "196": 1,
|
4428 | "225": 1,
|
4429 | "242": 1,
|
4430 | "243": 1,
|
4431 | "281": 1
|
4432 | },
|
4433 | "fqnsFingerprint": "63f6edbd79135f6c5ad931e879bbbaa6ef0c5d18a52e97cdf6568cf72c37b438"
|
4434 | },
|
4435 | "782d9612e680e20e0a9fb4f4a7f9550d4907aeaba4459d22247ebaad530c7bde": {
|
4436 | "translations": {
|
4437 | "python": {
|
4438 | "source": "# instance: ec2.Instance\n# volume: ec2.Volume\n\n\nattach_grant = volume.grant_attach_volume_by_resource_tag(instance.grant_principal, [instance])\ndetach_grant = volume.grant_detach_volume_by_resource_tag(instance.grant_principal, [instance])",
|
4439 | "version": "2"
|
4440 | },
|
4441 | "csharp": {
|
4442 | "source": "Instance instance;\nVolume volume;\n\n\nGrant attachGrant = volume.GrantAttachVolumeByResourceTag(instance.GrantPrincipal, new [] { instance });\nGrant detachGrant = volume.GrantDetachVolumeByResourceTag(instance.GrantPrincipal, new [] { instance });",
|
4443 | "version": "1"
|
4444 | },
|
4445 | "java": {
|
4446 | "source": "Instance instance;\nVolume volume;\n\n\nGrant attachGrant = volume.grantAttachVolumeByResourceTag(instance.getGrantPrincipal(), List.of(instance));\nGrant detachGrant = volume.grantDetachVolumeByResourceTag(instance.getGrantPrincipal(), List.of(instance));",
|
4447 | "version": "1"
|
4448 | },
|
4449 | "go": {
|
4450 | "source": "var instance instance\nvar volume volume\n\n\nattachGrant := volume.grantAttachVolumeByResourceTag(instance.grantPrincipal, []construct{\n\tinstance,\n})\ndetachGrant := volume.grantDetachVolumeByResourceTag(instance.grantPrincipal, []construct{\n\tinstance,\n})",
|
4451 | "version": "1"
|
4452 | },
|
4453 | "$": {
|
4454 | "source": "declare const instance: ec2.Instance;\ndeclare const volume: ec2.Volume;\n\nconst attachGrant = volume.grantAttachVolumeByResourceTag(instance.grantPrincipal, [instance]);\nconst detachGrant = volume.grantDetachVolumeByResourceTag(instance.grantPrincipal, [instance]);",
|
4455 | "version": "0"
|
4456 | }
|
4457 | },
|
4458 | "location": {
|
4459 | "api": {
|
4460 | "api": "type",
|
4461 | "fqn": "@aws-cdk/aws-iam.Grant"
|
4462 | },
|
4463 | "field": {
|
4464 | "field": "example"
|
4465 | }
|
4466 | },
|
4467 | "didCompile": true,
|
4468 | "fqnsReferenced": [
|
4469 | "@aws-cdk/aws-ec2.Instance#grantPrincipal",
|
4470 | "@aws-cdk/aws-iam.Grant",
|
4471 | "@aws-cdk/aws-iam.IGrantable"
|
4472 | ],
|
4473 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const instance: ec2.Instance;\ndeclare const volume: ec2.Volume;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Aspects, Construct, Duration, Fn, Size, Stack, StackProps } from '@aws-cdk/core';\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport s3 = require('@aws-cdk/aws-s3');\nimport iam = require('@aws-cdk/aws-iam');\nimport logs = require('@aws-cdk/aws-logs');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport rds = require('@aws-cdk/aws-rds');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\n\nconst attachGrant = volume.grantAttachVolumeByResourceTag(instance.grantPrincipal, [instance]);\nconst detachGrant = volume.grantDetachVolumeByResourceTag(instance.grantPrincipal, [instance]);\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
4474 | "syntaxKindCounter": {
|
4475 | "75": 18,
|
4476 | "130": 2,
|
4477 | "153": 2,
|
4478 | "169": 2,
|
4479 | "192": 2,
|
4480 | "194": 4,
|
4481 | "196": 2,
|
4482 | "225": 4,
|
4483 | "242": 4,
|
4484 | "243": 4,
|
4485 | "290": 1
|
4486 | },
|
4487 | "fqnsFingerprint": "4412e7a916ca37a775babf35a2e7b52f211bfd6f3f4cb782b2a625a451114443"
|
4488 | },
|
4489 | "5b63b48507f493bfdbdc8bd870c7eccf22fe7e76bddc6657d9cf68bc0a823a2a": {
|
4490 | "translations": {
|
4491 | "python": {
|
4492 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_iam as iam\n\n# grantable: iam.IGrantable\n# principal: iam.IPrincipal\n# resource_with_policy: iam.IResourceWithPolicy\n\ngrant_on_principal_and_resource_options = iam.GrantOnPrincipalAndResourceOptions(\n actions=[\"actions\"],\n grantee=grantable,\n resource=resource_with_policy,\n resource_arns=[\"resourceArns\"],\n\n # the properties below are optional\n resource_policy_principal=principal,\n resource_self_arns=[\"resourceSelfArns\"]\n)",
|
4493 | "version": "2"
|
4494 | },
|
4495 | "csharp": {
|
4496 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.IAM;\n\nIGrantable grantable;\nIPrincipal principal;\nIResourceWithPolicy resourceWithPolicy;\n\nGrantOnPrincipalAndResourceOptions grantOnPrincipalAndResourceOptions = new GrantOnPrincipalAndResourceOptions {\n Actions = new [] { \"actions\" },\n Grantee = grantable,\n Resource = resourceWithPolicy,\n ResourceArns = new [] { \"resourceArns\" },\n\n // the properties below are optional\n ResourcePolicyPrincipal = principal,\n ResourceSelfArns = new [] { \"resourceSelfArns\" }\n};",
|
4497 | "version": "1"
|
4498 | },
|
4499 | "java": {
|
4500 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.iam.*;\n\nIGrantable grantable;\nIPrincipal principal;\nIResourceWithPolicy resourceWithPolicy;\n\nGrantOnPrincipalAndResourceOptions grantOnPrincipalAndResourceOptions = GrantOnPrincipalAndResourceOptions.builder()\n .actions(List.of(\"actions\"))\n .grantee(grantable)\n .resource(resourceWithPolicy)\n .resourceArns(List.of(\"resourceArns\"))\n\n // the properties below are optional\n .resourcePolicyPrincipal(principal)\n .resourceSelfArns(List.of(\"resourceSelfArns\"))\n .build();",
|
4501 | "version": "1"
|
4502 | },
|
4503 | "go": {
|
4504 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport iam \"github.com/aws-samples/dummy/awscdkawsiam\"\n\nvar grantable iGrantable\nvar principal iPrincipal\nvar resourceWithPolicy iResourceWithPolicy\n\ngrantOnPrincipalAndResourceOptions := &grantOnPrincipalAndResourceOptions{\n\tactions: []*string{\n\t\tjsii.String(\"actions\"),\n\t},\n\tgrantee: grantable,\n\tresource: resourceWithPolicy,\n\tresourceArns: []*string{\n\t\tjsii.String(\"resourceArns\"),\n\t},\n\n\t// the properties below are optional\n\tresourcePolicyPrincipal: principal,\n\tresourceSelfArns: []*string{\n\t\tjsii.String(\"resourceSelfArns\"),\n\t},\n}",
|
4505 | "version": "1"
|
4506 | },
|
4507 | "$": {
|
4508 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\n\ndeclare const grantable: iam.IGrantable;\ndeclare const principal: iam.IPrincipal;\ndeclare const resourceWithPolicy: iam.IResourceWithPolicy;\nconst grantOnPrincipalAndResourceOptions: iam.GrantOnPrincipalAndResourceOptions = {\n actions: ['actions'],\n grantee: grantable,\n resource: resourceWithPolicy,\n resourceArns: ['resourceArns'],\n\n // the properties below are optional\n resourcePolicyPrincipal: principal,\n resourceSelfArns: ['resourceSelfArns'],\n};",
|
4509 | "version": "0"
|
4510 | }
|
4511 | },
|
4512 | "location": {
|
4513 | "api": {
|
4514 | "api": "type",
|
4515 | "fqn": "@aws-cdk/aws-iam.GrantOnPrincipalAndResourceOptions"
|
4516 | },
|
4517 | "field": {
|
4518 | "field": "example"
|
4519 | }
|
4520 | },
|
4521 | "didCompile": true,
|
4522 | "fqnsReferenced": [
|
4523 | "@aws-cdk/aws-iam.GrantOnPrincipalAndResourceOptions",
|
4524 | "@aws-cdk/aws-iam.IGrantable",
|
4525 | "@aws-cdk/aws-iam.IPrincipal",
|
4526 | "@aws-cdk/aws-iam.IResourceWithPolicy"
|
4527 | ],
|
4528 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\n\ndeclare const grantable: iam.IGrantable;\ndeclare const principal: iam.IPrincipal;\ndeclare const resourceWithPolicy: iam.IResourceWithPolicy;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst grantOnPrincipalAndResourceOptions: iam.GrantOnPrincipalAndResourceOptions = {\n actions: ['actions'],\n grantee: grantable,\n resource: resourceWithPolicy,\n resourceArns: ['resourceArns'],\n\n // the properties below are optional\n resourcePolicyPrincipal: principal,\n resourceSelfArns: ['resourceSelfArns'],\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
4529 | "syntaxKindCounter": {
|
4530 | "10": 4,
|
4531 | "75": 22,
|
4532 | "130": 3,
|
4533 | "153": 4,
|
4534 | "169": 4,
|
4535 | "192": 3,
|
4536 | "193": 1,
|
4537 | "225": 4,
|
4538 | "242": 4,
|
4539 | "243": 4,
|
4540 | "254": 1,
|
4541 | "255": 1,
|
4542 | "256": 1,
|
4543 | "281": 6,
|
4544 | "290": 1
|
4545 | },
|
4546 | "fqnsFingerprint": "c44f33c23c04015a16e922a00527cba920041ecf1a4a7fb73cf074059595db03"
|
4547 | },
|
4548 | "db66c1bcf17ff2afe87ce35bb4f69604fc0f5567171da1ac83332192c29b4b50": {
|
4549 | "translations": {
|
4550 | "python": {
|
4551 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_iam as iam\nimport aws_cdk.core as cdk\n\n# construct: cdk.Construct\n# grantable: iam.IGrantable\n\ngrant_on_principal_options = iam.GrantOnPrincipalOptions(\n actions=[\"actions\"],\n grantee=grantable,\n resource_arns=[\"resourceArns\"],\n\n # the properties below are optional\n scope=construct\n)",
|
4552 | "version": "2"
|
4553 | },
|
4554 | "csharp": {
|
4555 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.IAM;\nusing Amazon.CDK;\n\nConstruct construct;\nIGrantable grantable;\nGrantOnPrincipalOptions grantOnPrincipalOptions = new GrantOnPrincipalOptions {\n Actions = new [] { \"actions\" },\n Grantee = grantable,\n ResourceArns = new [] { \"resourceArns\" },\n\n // the properties below are optional\n Scope = construct\n};",
|
4556 | "version": "1"
|
4557 | },
|
4558 | "java": {
|
4559 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.iam.*;\nimport software.amazon.awscdk.core.*;\n\nConstruct construct;\nIGrantable grantable;\n\nGrantOnPrincipalOptions grantOnPrincipalOptions = GrantOnPrincipalOptions.builder()\n .actions(List.of(\"actions\"))\n .grantee(grantable)\n .resourceArns(List.of(\"resourceArns\"))\n\n // the properties below are optional\n .scope(construct)\n .build();",
|
4560 | "version": "1"
|
4561 | },
|
4562 | "go": {
|
4563 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport iam \"github.com/aws-samples/dummy/awscdkawsiam\"\nimport cdk \"github.com/aws-samples/dummy/awscdkcore\"\n\nvar construct construct\nvar grantable iGrantable\n\ngrantOnPrincipalOptions := &grantOnPrincipalOptions{\n\tactions: []*string{\n\t\tjsii.String(\"actions\"),\n\t},\n\tgrantee: grantable,\n\tresourceArns: []*string{\n\t\tjsii.String(\"resourceArns\"),\n\t},\n\n\t// the properties below are optional\n\tscope: construct,\n}",
|
4564 | "version": "1"
|
4565 | },
|
4566 | "$": {
|
4567 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\nimport * as cdk from '@aws-cdk/core';\n\ndeclare const construct: cdk.Construct;\ndeclare const grantable: iam.IGrantable;\nconst grantOnPrincipalOptions: iam.GrantOnPrincipalOptions = {\n actions: ['actions'],\n grantee: grantable,\n resourceArns: ['resourceArns'],\n\n // the properties below are optional\n scope: construct,\n};",
|
4568 | "version": "0"
|
4569 | }
|
4570 | },
|
4571 | "location": {
|
4572 | "api": {
|
4573 | "api": "type",
|
4574 | "fqn": "@aws-cdk/aws-iam.GrantOnPrincipalOptions"
|
4575 | },
|
4576 | "field": {
|
4577 | "field": "example"
|
4578 | }
|
4579 | },
|
4580 | "didCompile": true,
|
4581 | "fqnsReferenced": [
|
4582 | "@aws-cdk/aws-iam.GrantOnPrincipalOptions",
|
4583 | "@aws-cdk/aws-iam.IGrantable",
|
4584 | "@aws-cdk/core.IConstruct"
|
4585 | ],
|
4586 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\nimport * as cdk from '@aws-cdk/core';\n\ndeclare const construct: cdk.Construct;\ndeclare const grantable: iam.IGrantable;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst grantOnPrincipalOptions: iam.GrantOnPrincipalOptions = {\n actions: ['actions'],\n grantee: grantable,\n resourceArns: ['resourceArns'],\n\n // the properties below are optional\n scope: construct,\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
4587 | "syntaxKindCounter": {
|
4588 | "10": 4,
|
4589 | "75": 17,
|
4590 | "130": 2,
|
4591 | "153": 3,
|
4592 | "169": 3,
|
4593 | "192": 2,
|
4594 | "193": 1,
|
4595 | "225": 3,
|
4596 | "242": 3,
|
4597 | "243": 3,
|
4598 | "254": 2,
|
4599 | "255": 2,
|
4600 | "256": 2,
|
4601 | "281": 4,
|
4602 | "290": 1
|
4603 | },
|
4604 | "fqnsFingerprint": "cb5ebc17b950cc6469f17abbaa3117ae363cb3df8dc165f76f557e544caf2755"
|
4605 | },
|
4606 | "e89fae8971c5beb234c6912e28afb20d1628340acf778fb5845978021fc48949": {
|
4607 | "translations": {
|
4608 | "python": {
|
4609 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_iam as iam\n\n# grantable: iam.IGrantable\n# resource_with_policy: iam.IResourceWithPolicy\n\ngrant_with_resource_options = iam.GrantWithResourceOptions(\n actions=[\"actions\"],\n grantee=grantable,\n resource=resource_with_policy,\n resource_arns=[\"resourceArns\"],\n\n # the properties below are optional\n resource_self_arns=[\"resourceSelfArns\"]\n)",
|
4610 | "version": "2"
|
4611 | },
|
4612 | "csharp": {
|
4613 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.IAM;\n\nIGrantable grantable;\nIResourceWithPolicy resourceWithPolicy;\n\nGrantWithResourceOptions grantWithResourceOptions = new GrantWithResourceOptions {\n Actions = new [] { \"actions\" },\n Grantee = grantable,\n Resource = resourceWithPolicy,\n ResourceArns = new [] { \"resourceArns\" },\n\n // the properties below are optional\n ResourceSelfArns = new [] { \"resourceSelfArns\" }\n};",
|
4614 | "version": "1"
|
4615 | },
|
4616 | "java": {
|
4617 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.iam.*;\n\nIGrantable grantable;\nIResourceWithPolicy resourceWithPolicy;\n\nGrantWithResourceOptions grantWithResourceOptions = GrantWithResourceOptions.builder()\n .actions(List.of(\"actions\"))\n .grantee(grantable)\n .resource(resourceWithPolicy)\n .resourceArns(List.of(\"resourceArns\"))\n\n // the properties below are optional\n .resourceSelfArns(List.of(\"resourceSelfArns\"))\n .build();",
|
4618 | "version": "1"
|
4619 | },
|
4620 | "go": {
|
4621 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport iam \"github.com/aws-samples/dummy/awscdkawsiam\"\n\nvar grantable iGrantable\nvar resourceWithPolicy iResourceWithPolicy\n\ngrantWithResourceOptions := &grantWithResourceOptions{\n\tactions: []*string{\n\t\tjsii.String(\"actions\"),\n\t},\n\tgrantee: grantable,\n\tresource: resourceWithPolicy,\n\tresourceArns: []*string{\n\t\tjsii.String(\"resourceArns\"),\n\t},\n\n\t// the properties below are optional\n\tresourceSelfArns: []*string{\n\t\tjsii.String(\"resourceSelfArns\"),\n\t},\n}",
|
4622 | "version": "1"
|
4623 | },
|
4624 | "$": {
|
4625 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\n\ndeclare const grantable: iam.IGrantable;\ndeclare const resourceWithPolicy: iam.IResourceWithPolicy;\nconst grantWithResourceOptions: iam.GrantWithResourceOptions = {\n actions: ['actions'],\n grantee: grantable,\n resource: resourceWithPolicy,\n resourceArns: ['resourceArns'],\n\n // the properties below are optional\n resourceSelfArns: ['resourceSelfArns'],\n};",
|
4626 | "version": "0"
|
4627 | }
|
4628 | },
|
4629 | "location": {
|
4630 | "api": {
|
4631 | "api": "type",
|
4632 | "fqn": "@aws-cdk/aws-iam.GrantWithResourceOptions"
|
4633 | },
|
4634 | "field": {
|
4635 | "field": "example"
|
4636 | }
|
4637 | },
|
4638 | "didCompile": true,
|
4639 | "fqnsReferenced": [
|
4640 | "@aws-cdk/aws-iam.GrantWithResourceOptions",
|
4641 | "@aws-cdk/aws-iam.IGrantable",
|
4642 | "@aws-cdk/aws-iam.IResourceWithPolicy"
|
4643 | ],
|
4644 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\n\ndeclare const grantable: iam.IGrantable;\ndeclare const resourceWithPolicy: iam.IResourceWithPolicy;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst grantWithResourceOptions: iam.GrantWithResourceOptions = {\n actions: ['actions'],\n grantee: grantable,\n resource: resourceWithPolicy,\n resourceArns: ['resourceArns'],\n\n // the properties below are optional\n resourceSelfArns: ['resourceSelfArns'],\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
4645 | "syntaxKindCounter": {
|
4646 | "10": 4,
|
4647 | "75": 17,
|
4648 | "130": 2,
|
4649 | "153": 3,
|
4650 | "169": 3,
|
4651 | "192": 3,
|
4652 | "193": 1,
|
4653 | "225": 3,
|
4654 | "242": 3,
|
4655 | "243": 3,
|
4656 | "254": 1,
|
4657 | "255": 1,
|
4658 | "256": 1,
|
4659 | "281": 5,
|
4660 | "290": 1
|
4661 | },
|
4662 | "fqnsFingerprint": "c954a064ab48d2e507705300396b078fb40012744a93766faea2c7ebabf08975"
|
4663 | },
|
4664 | "c56e25bbff6744468fedce7771dcf3285e7b51cba10ff5fc8b07691a2da1a256": {
|
4665 | "translations": {
|
4666 | "python": {
|
4667 | "source": "user = iam.User(self, \"MyUser\") # or User.fromUserName(stack, 'User', 'johnsmith');\ngroup = iam.Group(self, \"MyGroup\") # or Group.fromGroupArn(stack, 'Group', 'arn:aws:iam::account-id:group/group-name');\n\nuser.add_to_group(group)\n# or\ngroup.add_user(user)",
|
4668 | "version": "2"
|
4669 | },
|
4670 | "csharp": {
|
4671 | "source": "User user = new User(this, \"MyUser\"); // or User.fromUserName(stack, 'User', 'johnsmith');\nGroup group = new Group(this, \"MyGroup\"); // or Group.fromGroupArn(stack, 'Group', 'arn:aws:iam::account-id:group/group-name');\n\nuser.AddToGroup(group);\n// or\ngroup.AddUser(user);",
|
4672 | "version": "1"
|
4673 | },
|
4674 | "java": {
|
4675 | "source": "User user = new User(this, \"MyUser\"); // or User.fromUserName(stack, 'User', 'johnsmith');\nGroup group = new Group(this, \"MyGroup\"); // or Group.fromGroupArn(stack, 'Group', 'arn:aws:iam::account-id:group/group-name');\n\nuser.addToGroup(group);\n// or\ngroup.addUser(user);",
|
4676 | "version": "1"
|
4677 | },
|
4678 | "go": {
|
4679 | "source": "user := iam.NewUser(this, jsii.String(\"MyUser\")) // or User.fromUserName(stack, 'User', 'johnsmith');\ngroup := iam.NewGroup(this, jsii.String(\"MyGroup\")) // or Group.fromGroupArn(stack, 'Group', 'arn:aws:iam::account-id:group/group-name');\n\nuser.addToGroup(group)\n// or\ngroup.addUser(user)",
|
4680 | "version": "1"
|
4681 | },
|
4682 | "$": {
|
4683 | "source": "const user = new iam.User(this, 'MyUser'); // or User.fromUserName(stack, 'User', 'johnsmith');\nconst group = new iam.Group(this, 'MyGroup'); // or Group.fromGroupArn(stack, 'Group', 'arn:aws:iam::account-id:group/group-name');\n\nuser.addToGroup(group);\n// or\ngroup.addUser(user);",
|
4684 | "version": "0"
|
4685 | }
|
4686 | },
|
4687 | "location": {
|
4688 | "api": {
|
4689 | "api": "type",
|
4690 | "fqn": "@aws-cdk/aws-iam.Group"
|
4691 | },
|
4692 | "field": {
|
4693 | "field": "example"
|
4694 | }
|
4695 | },
|
4696 | "didCompile": true,
|
4697 | "fqnsReferenced": [
|
4698 | "@aws-cdk/aws-iam.Group",
|
4699 | "@aws-cdk/aws-iam.IGroup",
|
4700 | "@aws-cdk/aws-iam.IUser",
|
4701 | "@aws-cdk/aws-iam.User",
|
4702 | "@aws-cdk/aws-iam.User#addToGroup",
|
4703 | "constructs.Construct"
|
4704 | ],
|
4705 | "fullSource": "import { Construct } from 'constructs';\nimport { CustomResource, Stack } from '@aws-cdk/core';\nimport * as codepipeline from '@aws-cdk/aws-codepipeline';\nimport * as dynamodb from '@aws-cdk/aws-dynamodb';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as iam from '@aws-cdk/aws-iam';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst user = new iam.User(this, 'MyUser'); // or User.fromUserName(stack, 'User', 'johnsmith');\nconst group = new iam.Group(this, 'MyGroup'); // or Group.fromGroupArn(stack, 'Group', 'arn:aws:iam::account-id:group/group-name');\n\nuser.addToGroup(group);\n// or\ngroup.addUser(user);\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
4706 | "syntaxKindCounter": {
|
4707 | "10": 2,
|
4708 | "75": 12,
|
4709 | "104": 2,
|
4710 | "194": 4,
|
4711 | "196": 2,
|
4712 | "197": 2,
|
4713 | "225": 2,
|
4714 | "226": 2,
|
4715 | "242": 2,
|
4716 | "243": 2
|
4717 | },
|
4718 | "fqnsFingerprint": "248668b26037e978b96fac1fa9cfc2310d58ec2ed3e43e2a0b0b1bb5abd0fadc"
|
4719 | },
|
4720 | "a74d4d0ebf5364ee72b1b7161a36fc273579aabdb28c91ace98cb4b3db0113f7": {
|
4721 | "translations": {
|
4722 | "python": {
|
4723 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_iam as iam\n\n# managed_policy: iam.ManagedPolicy\n\ngroup_props = iam.GroupProps(\n group_name=\"groupName\",\n managed_policies=[managed_policy],\n path=\"path\"\n)",
|
4724 | "version": "2"
|
4725 | },
|
4726 | "csharp": {
|
4727 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.IAM;\n\nManagedPolicy managedPolicy;\n\nGroupProps groupProps = new GroupProps {\n GroupName = \"groupName\",\n ManagedPolicies = new [] { managedPolicy },\n Path = \"path\"\n};",
|
4728 | "version": "1"
|
4729 | },
|
4730 | "java": {
|
4731 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.iam.*;\n\nManagedPolicy managedPolicy;\n\nGroupProps groupProps = GroupProps.builder()\n .groupName(\"groupName\")\n .managedPolicies(List.of(managedPolicy))\n .path(\"path\")\n .build();",
|
4732 | "version": "1"
|
4733 | },
|
4734 | "go": {
|
4735 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport iam \"github.com/aws-samples/dummy/awscdkawsiam\"\n\nvar managedPolicy managedPolicy\n\ngroupProps := &groupProps{\n\tgroupName: jsii.String(\"groupName\"),\n\tmanagedPolicies: []iManagedPolicy{\n\t\tmanagedPolicy,\n\t},\n\tpath: jsii.String(\"path\"),\n}",
|
4736 | "version": "1"
|
4737 | },
|
4738 | "$": {
|
4739 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\n\ndeclare const managedPolicy: iam.ManagedPolicy;\nconst groupProps: iam.GroupProps = {\n groupName: 'groupName',\n managedPolicies: [managedPolicy],\n path: 'path',\n};",
|
4740 | "version": "0"
|
4741 | }
|
4742 | },
|
4743 | "location": {
|
4744 | "api": {
|
4745 | "api": "type",
|
4746 | "fqn": "@aws-cdk/aws-iam.GroupProps"
|
4747 | },
|
4748 | "field": {
|
4749 | "field": "example"
|
4750 | }
|
4751 | },
|
4752 | "didCompile": true,
|
4753 | "fqnsReferenced": [
|
4754 | "@aws-cdk/aws-iam.GroupProps"
|
4755 | ],
|
4756 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\n\ndeclare const managedPolicy: iam.ManagedPolicy;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst groupProps: iam.GroupProps = {\n groupName: 'groupName',\n managedPolicies: [managedPolicy],\n path: 'path',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
4757 | "syntaxKindCounter": {
|
4758 | "10": 3,
|
4759 | "75": 11,
|
4760 | "130": 1,
|
4761 | "153": 2,
|
4762 | "169": 2,
|
4763 | "192": 1,
|
4764 | "193": 1,
|
4765 | "225": 2,
|
4766 | "242": 2,
|
4767 | "243": 2,
|
4768 | "254": 1,
|
4769 | "255": 1,
|
4770 | "256": 1,
|
4771 | "281": 3,
|
4772 | "290": 1
|
4773 | },
|
4774 | "fqnsFingerprint": "b82e9a7ed5a7b831914a9aefd1cc955eac238897f046a27d9fff43584973aa41"
|
4775 | },
|
4776 | "76a3161a9bb8ff4859f7c01812f2bd72fe282efa38aa89b5d7f361a643f737a0": {
|
4777 | "translations": {
|
4778 | "python": {
|
4779 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_iam as iam\nimport aws_cdk.core as cdk\n\n# managed_policy: iam.ManagedPolicy\n# policy_document: iam.PolicyDocument\n# principal: iam.IPrincipal\n\nlazy_role = iam.LazyRole(self, \"MyLazyRole\",\n assumed_by=principal,\n\n # the properties below are optional\n description=\"description\",\n external_id=\"externalId\",\n external_ids=[\"externalIds\"],\n inline_policies={\n \"inline_policies_key\": policy_document\n },\n managed_policies=[managed_policy],\n max_session_duration=cdk.Duration.minutes(30),\n path=\"path\",\n permissions_boundary=managed_policy,\n role_name=\"roleName\"\n)",
|
4780 | "version": "2"
|
4781 | },
|
4782 | "csharp": {
|
4783 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.IAM;\nusing Amazon.CDK;\n\nManagedPolicy managedPolicy;\nPolicyDocument policyDocument;\nIPrincipal principal;\nLazyRole lazyRole = new LazyRole(this, \"MyLazyRole\", new LazyRoleProps {\n AssumedBy = principal,\n\n // the properties below are optional\n Description = \"description\",\n ExternalId = \"externalId\",\n ExternalIds = new [] { \"externalIds\" },\n InlinePolicies = new Dictionary<string, PolicyDocument> {\n { \"inlinePoliciesKey\", policyDocument }\n },\n ManagedPolicies = new [] { managedPolicy },\n MaxSessionDuration = Duration.Minutes(30),\n Path = \"path\",\n PermissionsBoundary = managedPolicy,\n RoleName = \"roleName\"\n});",
|
4784 | "version": "1"
|
4785 | },
|
4786 | "java": {
|
4787 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.iam.*;\nimport software.amazon.awscdk.core.*;\n\nManagedPolicy managedPolicy;\nPolicyDocument policyDocument;\nIPrincipal principal;\n\nLazyRole lazyRole = LazyRole.Builder.create(this, \"MyLazyRole\")\n .assumedBy(principal)\n\n // the properties below are optional\n .description(\"description\")\n .externalId(\"externalId\")\n .externalIds(List.of(\"externalIds\"))\n .inlinePolicies(Map.of(\n \"inlinePoliciesKey\", policyDocument))\n .managedPolicies(List.of(managedPolicy))\n .maxSessionDuration(Duration.minutes(30))\n .path(\"path\")\n .permissionsBoundary(managedPolicy)\n .roleName(\"roleName\")\n .build();",
|
4788 | "version": "1"
|
4789 | },
|
4790 | "go": {
|
4791 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport iam \"github.com/aws-samples/dummy/awscdkawsiam\"\nimport cdk \"github.com/aws-samples/dummy/awscdkcore\"\n\nvar managedPolicy managedPolicy\nvar policyDocument policyDocument\nvar principal iPrincipal\n\nlazyRole := iam.NewLazyRole(this, jsii.String(\"MyLazyRole\"), &lazyRoleProps{\n\tassumedBy: principal,\n\n\t// the properties below are optional\n\tdescription: jsii.String(\"description\"),\n\texternalId: jsii.String(\"externalId\"),\n\texternalIds: []*string{\n\t\tjsii.String(\"externalIds\"),\n\t},\n\tinlinePolicies: map[string]*policyDocument{\n\t\t\"inlinePoliciesKey\": policyDocument,\n\t},\n\tmanagedPolicies: []iManagedPolicy{\n\t\tmanagedPolicy,\n\t},\n\tmaxSessionDuration: cdk.duration.minutes(jsii.Number(30)),\n\tpath: jsii.String(\"path\"),\n\tpermissionsBoundary: managedPolicy,\n\troleName: jsii.String(\"roleName\"),\n})",
|
4792 | "version": "1"
|
4793 | },
|
4794 | "$": {
|
4795 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\nimport * as cdk from '@aws-cdk/core';\n\ndeclare const managedPolicy: iam.ManagedPolicy;\ndeclare const policyDocument: iam.PolicyDocument;\ndeclare const principal: iam.IPrincipal;\nconst lazyRole = new iam.LazyRole(this, 'MyLazyRole', {\n assumedBy: principal,\n\n // the properties below are optional\n description: 'description',\n externalId: 'externalId',\n externalIds: ['externalIds'],\n inlinePolicies: {\n inlinePoliciesKey: policyDocument,\n },\n managedPolicies: [managedPolicy],\n maxSessionDuration: cdk.Duration.minutes(30),\n path: 'path',\n permissionsBoundary: managedPolicy,\n roleName: 'roleName',\n});",
|
4796 | "version": "0"
|
4797 | }
|
4798 | },
|
4799 | "location": {
|
4800 | "api": {
|
4801 | "api": "type",
|
4802 | "fqn": "@aws-cdk/aws-iam.LazyRole"
|
4803 | },
|
4804 | "field": {
|
4805 | "field": "example"
|
4806 | }
|
4807 | },
|
4808 | "didCompile": true,
|
4809 | "fqnsReferenced": [
|
4810 | "@aws-cdk/aws-iam.IManagedPolicy",
|
4811 | "@aws-cdk/aws-iam.IPrincipal",
|
4812 | "@aws-cdk/aws-iam.LazyRole",
|
4813 | "@aws-cdk/aws-iam.LazyRoleProps",
|
4814 | "@aws-cdk/aws-iam.PolicyDocument",
|
4815 | "@aws-cdk/core.Duration",
|
4816 | "@aws-cdk/core.Duration#minutes",
|
4817 | "constructs.Construct"
|
4818 | ],
|
4819 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\nimport * as cdk from '@aws-cdk/core';\n\ndeclare const managedPolicy: iam.ManagedPolicy;\ndeclare const policyDocument: iam.PolicyDocument;\ndeclare const principal: iam.IPrincipal;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst lazyRole = new iam.LazyRole(this, 'MyLazyRole', {\n assumedBy: principal,\n\n // the properties below are optional\n description: 'description',\n externalId: 'externalId',\n externalIds: ['externalIds'],\n inlinePolicies: {\n inlinePoliciesKey: policyDocument,\n },\n managedPolicies: [managedPolicy],\n maxSessionDuration: cdk.Duration.minutes(30),\n path: 'path',\n permissionsBoundary: managedPolicy,\n roleName: 'roleName',\n});\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
4820 | "syntaxKindCounter": {
|
4821 | "8": 1,
|
4822 | "10": 8,
|
4823 | "75": 32,
|
4824 | "104": 1,
|
4825 | "130": 3,
|
4826 | "153": 3,
|
4827 | "169": 3,
|
4828 | "192": 2,
|
4829 | "193": 2,
|
4830 | "194": 3,
|
4831 | "196": 1,
|
4832 | "197": 1,
|
4833 | "225": 4,
|
4834 | "242": 4,
|
4835 | "243": 4,
|
4836 | "254": 2,
|
4837 | "255": 2,
|
4838 | "256": 2,
|
4839 | "281": 11,
|
4840 | "290": 1
|
4841 | },
|
4842 | "fqnsFingerprint": "9b0a5b36558c14e3c6a75301ec5fb514e175a6ac8ecf6e22d8bab97563ea9ef9"
|
4843 | },
|
4844 | "3be057b96b2c73282d6fb41caa3e990f96a764906dba6ce3ebc123ee43dfec1e": {
|
4845 | "translations": {
|
4846 | "python": {
|
4847 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_iam as iam\nimport aws_cdk.core as cdk\n\n# managed_policy: iam.ManagedPolicy\n# policy_document: iam.PolicyDocument\n# principal: iam.IPrincipal\n\nlazy_role_props = iam.LazyRoleProps(\n assumed_by=principal,\n\n # the properties below are optional\n description=\"description\",\n external_id=\"externalId\",\n external_ids=[\"externalIds\"],\n inline_policies={\n \"inline_policies_key\": policy_document\n },\n managed_policies=[managed_policy],\n max_session_duration=cdk.Duration.minutes(30),\n path=\"path\",\n permissions_boundary=managed_policy,\n role_name=\"roleName\"\n)",
|
4848 | "version": "2"
|
4849 | },
|
4850 | "csharp": {
|
4851 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.IAM;\nusing Amazon.CDK;\n\nManagedPolicy managedPolicy;\nPolicyDocument policyDocument;\nIPrincipal principal;\nLazyRoleProps lazyRoleProps = new LazyRoleProps {\n AssumedBy = principal,\n\n // the properties below are optional\n Description = \"description\",\n ExternalId = \"externalId\",\n ExternalIds = new [] { \"externalIds\" },\n InlinePolicies = new Dictionary<string, PolicyDocument> {\n { \"inlinePoliciesKey\", policyDocument }\n },\n ManagedPolicies = new [] { managedPolicy },\n MaxSessionDuration = Duration.Minutes(30),\n Path = \"path\",\n PermissionsBoundary = managedPolicy,\n RoleName = \"roleName\"\n};",
|
4852 | "version": "1"
|
4853 | },
|
4854 | "java": {
|
4855 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.iam.*;\nimport software.amazon.awscdk.core.*;\n\nManagedPolicy managedPolicy;\nPolicyDocument policyDocument;\nIPrincipal principal;\n\nLazyRoleProps lazyRoleProps = LazyRoleProps.builder()\n .assumedBy(principal)\n\n // the properties below are optional\n .description(\"description\")\n .externalId(\"externalId\")\n .externalIds(List.of(\"externalIds\"))\n .inlinePolicies(Map.of(\n \"inlinePoliciesKey\", policyDocument))\n .managedPolicies(List.of(managedPolicy))\n .maxSessionDuration(Duration.minutes(30))\n .path(\"path\")\n .permissionsBoundary(managedPolicy)\n .roleName(\"roleName\")\n .build();",
|
4856 | "version": "1"
|
4857 | },
|
4858 | "go": {
|
4859 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport iam \"github.com/aws-samples/dummy/awscdkawsiam\"\nimport cdk \"github.com/aws-samples/dummy/awscdkcore\"\n\nvar managedPolicy managedPolicy\nvar policyDocument policyDocument\nvar principal iPrincipal\n\nlazyRoleProps := &lazyRoleProps{\n\tassumedBy: principal,\n\n\t// the properties below are optional\n\tdescription: jsii.String(\"description\"),\n\texternalId: jsii.String(\"externalId\"),\n\texternalIds: []*string{\n\t\tjsii.String(\"externalIds\"),\n\t},\n\tinlinePolicies: map[string]*policyDocument{\n\t\t\"inlinePoliciesKey\": policyDocument,\n\t},\n\tmanagedPolicies: []iManagedPolicy{\n\t\tmanagedPolicy,\n\t},\n\tmaxSessionDuration: cdk.duration.minutes(jsii.Number(30)),\n\tpath: jsii.String(\"path\"),\n\tpermissionsBoundary: managedPolicy,\n\troleName: jsii.String(\"roleName\"),\n}",
|
4860 | "version": "1"
|
4861 | },
|
4862 | "$": {
|
4863 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\nimport * as cdk from '@aws-cdk/core';\n\ndeclare const managedPolicy: iam.ManagedPolicy;\ndeclare const policyDocument: iam.PolicyDocument;\ndeclare const principal: iam.IPrincipal;\nconst lazyRoleProps: iam.LazyRoleProps = {\n assumedBy: principal,\n\n // the properties below are optional\n description: 'description',\n externalId: 'externalId',\n externalIds: ['externalIds'],\n inlinePolicies: {\n inlinePoliciesKey: policyDocument,\n },\n managedPolicies: [managedPolicy],\n maxSessionDuration: cdk.Duration.minutes(30),\n path: 'path',\n permissionsBoundary: managedPolicy,\n roleName: 'roleName',\n};",
|
4864 | "version": "0"
|
4865 | }
|
4866 | },
|
4867 | "location": {
|
4868 | "api": {
|
4869 | "api": "type",
|
4870 | "fqn": "@aws-cdk/aws-iam.LazyRoleProps"
|
4871 | },
|
4872 | "field": {
|
4873 | "field": "example"
|
4874 | }
|
4875 | },
|
4876 | "didCompile": true,
|
4877 | "fqnsReferenced": [
|
4878 | "@aws-cdk/aws-iam.IManagedPolicy",
|
4879 | "@aws-cdk/aws-iam.IPrincipal",
|
4880 | "@aws-cdk/aws-iam.LazyRoleProps",
|
4881 | "@aws-cdk/aws-iam.PolicyDocument",
|
4882 | "@aws-cdk/core.Duration",
|
4883 | "@aws-cdk/core.Duration#minutes"
|
4884 | ],
|
4885 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\nimport * as cdk from '@aws-cdk/core';\n\ndeclare const managedPolicy: iam.ManagedPolicy;\ndeclare const policyDocument: iam.PolicyDocument;\ndeclare const principal: iam.IPrincipal;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst lazyRoleProps: iam.LazyRoleProps = {\n assumedBy: principal,\n\n // the properties below are optional\n description: 'description',\n externalId: 'externalId',\n externalIds: ['externalIds'],\n inlinePolicies: {\n inlinePoliciesKey: policyDocument,\n },\n managedPolicies: [managedPolicy],\n maxSessionDuration: cdk.Duration.minutes(30),\n path: 'path',\n permissionsBoundary: managedPolicy,\n roleName: 'roleName',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
4886 | "syntaxKindCounter": {
|
4887 | "8": 1,
|
4888 | "10": 7,
|
4889 | "75": 32,
|
4890 | "130": 3,
|
4891 | "153": 4,
|
4892 | "169": 4,
|
4893 | "192": 2,
|
4894 | "193": 2,
|
4895 | "194": 2,
|
4896 | "196": 1,
|
4897 | "225": 4,
|
4898 | "242": 4,
|
4899 | "243": 4,
|
4900 | "254": 2,
|
4901 | "255": 2,
|
4902 | "256": 2,
|
4903 | "281": 11,
|
4904 | "290": 1
|
4905 | },
|
4906 | "fqnsFingerprint": "abb37d3175376c1931e5c7c60c04ca47f46b85c7f3fa40ba64049d190e3ca56e"
|
4907 | },
|
4908 | "597ff8144b275ce74a6c4e2e6b1ba9b1321228792f26aaed988e568133ab9e45": {
|
4909 | "translations": {
|
4910 | "python": {
|
4911 | "source": "my_role = iam.Role(self, \"My Role\",\n assumed_by=iam.ServicePrincipal(\"sns.amazonaws.com\")\n)\n\nfn = lambda_.Function(self, \"MyFunction\",\n runtime=lambda_.Runtime.NODEJS_16_X,\n handler=\"index.handler\",\n code=lambda_.Code.from_asset(path.join(__dirname, \"lambda-handler\")),\n role=my_role\n)\n\nmy_role.add_managed_policy(iam.ManagedPolicy.from_aws_managed_policy_name(\"service-role/AWSLambdaBasicExecutionRole\"))\nmy_role.add_managed_policy(iam.ManagedPolicy.from_aws_managed_policy_name(\"service-role/AWSLambdaVPCAccessExecutionRole\"))",
|
4912 | "version": "2"
|
4913 | },
|
4914 | "csharp": {
|
4915 | "source": "Role myRole = new Role(this, \"My Role\", new RoleProps {\n AssumedBy = new ServicePrincipal(\"sns.amazonaws.com\")\n});\n\nFunction fn = new Function(this, \"MyFunction\", new FunctionProps {\n Runtime = Runtime.NODEJS_16_X,\n Handler = \"index.handler\",\n Code = Code.FromAsset(Join(__dirname, \"lambda-handler\")),\n Role = myRole\n});\n\nmyRole.AddManagedPolicy(ManagedPolicy.FromAwsManagedPolicyName(\"service-role/AWSLambdaBasicExecutionRole\"));\nmyRole.AddManagedPolicy(ManagedPolicy.FromAwsManagedPolicyName(\"service-role/AWSLambdaVPCAccessExecutionRole\"));",
|
4916 | "version": "1"
|
4917 | },
|
4918 | "java": {
|
4919 | "source": "Role myRole = Role.Builder.create(this, \"My Role\")\n .assumedBy(new ServicePrincipal(\"sns.amazonaws.com\"))\n .build();\n\nFunction fn = Function.Builder.create(this, \"MyFunction\")\n .runtime(Runtime.NODEJS_16_X)\n .handler(\"index.handler\")\n .code(Code.fromAsset(join(__dirname, \"lambda-handler\")))\n .role(myRole)\n .build();\n\nmyRole.addManagedPolicy(ManagedPolicy.fromAwsManagedPolicyName(\"service-role/AWSLambdaBasicExecutionRole\"));\nmyRole.addManagedPolicy(ManagedPolicy.fromAwsManagedPolicyName(\"service-role/AWSLambdaVPCAccessExecutionRole\"));",
|
4920 | "version": "1"
|
4921 | },
|
4922 | "go": {
|
4923 | "source": "myRole := iam.NewRole(this, jsii.String(\"My Role\"), &roleProps{\n\tassumedBy: iam.NewServicePrincipal(jsii.String(\"sns.amazonaws.com\")),\n})\n\nfn := lambda.NewFunction(this, jsii.String(\"MyFunction\"), &functionProps{\n\truntime: lambda.runtime_NODEJS_16_X(),\n\thandler: jsii.String(\"index.handler\"),\n\tcode: lambda.code.fromAsset(path.join(__dirname, jsii.String(\"lambda-handler\"))),\n\trole: myRole,\n})\n\nmyRole.addManagedPolicy(iam.managedPolicy.fromAwsManagedPolicyName(jsii.String(\"service-role/AWSLambdaBasicExecutionRole\")))\nmyRole.addManagedPolicy(iam.managedPolicy.fromAwsManagedPolicyName(jsii.String(\"service-role/AWSLambdaVPCAccessExecutionRole\")))",
|
4924 | "version": "1"
|
4925 | },
|
4926 | "$": {
|
4927 | "source": "const myRole = new iam.Role(this, 'My Role', {\n assumedBy: new iam.ServicePrincipal('sns.amazonaws.com'),\n});\n\nconst fn = new lambda.Function(this, 'MyFunction', {\n runtime: lambda.Runtime.NODEJS_16_X,\n handler: 'index.handler',\n code: lambda.Code.fromAsset(path.join(__dirname, 'lambda-handler')),\n role: myRole, // user-provided role\n});\n\nmyRole.addManagedPolicy(iam.ManagedPolicy.fromAwsManagedPolicyName(\"service-role/AWSLambdaBasicExecutionRole\"));\nmyRole.addManagedPolicy(iam.ManagedPolicy.fromAwsManagedPolicyName(\"service-role/AWSLambdaVPCAccessExecutionRole\")); // only required if your function lives in a VPC",
|
4928 | "version": "0"
|
4929 | }
|
4930 | },
|
4931 | "location": {
|
4932 | "api": {
|
4933 | "api": "type",
|
4934 | "fqn": "@aws-cdk/aws-iam.ManagedPolicy"
|
4935 | },
|
4936 | "field": {
|
4937 | "field": "example"
|
4938 | }
|
4939 | },
|
4940 | "didCompile": true,
|
4941 | "fqnsReferenced": [
|
4942 | "@aws-cdk/aws-iam.IManagedPolicy",
|
4943 | "@aws-cdk/aws-iam.IPrincipal",
|
4944 | "@aws-cdk/aws-iam.IRole",
|
4945 | "@aws-cdk/aws-iam.ManagedPolicy",
|
4946 | "@aws-cdk/aws-iam.ManagedPolicy#fromAwsManagedPolicyName",
|
4947 | "@aws-cdk/aws-iam.Role",
|
4948 | "@aws-cdk/aws-iam.Role#addManagedPolicy",
|
4949 | "@aws-cdk/aws-iam.RoleProps",
|
4950 | "@aws-cdk/aws-iam.ServicePrincipal",
|
4951 | "@aws-cdk/aws-lambda.Code",
|
4952 | "@aws-cdk/aws-lambda.Code#fromAsset",
|
4953 | "@aws-cdk/aws-lambda.Function",
|
4954 | "@aws-cdk/aws-lambda.FunctionProps",
|
4955 | "@aws-cdk/aws-lambda.Runtime",
|
4956 | "@aws-cdk/aws-lambda.Runtime#NODEJS_16_X",
|
4957 | "constructs.Construct"
|
4958 | ],
|
4959 | "fullSource": "// Fixture with packages imported, but nothing else\nimport * as path from 'path';\nimport { Construct } from 'constructs';\nimport { CfnOutput, DockerImage, Duration, RemovalPolicy, Stack } from '@aws-cdk/core';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as iam from '@aws-cdk/aws-iam';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst myRole = new iam.Role(this, 'My Role', {\n assumedBy: new iam.ServicePrincipal('sns.amazonaws.com'),\n});\n\nconst fn = new lambda.Function(this, 'MyFunction', {\n runtime: lambda.Runtime.NODEJS_16_X,\n handler: 'index.handler',\n code: lambda.Code.fromAsset(path.join(__dirname, 'lambda-handler')),\n role: myRole, // user-provided role\n});\n\nmyRole.addManagedPolicy(iam.ManagedPolicy.fromAwsManagedPolicyName(\"service-role/AWSLambdaBasicExecutionRole\"));\nmyRole.addManagedPolicy(iam.ManagedPolicy.fromAwsManagedPolicyName(\"service-role/AWSLambdaVPCAccessExecutionRole\"));\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
4960 | "syntaxKindCounter": {
|
4961 | "10": 7,
|
4962 | "75": 33,
|
4963 | "104": 2,
|
4964 | "193": 2,
|
4965 | "194": 14,
|
4966 | "196": 6,
|
4967 | "197": 3,
|
4968 | "225": 2,
|
4969 | "226": 2,
|
4970 | "242": 2,
|
4971 | "243": 2,
|
4972 | "281": 5
|
4973 | },
|
4974 | "fqnsFingerprint": "74d76fbd8266a48300dd7832e43d5f71896f1a7ce670f75af10ea6f7805e43ad"
|
4975 | },
|
4976 | "c8e29824dcd43dfee04d20cbefa8d7b74b41d0cf915b704958888dc6f895fad8": {
|
4977 | "translations": {
|
4978 | "python": {
|
4979 | "source": "policy_document = {\n \"Version\": \"2012-10-17\",\n \"Statement\": [{\n \"Sid\": \"FirstStatement\",\n \"Effect\": \"Allow\",\n \"Action\": [\"iam:ChangePassword\"],\n \"Resource\": \"*\"\n }, {\n \"Sid\": \"SecondStatement\",\n \"Effect\": \"Allow\",\n \"Action\": \"s3:ListAllMyBuckets\",\n \"Resource\": \"*\"\n }, {\n \"Sid\": \"ThirdStatement\",\n \"Effect\": \"Allow\",\n \"Action\": [\"s3:List*\", \"s3:Get*\"\n ],\n \"Resource\": [\"arn:aws:s3:::confidential-data\", \"arn:aws:s3:::confidential-data/*\"\n ],\n \"Condition\": {\"Bool\": {\"aws:_multi_factor_auth_present\": \"true\"}}\n }\n ]\n}\n\ncustom_policy_document = iam.PolicyDocument.from_json(policy_document)\n\n# You can pass this document as an initial document to a ManagedPolicy\n# or inline Policy.\nnew_managed_policy = iam.ManagedPolicy(self, \"MyNewManagedPolicy\",\n document=custom_policy_document\n)\nnew_policy = iam.Policy(self, \"MyNewPolicy\",\n document=custom_policy_document\n)",
|
4980 | "version": "2"
|
4981 | },
|
4982 | "csharp": {
|
4983 | "source": "IDictionary<string, object> policyDocument = new Dictionary<string, object> {\n { \"Version\", \"2012-10-17\" },\n { \"Statement\", new [] { new Dictionary<string, object> {\n { \"Sid\", \"FirstStatement\" },\n { \"Effect\", \"Allow\" },\n { \"Action\", new [] { \"iam:ChangePassword\" } },\n { \"Resource\", \"*\" }\n }, new Dictionary<string, string> {\n { \"Sid\", \"SecondStatement\" },\n { \"Effect\", \"Allow\" },\n { \"Action\", \"s3:ListAllMyBuckets\" },\n { \"Resource\", \"*\" }\n }, new Dictionary<string, object> {\n { \"Sid\", \"ThirdStatement\" },\n { \"Effect\", \"Allow\" },\n { \"Action\", new [] { \"s3:List*\", \"s3:Get*\" } },\n { \"Resource\", new [] { \"arn:aws:s3:::confidential-data\", \"arn:aws:s3:::confidential-data/*\" } },\n { \"Condition\", new Dictionary<string, IDictionary<string, string>> { { \"Bool\", new Dictionary<string, string> { { \"aws:MultiFactorAuthPresent\", \"true\" } } } } }\n } } }\n};\n\nPolicyDocument customPolicyDocument = PolicyDocument.FromJson(policyDocument);\n\n// You can pass this document as an initial document to a ManagedPolicy\n// or inline Policy.\nManagedPolicy newManagedPolicy = new ManagedPolicy(this, \"MyNewManagedPolicy\", new ManagedPolicyProps {\n Document = customPolicyDocument\n});\nPolicy newPolicy = new Policy(this, \"MyNewPolicy\", new PolicyProps {\n Document = customPolicyDocument\n});",
|
4984 | "version": "1"
|
4985 | },
|
4986 | "java": {
|
4987 | "source": "Map<String, Object> policyDocument = Map.of(\n \"Version\", \"2012-10-17\",\n \"Statement\", List.of(Map.of(\n \"Sid\", \"FirstStatement\",\n \"Effect\", \"Allow\",\n \"Action\", List.of(\"iam:ChangePassword\"),\n \"Resource\", \"*\"), Map.of(\n \"Sid\", \"SecondStatement\",\n \"Effect\", \"Allow\",\n \"Action\", \"s3:ListAllMyBuckets\",\n \"Resource\", \"*\"), Map.of(\n \"Sid\", \"ThirdStatement\",\n \"Effect\", \"Allow\",\n \"Action\", List.of(\"s3:List*\", \"s3:Get*\"),\n \"Resource\", List.of(\"arn:aws:s3:::confidential-data\", \"arn:aws:s3:::confidential-data/*\"),\n \"Condition\", Map.of(\"Bool\", Map.of(\"aws:MultiFactorAuthPresent\", \"true\")))));\n\nPolicyDocument customPolicyDocument = PolicyDocument.fromJson(policyDocument);\n\n// You can pass this document as an initial document to a ManagedPolicy\n// or inline Policy.\nManagedPolicy newManagedPolicy = ManagedPolicy.Builder.create(this, \"MyNewManagedPolicy\")\n .document(customPolicyDocument)\n .build();\nPolicy newPolicy = Policy.Builder.create(this, \"MyNewPolicy\")\n .document(customPolicyDocument)\n .build();",
|
4988 | "version": "1"
|
4989 | },
|
4990 | "go": {
|
4991 | "source": "policyDocument := map[string]interface{}{\n\t\"Version\": jsii.String(\"2012-10-17\"),\n\t\"Statement\": []interface{}{\n\t\tmap[string]interface{}{\n\t\t\t\"Sid\": jsii.String(\"FirstStatement\"),\n\t\t\t\"Effect\": jsii.String(\"Allow\"),\n\t\t\t\"Action\": []*string{\n\t\t\t\tjsii.String(\"iam:ChangePassword\"),\n\t\t\t},\n\t\t\t\"Resource\": jsii.String(\"*\"),\n\t\t},\n\t\tmap[string]*string{\n\t\t\t\"Sid\": jsii.String(\"SecondStatement\"),\n\t\t\t\"Effect\": jsii.String(\"Allow\"),\n\t\t\t\"Action\": jsii.String(\"s3:ListAllMyBuckets\"),\n\t\t\t\"Resource\": jsii.String(\"*\"),\n\t\t},\n\t\tmap[string]interface{}{\n\t\t\t\"Sid\": jsii.String(\"ThirdStatement\"),\n\t\t\t\"Effect\": jsii.String(\"Allow\"),\n\t\t\t\"Action\": []*string{\n\t\t\t\tjsii.String(\"s3:List*\"),\n\t\t\t\tjsii.String(\"s3:Get*\"),\n\t\t\t},\n\t\t\t\"Resource\": []*string{\n\t\t\t\tjsii.String(\"arn:aws:s3:::confidential-data\"),\n\t\t\t\tjsii.String(\"arn:aws:s3:::confidential-data/*\"),\n\t\t\t},\n\t\t\t\"Condition\": map[string]map[string]*string{\n\t\t\t\t\"Bool\": map[string]*string{\n\t\t\t\t\t\"aws:MultiFactorAuthPresent\": jsii.String(\"true\"),\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t},\n}\n\ncustomPolicyDocument := iam.policyDocument.fromJson(policyDocument)\n\n// You can pass this document as an initial document to a ManagedPolicy\n// or inline Policy.\nnewManagedPolicy := iam.NewManagedPolicy(this, jsii.String(\"MyNewManagedPolicy\"), &managedPolicyProps{\n\tdocument: customPolicyDocument,\n})\nnewPolicy := iam.NewPolicy(this, jsii.String(\"MyNewPolicy\"), &policyProps{\n\tdocument: customPolicyDocument,\n})",
|
4992 | "version": "1"
|
4993 | },
|
4994 | "$": {
|
4995 | "source": "const policyDocument = {\n \"Version\": \"2012-10-17\",\n \"Statement\": [\n {\n \"Sid\": \"FirstStatement\",\n \"Effect\": \"Allow\",\n \"Action\": [\"iam:ChangePassword\"],\n \"Resource\": \"*\"\n },\n {\n \"Sid\": \"SecondStatement\",\n \"Effect\": \"Allow\",\n \"Action\": \"s3:ListAllMyBuckets\",\n \"Resource\": \"*\"\n },\n {\n \"Sid\": \"ThirdStatement\",\n \"Effect\": \"Allow\",\n \"Action\": [\n \"s3:List*\",\n \"s3:Get*\"\n ],\n \"Resource\": [\n \"arn:aws:s3:::confidential-data\",\n \"arn:aws:s3:::confidential-data/*\"\n ],\n \"Condition\": {\"Bool\": {\"aws:MultiFactorAuthPresent\": \"true\"}}\n }\n ]\n};\n\nconst customPolicyDocument = iam.PolicyDocument.fromJson(policyDocument);\n\n// You can pass this document as an initial document to a ManagedPolicy\n// or inline Policy.\nconst newManagedPolicy = new iam.ManagedPolicy(this, 'MyNewManagedPolicy', {\n document: customPolicyDocument,\n});\nconst newPolicy = new iam.Policy(this, 'MyNewPolicy', {\n document: customPolicyDocument,\n});",
|
4996 | "version": "0"
|
4997 | }
|
4998 | },
|
4999 | "location": {
|
5000 | "api": {
|
5001 | "api": "type",
|
5002 | "fqn": "@aws-cdk/aws-iam.ManagedPolicyProps"
|
5003 | },
|
5004 | "field": {
|
5005 | "field": "example"
|
5006 | }
|
5007 | },
|
5008 | "didCompile": true,
|
5009 | "fqnsReferenced": [
|
5010 | "@aws-cdk/aws-iam.ManagedPolicy",
|
5011 | "@aws-cdk/aws-iam.ManagedPolicyProps",
|
5012 | "@aws-cdk/aws-iam.Policy",
|
5013 | "@aws-cdk/aws-iam.PolicyDocument",
|
5014 | "@aws-cdk/aws-iam.PolicyDocument#fromJson",
|
5015 | "@aws-cdk/aws-iam.PolicyProps",
|
5016 | "constructs.Construct"
|
5017 | ],
|
5018 | "fullSource": "import { Construct } from 'constructs';\nimport { CustomResource, Stack } from '@aws-cdk/core';\nimport * as codepipeline from '@aws-cdk/aws-codepipeline';\nimport * as dynamodb from '@aws-cdk/aws-dynamodb';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as iam from '@aws-cdk/aws-iam';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst policyDocument = {\n \"Version\": \"2012-10-17\",\n \"Statement\": [\n {\n \"Sid\": \"FirstStatement\",\n \"Effect\": \"Allow\",\n \"Action\": [\"iam:ChangePassword\"],\n \"Resource\": \"*\"\n },\n {\n \"Sid\": \"SecondStatement\",\n \"Effect\": \"Allow\",\n \"Action\": \"s3:ListAllMyBuckets\",\n \"Resource\": \"*\"\n },\n {\n \"Sid\": \"ThirdStatement\",\n \"Effect\": \"Allow\",\n \"Action\": [\n \"s3:List*\",\n \"s3:Get*\"\n ],\n \"Resource\": [\n \"arn:aws:s3:::confidential-data\",\n \"arn:aws:s3:::confidential-data/*\"\n ],\n \"Condition\": {\"Bool\": {\"aws:MultiFactorAuthPresent\": \"true\"}}\n }\n ]\n};\n\nconst customPolicyDocument = iam.PolicyDocument.fromJson(policyDocument);\n\n// You can pass this document as an initial document to a ManagedPolicy\n// or inline Policy.\nconst newManagedPolicy = new iam.ManagedPolicy(this, 'MyNewManagedPolicy', {\n document: customPolicyDocument,\n});\nconst newPolicy = new iam.Policy(this, 'MyNewPolicy', {\n document: customPolicyDocument,\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
5019 | "syntaxKindCounter": {
|
5020 | "10": 35,
|
5021 | "75": 16,
|
5022 | "104": 2,
|
5023 | "192": 4,
|
5024 | "193": 8,
|
5025 | "194": 4,
|
5026 | "196": 1,
|
5027 | "197": 2,
|
5028 | "225": 4,
|
5029 | "242": 4,
|
5030 | "243": 4,
|
5031 | "281": 19
|
5032 | },
|
5033 | "fqnsFingerprint": "82ab6b26a5a9cfc78c9cb3216cb17dc03b13fda4858cef474dbb37145603e575"
|
5034 | },
|
5035 | "529e58dc2d792864dfb6aac887ca4e1ce16a502e9480fdc048105d60840ba86c": {
|
5036 | "translations": {
|
5037 | "python": {
|
5038 | "source": "provider = iam.OpenIdConnectProvider(self, \"MyProvider\",\n url=\"https://openid/connect\",\n client_ids=[\"myclient1\", \"myclient2\"]\n)\nprincipal = iam.OpenIdConnectPrincipal(provider)",
|
5039 | "version": "2"
|
5040 | },
|
5041 | "csharp": {
|
5042 | "source": "OpenIdConnectProvider provider = new OpenIdConnectProvider(this, \"MyProvider\", new OpenIdConnectProviderProps {\n Url = \"https://openid/connect\",\n ClientIds = new [] { \"myclient1\", \"myclient2\" }\n});\nOpenIdConnectPrincipal principal = new OpenIdConnectPrincipal(provider);",
|
5043 | "version": "1"
|
5044 | },
|
5045 | "java": {
|
5046 | "source": "OpenIdConnectProvider provider = OpenIdConnectProvider.Builder.create(this, \"MyProvider\")\n .url(\"https://openid/connect\")\n .clientIds(List.of(\"myclient1\", \"myclient2\"))\n .build();\nOpenIdConnectPrincipal principal = new OpenIdConnectPrincipal(provider);",
|
5047 | "version": "1"
|
5048 | },
|
5049 | "go": {
|
5050 | "source": "provider := iam.NewOpenIdConnectProvider(this, jsii.String(\"MyProvider\"), &openIdConnectProviderProps{\n\turl: jsii.String(\"https://openid/connect\"),\n\tclientIds: []*string{\n\t\tjsii.String(\"myclient1\"),\n\t\tjsii.String(\"myclient2\"),\n\t},\n})\nprincipal := iam.NewOpenIdConnectPrincipal(provider)",
|
5051 | "version": "1"
|
5052 | },
|
5053 | "$": {
|
5054 | "source": "const provider = new iam.OpenIdConnectProvider(this, 'MyProvider', {\n url: 'https://openid/connect',\n clientIds: [ 'myclient1', 'myclient2' ],\n});\nconst principal = new iam.OpenIdConnectPrincipal(provider);",
|
5055 | "version": "0"
|
5056 | }
|
5057 | },
|
5058 | "location": {
|
5059 | "api": {
|
5060 | "api": "type",
|
5061 | "fqn": "@aws-cdk/aws-iam.OpenIdConnectPrincipal"
|
5062 | },
|
5063 | "field": {
|
5064 | "field": "example"
|
5065 | }
|
5066 | },
|
5067 | "didCompile": true,
|
5068 | "fqnsReferenced": [
|
5069 | "@aws-cdk/aws-iam.IOpenIdConnectProvider",
|
5070 | "@aws-cdk/aws-iam.OpenIdConnectPrincipal",
|
5071 | "@aws-cdk/aws-iam.OpenIdConnectProvider",
|
5072 | "@aws-cdk/aws-iam.OpenIdConnectProviderProps",
|
5073 | "constructs.Construct"
|
5074 | ],
|
5075 | "fullSource": "import { Construct } from 'constructs';\nimport { CustomResource, Stack } from '@aws-cdk/core';\nimport * as codepipeline from '@aws-cdk/aws-codepipeline';\nimport * as dynamodb from '@aws-cdk/aws-dynamodb';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as iam from '@aws-cdk/aws-iam';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst provider = new iam.OpenIdConnectProvider(this, 'MyProvider', {\n url: 'https://openid/connect',\n clientIds: [ 'myclient1', 'myclient2' ],\n});\nconst principal = new iam.OpenIdConnectPrincipal(provider);\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
5076 | "syntaxKindCounter": {
|
5077 | "10": 4,
|
5078 | "75": 9,
|
5079 | "104": 1,
|
5080 | "192": 1,
|
5081 | "193": 1,
|
5082 | "194": 2,
|
5083 | "197": 2,
|
5084 | "225": 2,
|
5085 | "242": 2,
|
5086 | "243": 2,
|
5087 | "281": 2
|
5088 | },
|
5089 | "fqnsFingerprint": "2a2d9e18ecc625dcce97ed74f058901a9f6778e020cee9158e801906ee75a9bf"
|
5090 | },
|
5091 | "aedfa318e4892e624bafcf2bd139b3e06cafd1d43585ba9093aafb46c91bf67a": {
|
5092 | "translations": {
|
5093 | "python": {
|
5094 | "source": "provider = iam.OpenIdConnectProvider(self, \"MyProvider\",\n url=\"https://openid/connect\",\n client_ids=[\"myclient1\", \"myclient2\"]\n)",
|
5095 | "version": "2"
|
5096 | },
|
5097 | "csharp": {
|
5098 | "source": "OpenIdConnectProvider provider = new OpenIdConnectProvider(this, \"MyProvider\", new OpenIdConnectProviderProps {\n Url = \"https://openid/connect\",\n ClientIds = new [] { \"myclient1\", \"myclient2\" }\n});",
|
5099 | "version": "1"
|
5100 | },
|
5101 | "java": {
|
5102 | "source": "OpenIdConnectProvider provider = OpenIdConnectProvider.Builder.create(this, \"MyProvider\")\n .url(\"https://openid/connect\")\n .clientIds(List.of(\"myclient1\", \"myclient2\"))\n .build();",
|
5103 | "version": "1"
|
5104 | },
|
5105 | "go": {
|
5106 | "source": "provider := iam.NewOpenIdConnectProvider(this, jsii.String(\"MyProvider\"), &openIdConnectProviderProps{\n\turl: jsii.String(\"https://openid/connect\"),\n\tclientIds: []*string{\n\t\tjsii.String(\"myclient1\"),\n\t\tjsii.String(\"myclient2\"),\n\t},\n})",
|
5107 | "version": "1"
|
5108 | },
|
5109 | "$": {
|
5110 | "source": "const provider = new iam.OpenIdConnectProvider(this, 'MyProvider', {\n url: 'https://openid/connect',\n clientIds: [ 'myclient1', 'myclient2' ],\n});",
|
5111 | "version": "0"
|
5112 | }
|
5113 | },
|
5114 | "location": {
|
5115 | "api": {
|
5116 | "api": "type",
|
5117 | "fqn": "@aws-cdk/aws-iam.OpenIdConnectProvider"
|
5118 | },
|
5119 | "field": {
|
5120 | "field": "example"
|
5121 | }
|
5122 | },
|
5123 | "didCompile": true,
|
5124 | "fqnsReferenced": [
|
5125 | "@aws-cdk/aws-iam.OpenIdConnectProvider",
|
5126 | "@aws-cdk/aws-iam.OpenIdConnectProviderProps",
|
5127 | "constructs.Construct"
|
5128 | ],
|
5129 | "fullSource": "import { Construct } from 'constructs';\nimport { CustomResource, Stack } from '@aws-cdk/core';\nimport * as codepipeline from '@aws-cdk/aws-codepipeline';\nimport * as dynamodb from '@aws-cdk/aws-dynamodb';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as iam from '@aws-cdk/aws-iam';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst provider = new iam.OpenIdConnectProvider(this, 'MyProvider', {\n url: 'https://openid/connect',\n clientIds: [ 'myclient1', 'myclient2' ],\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
5130 | "syntaxKindCounter": {
|
5131 | "10": 4,
|
5132 | "75": 5,
|
5133 | "104": 1,
|
5134 | "192": 1,
|
5135 | "193": 1,
|
5136 | "194": 1,
|
5137 | "197": 1,
|
5138 | "225": 1,
|
5139 | "242": 1,
|
5140 | "243": 1,
|
5141 | "281": 2
|
5142 | },
|
5143 | "fqnsFingerprint": "159053d590e4f7a5ef4a6b880010985296f4f4a1fc521dd7037bf8cf91028c50"
|
5144 | },
|
5145 | "8a87ae3a5d6abe1154dac229e64807858bcceb625c47a2a0e00c21ca0014c3c5": {
|
5146 | "translations": {
|
5147 | "python": {
|
5148 | "source": "provider = iam.OpenIdConnectProvider(self, \"MyProvider\",\n url=\"https://openid/connect\",\n client_ids=[\"myclient1\", \"myclient2\"]\n)",
|
5149 | "version": "2"
|
5150 | },
|
5151 | "csharp": {
|
5152 | "source": "OpenIdConnectProvider provider = new OpenIdConnectProvider(this, \"MyProvider\", new OpenIdConnectProviderProps {\n Url = \"https://openid/connect\",\n ClientIds = new [] { \"myclient1\", \"myclient2\" }\n});",
|
5153 | "version": "1"
|
5154 | },
|
5155 | "java": {
|
5156 | "source": "OpenIdConnectProvider provider = OpenIdConnectProvider.Builder.create(this, \"MyProvider\")\n .url(\"https://openid/connect\")\n .clientIds(List.of(\"myclient1\", \"myclient2\"))\n .build();",
|
5157 | "version": "1"
|
5158 | },
|
5159 | "go": {
|
5160 | "source": "provider := iam.NewOpenIdConnectProvider(this, jsii.String(\"MyProvider\"), &openIdConnectProviderProps{\n\turl: jsii.String(\"https://openid/connect\"),\n\tclientIds: []*string{\n\t\tjsii.String(\"myclient1\"),\n\t\tjsii.String(\"myclient2\"),\n\t},\n})",
|
5161 | "version": "1"
|
5162 | },
|
5163 | "$": {
|
5164 | "source": "const provider = new iam.OpenIdConnectProvider(this, 'MyProvider', {\n url: 'https://openid/connect',\n clientIds: [ 'myclient1', 'myclient2' ],\n});",
|
5165 | "version": "0"
|
5166 | }
|
5167 | },
|
5168 | "location": {
|
5169 | "api": {
|
5170 | "api": "type",
|
5171 | "fqn": "@aws-cdk/aws-iam.OpenIdConnectProviderProps"
|
5172 | },
|
5173 | "field": {
|
5174 | "field": "example"
|
5175 | }
|
5176 | },
|
5177 | "didCompile": true,
|
5178 | "fqnsReferenced": [
|
5179 | "@aws-cdk/aws-iam.OpenIdConnectProvider",
|
5180 | "@aws-cdk/aws-iam.OpenIdConnectProviderProps",
|
5181 | "constructs.Construct"
|
5182 | ],
|
5183 | "fullSource": "import { Construct } from 'constructs';\nimport { CustomResource, Stack } from '@aws-cdk/core';\nimport * as codepipeline from '@aws-cdk/aws-codepipeline';\nimport * as dynamodb from '@aws-cdk/aws-dynamodb';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as iam from '@aws-cdk/aws-iam';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst provider = new iam.OpenIdConnectProvider(this, 'MyProvider', {\n url: 'https://openid/connect',\n clientIds: [ 'myclient1', 'myclient2' ],\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
5184 | "syntaxKindCounter": {
|
5185 | "10": 4,
|
5186 | "75": 5,
|
5187 | "104": 1,
|
5188 | "192": 1,
|
5189 | "193": 1,
|
5190 | "194": 1,
|
5191 | "197": 1,
|
5192 | "225": 1,
|
5193 | "242": 1,
|
5194 | "243": 1,
|
5195 | "281": 2
|
5196 | },
|
5197 | "fqnsFingerprint": "159053d590e4f7a5ef4a6b880010985296f4f4a1fc521dd7037bf8cf91028c50"
|
5198 | },
|
5199 | "125d975003d76a3f61838c2504f640298ef090f31c726fa1a04f16ae43e66ccc": {
|
5200 | "translations": {
|
5201 | "python": {
|
5202 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_iam as iam\n\norganization_principal = iam.OrganizationPrincipal(\"organizationId\")",
|
5203 | "version": "2"
|
5204 | },
|
5205 | "csharp": {
|
5206 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.IAM;\n\nOrganizationPrincipal organizationPrincipal = new OrganizationPrincipal(\"organizationId\");",
|
5207 | "version": "1"
|
5208 | },
|
5209 | "java": {
|
5210 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.iam.*;\n\nOrganizationPrincipal organizationPrincipal = new OrganizationPrincipal(\"organizationId\");",
|
5211 | "version": "1"
|
5212 | },
|
5213 | "go": {
|
5214 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport iam \"github.com/aws-samples/dummy/awscdkawsiam\"\n\norganizationPrincipal := iam.NewOrganizationPrincipal(jsii.String(\"organizationId\"))",
|
5215 | "version": "1"
|
5216 | },
|
5217 | "$": {
|
5218 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\nconst organizationPrincipal = new iam.OrganizationPrincipal('organizationId');",
|
5219 | "version": "0"
|
5220 | }
|
5221 | },
|
5222 | "location": {
|
5223 | "api": {
|
5224 | "api": "type",
|
5225 | "fqn": "@aws-cdk/aws-iam.OrganizationPrincipal"
|
5226 | },
|
5227 | "field": {
|
5228 | "field": "example"
|
5229 | }
|
5230 | },
|
5231 | "didCompile": true,
|
5232 | "fqnsReferenced": [
|
5233 | "@aws-cdk/aws-iam.OrganizationPrincipal"
|
5234 | ],
|
5235 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst organizationPrincipal = new iam.OrganizationPrincipal('organizationId');\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
5236 | "syntaxKindCounter": {
|
5237 | "10": 2,
|
5238 | "75": 4,
|
5239 | "194": 1,
|
5240 | "197": 1,
|
5241 | "225": 1,
|
5242 | "242": 1,
|
5243 | "243": 1,
|
5244 | "254": 1,
|
5245 | "255": 1,
|
5246 | "256": 1,
|
5247 | "290": 1
|
5248 | },
|
5249 | "fqnsFingerprint": "036585969bae17978f5812fe10992b59fdc5ed723718ed32c9d87fb139ce431e"
|
5250 | },
|
5251 | "1ef3765d7b488b17ab991479cec1232482b68b58f98164b2ed458c376f747c41": {
|
5252 | "translations": {
|
5253 | "python": {
|
5254 | "source": "policy = iam.ManagedPolicy.from_aws_managed_policy_name(\"ReadOnlyAccess\")\niam.PermissionsBoundary.of(self).apply(policy)",
|
5255 | "version": "2"
|
5256 | },
|
5257 | "csharp": {
|
5258 | "source": "IManagedPolicy policy = ManagedPolicy.FromAwsManagedPolicyName(\"ReadOnlyAccess\");\nPermissionsBoundary.Of(this).Apply(policy);",
|
5259 | "version": "1"
|
5260 | },
|
5261 | "java": {
|
5262 | "source": "IManagedPolicy policy = ManagedPolicy.fromAwsManagedPolicyName(\"ReadOnlyAccess\");\nPermissionsBoundary.of(this).apply(policy);",
|
5263 | "version": "1"
|
5264 | },
|
5265 | "go": {
|
5266 | "source": "policy := iam.managedPolicy.fromAwsManagedPolicyName(jsii.String(\"ReadOnlyAccess\"))\niam.permissionsBoundary.of(this).apply(policy)",
|
5267 | "version": "1"
|
5268 | },
|
5269 | "$": {
|
5270 | "source": "const policy = iam.ManagedPolicy.fromAwsManagedPolicyName('ReadOnlyAccess');\niam.PermissionsBoundary.of(this).apply(policy);",
|
5271 | "version": "0"
|
5272 | }
|
5273 | },
|
5274 | "location": {
|
5275 | "api": {
|
5276 | "api": "type",
|
5277 | "fqn": "@aws-cdk/aws-iam.PermissionsBoundary"
|
5278 | },
|
5279 | "field": {
|
5280 | "field": "markdown",
|
5281 | "line": 1
|
5282 | }
|
5283 | },
|
5284 | "didCompile": true,
|
5285 | "fqnsReferenced": [
|
5286 | "@aws-cdk/aws-iam.IManagedPolicy",
|
5287 | "@aws-cdk/aws-iam.ManagedPolicy",
|
5288 | "@aws-cdk/aws-iam.ManagedPolicy#fromAwsManagedPolicyName",
|
5289 | "@aws-cdk/aws-iam.PermissionsBoundary",
|
5290 | "@aws-cdk/aws-iam.PermissionsBoundary#apply",
|
5291 | "@aws-cdk/aws-iam.PermissionsBoundary#of",
|
5292 | "constructs.IConstruct"
|
5293 | ],
|
5294 | "fullSource": "import { Construct } from 'constructs';\nimport { CustomResource, Stack } from '@aws-cdk/core';\nimport * as codepipeline from '@aws-cdk/aws-codepipeline';\nimport * as dynamodb from '@aws-cdk/aws-dynamodb';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as iam from '@aws-cdk/aws-iam';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst policy = iam.ManagedPolicy.fromAwsManagedPolicyName('ReadOnlyAccess');\niam.PermissionsBoundary.of(this).apply(policy);\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
5295 | "syntaxKindCounter": {
|
5296 | "10": 1,
|
5297 | "75": 9,
|
5298 | "104": 1,
|
5299 | "194": 5,
|
5300 | "196": 3,
|
5301 | "225": 1,
|
5302 | "226": 1,
|
5303 | "242": 1,
|
5304 | "243": 1
|
5305 | },
|
5306 | "fqnsFingerprint": "a9047b2ed4fb3c37f4639731d214b9b991f0ded16dc544ab026b1fc5c2c3e80c"
|
5307 | },
|
5308 | "d2c533b83d059c9109b8702cf95c5056ee60657f3006fbce9bd6a5a3e0426a73": {
|
5309 | "translations": {
|
5310 | "python": {
|
5311 | "source": "# project: codebuild.Project\n\niam.PermissionsBoundary.of(project).apply(codebuild.UntrustedCodeBoundaryPolicy(self, \"Boundary\"))",
|
5312 | "version": "2"
|
5313 | },
|
5314 | "csharp": {
|
5315 | "source": "Project project;\n\nPermissionsBoundary.Of(project).Apply(new UntrustedCodeBoundaryPolicy(this, \"Boundary\"));",
|
5316 | "version": "1"
|
5317 | },
|
5318 | "java": {
|
5319 | "source": "Project project;\n\nPermissionsBoundary.of(project).apply(new UntrustedCodeBoundaryPolicy(this, \"Boundary\"));",
|
5320 | "version": "1"
|
5321 | },
|
5322 | "go": {
|
5323 | "source": "var project project\n\niam.permissionsBoundary.of(project).apply(codebuild.NewUntrustedCodeBoundaryPolicy(this, jsii.String(\"Boundary\")))",
|
5324 | "version": "1"
|
5325 | },
|
5326 | "$": {
|
5327 | "source": "declare const project: codebuild.Project;\niam.PermissionsBoundary.of(project).apply(new codebuild.UntrustedCodeBoundaryPolicy(this, 'Boundary'));",
|
5328 | "version": "0"
|
5329 | }
|
5330 | },
|
5331 | "location": {
|
5332 | "api": {
|
5333 | "api": "type",
|
5334 | "fqn": "@aws-cdk/aws-iam.PermissionsBoundary"
|
5335 | },
|
5336 | "field": {
|
5337 | "field": "example"
|
5338 | }
|
5339 | },
|
5340 | "didCompile": true,
|
5341 | "fqnsReferenced": [
|
5342 | "@aws-cdk/aws-codebuild.UntrustedCodeBoundaryPolicy",
|
5343 | "@aws-cdk/aws-iam.IManagedPolicy",
|
5344 | "@aws-cdk/aws-iam.PermissionsBoundary",
|
5345 | "@aws-cdk/aws-iam.PermissionsBoundary#apply",
|
5346 | "@aws-cdk/aws-iam.PermissionsBoundary#of",
|
5347 | "constructs.Construct",
|
5348 | "constructs.IConstruct"
|
5349 | ],
|
5350 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const project: codebuild.Project;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { Stack, Duration, SecretValue } from '@aws-cdk/core';\nimport codebuild = require('@aws-cdk/aws-codebuild');\nimport iam = require('@aws-cdk/aws-iam');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport lambda = require('@aws-cdk/aws-lambda');\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as ecr from '@aws-cdk/aws-ecr';\nimport * as logs from '@aws-cdk/aws-logs';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\niam.PermissionsBoundary.of(project).apply(new codebuild.UntrustedCodeBoundaryPolicy(this, 'Boundary'));\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
5351 | "syntaxKindCounter": {
|
5352 | "10": 1,
|
5353 | "75": 10,
|
5354 | "104": 1,
|
5355 | "130": 1,
|
5356 | "153": 1,
|
5357 | "169": 1,
|
5358 | "194": 4,
|
5359 | "196": 2,
|
5360 | "197": 1,
|
5361 | "225": 1,
|
5362 | "226": 1,
|
5363 | "242": 1,
|
5364 | "243": 1,
|
5365 | "290": 1
|
5366 | },
|
5367 | "fqnsFingerprint": "6b43722c2dd5fe6c40d32f4f26ad7873cfc79d46aaf91dd653090eb8145910a4"
|
5368 | },
|
5369 | "b0f6442fc1a869daa5f923de714aa3bcf2109d410fb77861ebabae594c6847ce": {
|
5370 | "translations": {
|
5371 | "python": {
|
5372 | "source": "# post_auth_fn: lambda.Function\n\n\nuserpool = cognito.UserPool(self, \"myuserpool\",\n lambda_triggers=cognito.UserPoolTriggers(\n post_authentication=post_auth_fn\n )\n)\n\n# provide permissions to describe the user pool scoped to the ARN the user pool\npost_auth_fn.role.attach_inline_policy(iam.Policy(self, \"userpool-policy\",\n statements=[iam.PolicyStatement(\n actions=[\"cognito-idp:DescribeUserPool\"],\n resources=[userpool.user_pool_arn]\n )]\n))",
|
5373 | "version": "2"
|
5374 | },
|
5375 | "csharp": {
|
5376 | "source": "Function postAuthFn;\n\n\nUserPool userpool = new UserPool(this, \"myuserpool\", new UserPoolProps {\n LambdaTriggers = new UserPoolTriggers {\n PostAuthentication = postAuthFn\n }\n});\n\n// provide permissions to describe the user pool scoped to the ARN the user pool\npostAuthFn.Role.AttachInlinePolicy(new Policy(this, \"userpool-policy\", new PolicyProps {\n Statements = new [] { new PolicyStatement(new PolicyStatementProps {\n Actions = new [] { \"cognito-idp:DescribeUserPool\" },\n Resources = new [] { userpool.UserPoolArn }\n }) }\n}));",
|
5377 | "version": "1"
|
5378 | },
|
5379 | "java": {
|
5380 | "source": "Function postAuthFn;\n\n\nUserPool userpool = UserPool.Builder.create(this, \"myuserpool\")\n .lambdaTriggers(UserPoolTriggers.builder()\n .postAuthentication(postAuthFn)\n .build())\n .build();\n\n// provide permissions to describe the user pool scoped to the ARN the user pool\npostAuthFn.role.attachInlinePolicy(Policy.Builder.create(this, \"userpool-policy\")\n .statements(List.of(PolicyStatement.Builder.create()\n .actions(List.of(\"cognito-idp:DescribeUserPool\"))\n .resources(List.of(userpool.getUserPoolArn()))\n .build()))\n .build());",
|
5381 | "version": "1"
|
5382 | },
|
5383 | "go": {
|
5384 | "source": "var postAuthFn function\n\n\nuserpool := cognito.NewUserPool(this, jsii.String(\"myuserpool\"), &userPoolProps{\n\tlambdaTriggers: &userPoolTriggers{\n\t\tpostAuthentication: postAuthFn,\n\t},\n})\n\n// provide permissions to describe the user pool scoped to the ARN the user pool\npostAuthFn.role.attachInlinePolicy(iam.NewPolicy(this, jsii.String(\"userpool-policy\"), &policyProps{\n\tstatements: []policyStatement{\n\t\tiam.NewPolicyStatement(&policyStatementProps{\n\t\t\tactions: []*string{\n\t\t\t\tjsii.String(\"cognito-idp:DescribeUserPool\"),\n\t\t\t},\n\t\t\tresources: []*string{\n\t\t\t\tuserpool.userPoolArn,\n\t\t\t},\n\t\t}),\n\t},\n}))",
|
5385 | "version": "1"
|
5386 | },
|
5387 | "$": {
|
5388 | "source": "declare const postAuthFn: lambda.Function;\n\nconst userpool = new cognito.UserPool(this, 'myuserpool', {\n lambdaTriggers: {\n postAuthentication: postAuthFn,\n },\n});\n\n// provide permissions to describe the user pool scoped to the ARN the user pool\npostAuthFn.role?.attachInlinePolicy(new iam.Policy(this, 'userpool-policy', {\n statements: [new iam.PolicyStatement({\n actions: ['cognito-idp:DescribeUserPool'],\n resources: [userpool.userPoolArn],\n })],\n}));",
|
5389 | "version": "0"
|
5390 | }
|
5391 | },
|
5392 | "location": {
|
5393 | "api": {
|
5394 | "api": "type",
|
5395 | "fqn": "@aws-cdk/aws-iam.Policy"
|
5396 | },
|
5397 | "field": {
|
5398 | "field": "example"
|
5399 | }
|
5400 | },
|
5401 | "didCompile": true,
|
5402 | "fqnsReferenced": [
|
5403 | "@aws-cdk/aws-cognito.UserPool",
|
5404 | "@aws-cdk/aws-cognito.UserPool#userPoolArn",
|
5405 | "@aws-cdk/aws-cognito.UserPoolProps",
|
5406 | "@aws-cdk/aws-cognito.UserPoolTriggers",
|
5407 | "@aws-cdk/aws-iam.IIdentity#attachInlinePolicy",
|
5408 | "@aws-cdk/aws-iam.Policy",
|
5409 | "@aws-cdk/aws-iam.PolicyProps",
|
5410 | "@aws-cdk/aws-iam.PolicyStatement",
|
5411 | "@aws-cdk/aws-iam.PolicyStatementProps",
|
5412 | "@aws-cdk/aws-lambda.Function#role",
|
5413 | "@aws-cdk/aws-lambda.IFunction",
|
5414 | "constructs.Construct"
|
5415 | ],
|
5416 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const postAuthFn: lambda.Function;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Duration, Stack } from '@aws-cdk/core';\nimport { Construct } from 'constructs';\nimport * as certificatemanager from '@aws-cdk/aws-certificatemanager';\nimport * as cognito from '@aws-cdk/aws-cognito';\nimport * as iam from '@aws-cdk/aws-iam';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\n\nconst userpool = new cognito.UserPool(this, 'myuserpool', {\n lambdaTriggers: {\n postAuthentication: postAuthFn,\n },\n});\n\n// provide permissions to describe the user pool scoped to the ARN the user pool\npostAuthFn.role?.attachInlinePolicy(new iam.Policy(this, 'userpool-policy', {\n statements: [new iam.PolicyStatement({\n actions: ['cognito-idp:DescribeUserPool'],\n resources: [userpool.userPoolArn],\n })],\n}));\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
5417 | "syntaxKindCounter": {
|
5418 | "10": 3,
|
5419 | "28": 1,
|
5420 | "75": 21,
|
5421 | "104": 2,
|
5422 | "130": 1,
|
5423 | "153": 1,
|
5424 | "169": 1,
|
5425 | "192": 3,
|
5426 | "193": 4,
|
5427 | "194": 6,
|
5428 | "196": 1,
|
5429 | "197": 3,
|
5430 | "225": 2,
|
5431 | "226": 1,
|
5432 | "242": 2,
|
5433 | "243": 2,
|
5434 | "281": 5,
|
5435 | "290": 1
|
5436 | },
|
5437 | "fqnsFingerprint": "0be80d4accbdef89b8ce99cdb199d5a6fee9503f8180d462a149aed4ce8fd828"
|
5438 | },
|
5439 | "41a64d14395a27c1aba896dd8775d35033387788134490aa378250aefd62c508": {
|
5440 | "translations": {
|
5441 | "python": {
|
5442 | "source": "my_trusted_admin_role = iam.Role.from_role_arn(self, \"TrustedRole\", \"arn:aws:iam:....\")\n# Creates a limited admin policy and assigns to the account root.\nmy_custom_policy = iam.PolicyDocument(\n statements=[iam.PolicyStatement(\n actions=[\"kms:Create*\", \"kms:Describe*\", \"kms:Enable*\", \"kms:List*\", \"kms:Put*\"\n ],\n principals=[iam.AccountRootPrincipal()],\n resources=[\"*\"]\n )]\n)\nkey = kms.Key(self, \"MyKey\",\n policy=my_custom_policy\n)",
|
5443 | "version": "2"
|
5444 | },
|
5445 | "csharp": {
|
5446 | "source": "IRole myTrustedAdminRole = Role.FromRoleArn(this, \"TrustedRole\", \"arn:aws:iam:....\");\n// Creates a limited admin policy and assigns to the account root.\nPolicyDocument myCustomPolicy = new PolicyDocument(new PolicyDocumentProps {\n Statements = new [] { new PolicyStatement(new PolicyStatementProps {\n Actions = new [] { \"kms:Create*\", \"kms:Describe*\", \"kms:Enable*\", \"kms:List*\", \"kms:Put*\" },\n Principals = new [] { new AccountRootPrincipal() },\n Resources = new [] { \"*\" }\n }) }\n});\nKey key = new Key(this, \"MyKey\", new KeyProps {\n Policy = myCustomPolicy\n});",
|
5447 | "version": "1"
|
5448 | },
|
5449 | "java": {
|
5450 | "source": "IRole myTrustedAdminRole = Role.fromRoleArn(this, \"TrustedRole\", \"arn:aws:iam:....\");\n// Creates a limited admin policy and assigns to the account root.\nPolicyDocument myCustomPolicy = PolicyDocument.Builder.create()\n .statements(List.of(PolicyStatement.Builder.create()\n .actions(List.of(\"kms:Create*\", \"kms:Describe*\", \"kms:Enable*\", \"kms:List*\", \"kms:Put*\"))\n .principals(List.of(new AccountRootPrincipal()))\n .resources(List.of(\"*\"))\n .build()))\n .build();\nKey key = Key.Builder.create(this, \"MyKey\")\n .policy(myCustomPolicy)\n .build();",
|
5451 | "version": "1"
|
5452 | },
|
5453 | "go": {
|
5454 | "source": "myTrustedAdminRole := iam.role.fromRoleArn(this, jsii.String(\"TrustedRole\"), jsii.String(\"arn:aws:iam:....\"))\n// Creates a limited admin policy and assigns to the account root.\nmyCustomPolicy := iam.NewPolicyDocument(&policyDocumentProps{\n\tstatements: []policyStatement{\n\t\tiam.NewPolicyStatement(&policyStatementProps{\n\t\t\tactions: []*string{\n\t\t\t\tjsii.String(\"kms:Create*\"),\n\t\t\t\tjsii.String(\"kms:Describe*\"),\n\t\t\t\tjsii.String(\"kms:Enable*\"),\n\t\t\t\tjsii.String(\"kms:List*\"),\n\t\t\t\tjsii.String(\"kms:Put*\"),\n\t\t\t},\n\t\t\tprincipals: []iPrincipal{\n\t\t\t\tiam.NewAccountRootPrincipal(),\n\t\t\t},\n\t\t\tresources: []*string{\n\t\t\t\tjsii.String(\"*\"),\n\t\t\t},\n\t\t}),\n\t},\n})\nkey := kms.NewKey(this, jsii.String(\"MyKey\"), &keyProps{\n\tpolicy: myCustomPolicy,\n})",
|
5455 | "version": "1"
|
5456 | },
|
5457 | "$": {
|
5458 | "source": "const myTrustedAdminRole = iam.Role.fromRoleArn(this, 'TrustedRole', 'arn:aws:iam:....');\n// Creates a limited admin policy and assigns to the account root.\nconst myCustomPolicy = new iam.PolicyDocument({\n statements: [new iam.PolicyStatement({\n actions: [\n 'kms:Create*',\n 'kms:Describe*',\n 'kms:Enable*',\n 'kms:List*',\n 'kms:Put*',\n ],\n principals: [new iam.AccountRootPrincipal()],\n resources: ['*'],\n })],\n});\nconst key = new kms.Key(this, 'MyKey', {\n policy: myCustomPolicy,\n});",
|
5459 | "version": "0"
|
5460 | }
|
5461 | },
|
5462 | "location": {
|
5463 | "api": {
|
5464 | "api": "type",
|
5465 | "fqn": "@aws-cdk/aws-iam.PolicyDocument"
|
5466 | },
|
5467 | "field": {
|
5468 | "field": "example"
|
5469 | }
|
5470 | },
|
5471 | "didCompile": true,
|
5472 | "fqnsReferenced": [
|
5473 | "@aws-cdk/aws-iam.AccountRootPrincipal",
|
5474 | "@aws-cdk/aws-iam.IRole",
|
5475 | "@aws-cdk/aws-iam.PolicyDocument",
|
5476 | "@aws-cdk/aws-iam.PolicyDocumentProps",
|
5477 | "@aws-cdk/aws-iam.PolicyStatement",
|
5478 | "@aws-cdk/aws-iam.PolicyStatementProps",
|
5479 | "@aws-cdk/aws-iam.Role",
|
5480 | "@aws-cdk/aws-iam.Role#fromRoleArn",
|
5481 | "@aws-cdk/aws-kms.Key",
|
5482 | "@aws-cdk/aws-kms.KeyProps",
|
5483 | "constructs.Construct"
|
5484 | ],
|
5485 | "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as kms from '@aws-cdk/aws-kms';\nimport * as iam from '@aws-cdk/aws-iam';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst myTrustedAdminRole = iam.Role.fromRoleArn(this, 'TrustedRole', 'arn:aws:iam:....');\n// Creates a limited admin policy and assigns to the account root.\nconst myCustomPolicy = new iam.PolicyDocument({\n statements: [new iam.PolicyStatement({\n actions: [\n 'kms:Create*',\n 'kms:Describe*',\n 'kms:Enable*',\n 'kms:List*',\n 'kms:Put*',\n ],\n principals: [new iam.AccountRootPrincipal()],\n resources: ['*'],\n })],\n});\nconst key = new kms.Key(this, 'MyKey', {\n policy: myCustomPolicy,\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n\n",
|
5486 | "syntaxKindCounter": {
|
5487 | "10": 9,
|
5488 | "75": 20,
|
5489 | "104": 2,
|
5490 | "192": 4,
|
5491 | "193": 3,
|
5492 | "194": 6,
|
5493 | "196": 1,
|
5494 | "197": 4,
|
5495 | "225": 3,
|
5496 | "242": 3,
|
5497 | "243": 3,
|
5498 | "281": 5
|
5499 | },
|
5500 | "fqnsFingerprint": "66aba28fd464c556a6771e8bcbbae6d70faaa8c241daa6d9daa09dae09b94de7"
|
5501 | },
|
5502 | "79a00eaac56f614851a477c4ac1590f9cb4db9607c8bedf7f0f569cd8c7dbef6": {
|
5503 | "translations": {
|
5504 | "python": {
|
5505 | "source": "my_trusted_admin_role = iam.Role.from_role_arn(self, \"TrustedRole\", \"arn:aws:iam:....\")\n# Creates a limited admin policy and assigns to the account root.\nmy_custom_policy = iam.PolicyDocument(\n statements=[iam.PolicyStatement(\n actions=[\"kms:Create*\", \"kms:Describe*\", \"kms:Enable*\", \"kms:List*\", \"kms:Put*\"\n ],\n principals=[iam.AccountRootPrincipal()],\n resources=[\"*\"]\n )]\n)\nkey = kms.Key(self, \"MyKey\",\n policy=my_custom_policy\n)",
|
5506 | "version": "2"
|
5507 | },
|
5508 | "csharp": {
|
5509 | "source": "IRole myTrustedAdminRole = Role.FromRoleArn(this, \"TrustedRole\", \"arn:aws:iam:....\");\n// Creates a limited admin policy and assigns to the account root.\nPolicyDocument myCustomPolicy = new PolicyDocument(new PolicyDocumentProps {\n Statements = new [] { new PolicyStatement(new PolicyStatementProps {\n Actions = new [] { \"kms:Create*\", \"kms:Describe*\", \"kms:Enable*\", \"kms:List*\", \"kms:Put*\" },\n Principals = new [] { new AccountRootPrincipal() },\n Resources = new [] { \"*\" }\n }) }\n});\nKey key = new Key(this, \"MyKey\", new KeyProps {\n Policy = myCustomPolicy\n});",
|
5510 | "version": "1"
|
5511 | },
|
5512 | "java": {
|
5513 | "source": "IRole myTrustedAdminRole = Role.fromRoleArn(this, \"TrustedRole\", \"arn:aws:iam:....\");\n// Creates a limited admin policy and assigns to the account root.\nPolicyDocument myCustomPolicy = PolicyDocument.Builder.create()\n .statements(List.of(PolicyStatement.Builder.create()\n .actions(List.of(\"kms:Create*\", \"kms:Describe*\", \"kms:Enable*\", \"kms:List*\", \"kms:Put*\"))\n .principals(List.of(new AccountRootPrincipal()))\n .resources(List.of(\"*\"))\n .build()))\n .build();\nKey key = Key.Builder.create(this, \"MyKey\")\n .policy(myCustomPolicy)\n .build();",
|
5514 | "version": "1"
|
5515 | },
|
5516 | "go": {
|
5517 | "source": "myTrustedAdminRole := iam.role.fromRoleArn(this, jsii.String(\"TrustedRole\"), jsii.String(\"arn:aws:iam:....\"))\n// Creates a limited admin policy and assigns to the account root.\nmyCustomPolicy := iam.NewPolicyDocument(&policyDocumentProps{\n\tstatements: []policyStatement{\n\t\tiam.NewPolicyStatement(&policyStatementProps{\n\t\t\tactions: []*string{\n\t\t\t\tjsii.String(\"kms:Create*\"),\n\t\t\t\tjsii.String(\"kms:Describe*\"),\n\t\t\t\tjsii.String(\"kms:Enable*\"),\n\t\t\t\tjsii.String(\"kms:List*\"),\n\t\t\t\tjsii.String(\"kms:Put*\"),\n\t\t\t},\n\t\t\tprincipals: []iPrincipal{\n\t\t\t\tiam.NewAccountRootPrincipal(),\n\t\t\t},\n\t\t\tresources: []*string{\n\t\t\t\tjsii.String(\"*\"),\n\t\t\t},\n\t\t}),\n\t},\n})\nkey := kms.NewKey(this, jsii.String(\"MyKey\"), &keyProps{\n\tpolicy: myCustomPolicy,\n})",
|
5518 | "version": "1"
|
5519 | },
|
5520 | "$": {
|
5521 | "source": "const myTrustedAdminRole = iam.Role.fromRoleArn(this, 'TrustedRole', 'arn:aws:iam:....');\n// Creates a limited admin policy and assigns to the account root.\nconst myCustomPolicy = new iam.PolicyDocument({\n statements: [new iam.PolicyStatement({\n actions: [\n 'kms:Create*',\n 'kms:Describe*',\n 'kms:Enable*',\n 'kms:List*',\n 'kms:Put*',\n ],\n principals: [new iam.AccountRootPrincipal()],\n resources: ['*'],\n })],\n});\nconst key = new kms.Key(this, 'MyKey', {\n policy: myCustomPolicy,\n});",
|
5522 | "version": "0"
|
5523 | }
|
5524 | },
|
5525 | "location": {
|
5526 | "api": {
|
5527 | "api": "type",
|
5528 | "fqn": "@aws-cdk/aws-iam.PolicyDocumentProps"
|
5529 | },
|
5530 | "field": {
|
5531 | "field": "example"
|
5532 | }
|
5533 | },
|
5534 | "didCompile": true,
|
5535 | "fqnsReferenced": [
|
5536 | "@aws-cdk/aws-iam.AccountRootPrincipal",
|
5537 | "@aws-cdk/aws-iam.IRole",
|
5538 | "@aws-cdk/aws-iam.PolicyDocument",
|
5539 | "@aws-cdk/aws-iam.PolicyDocumentProps",
|
5540 | "@aws-cdk/aws-iam.PolicyStatement",
|
5541 | "@aws-cdk/aws-iam.PolicyStatementProps",
|
5542 | "@aws-cdk/aws-iam.Role",
|
5543 | "@aws-cdk/aws-iam.Role#fromRoleArn",
|
5544 | "@aws-cdk/aws-kms.Key",
|
5545 | "@aws-cdk/aws-kms.KeyProps",
|
5546 | "constructs.Construct"
|
5547 | ],
|
5548 | "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as kms from '@aws-cdk/aws-kms';\nimport * as iam from '@aws-cdk/aws-iam';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst myTrustedAdminRole = iam.Role.fromRoleArn(this, 'TrustedRole', 'arn:aws:iam:....');\n// Creates a limited admin policy and assigns to the account root.\nconst myCustomPolicy = new iam.PolicyDocument({\n statements: [new iam.PolicyStatement({\n actions: [\n 'kms:Create*',\n 'kms:Describe*',\n 'kms:Enable*',\n 'kms:List*',\n 'kms:Put*',\n ],\n principals: [new iam.AccountRootPrincipal()],\n resources: ['*'],\n })],\n});\nconst key = new kms.Key(this, 'MyKey', {\n policy: myCustomPolicy,\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n\n",
|
5549 | "syntaxKindCounter": {
|
5550 | "10": 9,
|
5551 | "75": 20,
|
5552 | "104": 2,
|
5553 | "192": 4,
|
5554 | "193": 3,
|
5555 | "194": 6,
|
5556 | "196": 1,
|
5557 | "197": 4,
|
5558 | "225": 3,
|
5559 | "242": 3,
|
5560 | "243": 3,
|
5561 | "281": 5
|
5562 | },
|
5563 | "fqnsFingerprint": "66aba28fd464c556a6771e8bcbbae6d70faaa8c241daa6d9daa09dae09b94de7"
|
5564 | },
|
5565 | "9543f2177bea1d096c303b071eac6d465b37609f4cbc5fe58623bed069243843": {
|
5566 | "translations": {
|
5567 | "python": {
|
5568 | "source": "# post_auth_fn: lambda.Function\n\n\nuserpool = cognito.UserPool(self, \"myuserpool\",\n lambda_triggers=cognito.UserPoolTriggers(\n post_authentication=post_auth_fn\n )\n)\n\n# provide permissions to describe the user pool scoped to the ARN the user pool\npost_auth_fn.role.attach_inline_policy(iam.Policy(self, \"userpool-policy\",\n statements=[iam.PolicyStatement(\n actions=[\"cognito-idp:DescribeUserPool\"],\n resources=[userpool.user_pool_arn]\n )]\n))",
|
5569 | "version": "2"
|
5570 | },
|
5571 | "csharp": {
|
5572 | "source": "Function postAuthFn;\n\n\nUserPool userpool = new UserPool(this, \"myuserpool\", new UserPoolProps {\n LambdaTriggers = new UserPoolTriggers {\n PostAuthentication = postAuthFn\n }\n});\n\n// provide permissions to describe the user pool scoped to the ARN the user pool\npostAuthFn.Role.AttachInlinePolicy(new Policy(this, \"userpool-policy\", new PolicyProps {\n Statements = new [] { new PolicyStatement(new PolicyStatementProps {\n Actions = new [] { \"cognito-idp:DescribeUserPool\" },\n Resources = new [] { userpool.UserPoolArn }\n }) }\n}));",
|
5573 | "version": "1"
|
5574 | },
|
5575 | "java": {
|
5576 | "source": "Function postAuthFn;\n\n\nUserPool userpool = UserPool.Builder.create(this, \"myuserpool\")\n .lambdaTriggers(UserPoolTriggers.builder()\n .postAuthentication(postAuthFn)\n .build())\n .build();\n\n// provide permissions to describe the user pool scoped to the ARN the user pool\npostAuthFn.role.attachInlinePolicy(Policy.Builder.create(this, \"userpool-policy\")\n .statements(List.of(PolicyStatement.Builder.create()\n .actions(List.of(\"cognito-idp:DescribeUserPool\"))\n .resources(List.of(userpool.getUserPoolArn()))\n .build()))\n .build());",
|
5577 | "version": "1"
|
5578 | },
|
5579 | "go": {
|
5580 | "source": "var postAuthFn function\n\n\nuserpool := cognito.NewUserPool(this, jsii.String(\"myuserpool\"), &userPoolProps{\n\tlambdaTriggers: &userPoolTriggers{\n\t\tpostAuthentication: postAuthFn,\n\t},\n})\n\n// provide permissions to describe the user pool scoped to the ARN the user pool\npostAuthFn.role.attachInlinePolicy(iam.NewPolicy(this, jsii.String(\"userpool-policy\"), &policyProps{\n\tstatements: []policyStatement{\n\t\tiam.NewPolicyStatement(&policyStatementProps{\n\t\t\tactions: []*string{\n\t\t\t\tjsii.String(\"cognito-idp:DescribeUserPool\"),\n\t\t\t},\n\t\t\tresources: []*string{\n\t\t\t\tuserpool.userPoolArn,\n\t\t\t},\n\t\t}),\n\t},\n}))",
|
5581 | "version": "1"
|
5582 | },
|
5583 | "$": {
|
5584 | "source": "declare const postAuthFn: lambda.Function;\n\nconst userpool = new cognito.UserPool(this, 'myuserpool', {\n lambdaTriggers: {\n postAuthentication: postAuthFn,\n },\n});\n\n// provide permissions to describe the user pool scoped to the ARN the user pool\npostAuthFn.role?.attachInlinePolicy(new iam.Policy(this, 'userpool-policy', {\n statements: [new iam.PolicyStatement({\n actions: ['cognito-idp:DescribeUserPool'],\n resources: [userpool.userPoolArn],\n })],\n}));",
|
5585 | "version": "0"
|
5586 | }
|
5587 | },
|
5588 | "location": {
|
5589 | "api": {
|
5590 | "api": "type",
|
5591 | "fqn": "@aws-cdk/aws-iam.PolicyProps"
|
5592 | },
|
5593 | "field": {
|
5594 | "field": "example"
|
5595 | }
|
5596 | },
|
5597 | "didCompile": true,
|
5598 | "fqnsReferenced": [
|
5599 | "@aws-cdk/aws-cognito.UserPool",
|
5600 | "@aws-cdk/aws-cognito.UserPool#userPoolArn",
|
5601 | "@aws-cdk/aws-cognito.UserPoolProps",
|
5602 | "@aws-cdk/aws-cognito.UserPoolTriggers",
|
5603 | "@aws-cdk/aws-iam.IIdentity#attachInlinePolicy",
|
5604 | "@aws-cdk/aws-iam.Policy",
|
5605 | "@aws-cdk/aws-iam.PolicyProps",
|
5606 | "@aws-cdk/aws-iam.PolicyStatement",
|
5607 | "@aws-cdk/aws-iam.PolicyStatementProps",
|
5608 | "@aws-cdk/aws-lambda.Function#role",
|
5609 | "@aws-cdk/aws-lambda.IFunction",
|
5610 | "constructs.Construct"
|
5611 | ],
|
5612 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const postAuthFn: lambda.Function;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Duration, Stack } from '@aws-cdk/core';\nimport { Construct } from 'constructs';\nimport * as certificatemanager from '@aws-cdk/aws-certificatemanager';\nimport * as cognito from '@aws-cdk/aws-cognito';\nimport * as iam from '@aws-cdk/aws-iam';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\n\nconst userpool = new cognito.UserPool(this, 'myuserpool', {\n lambdaTriggers: {\n postAuthentication: postAuthFn,\n },\n});\n\n// provide permissions to describe the user pool scoped to the ARN the user pool\npostAuthFn.role?.attachInlinePolicy(new iam.Policy(this, 'userpool-policy', {\n statements: [new iam.PolicyStatement({\n actions: ['cognito-idp:DescribeUserPool'],\n resources: [userpool.userPoolArn],\n })],\n}));\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
5613 | "syntaxKindCounter": {
|
5614 | "10": 3,
|
5615 | "28": 1,
|
5616 | "75": 21,
|
5617 | "104": 2,
|
5618 | "130": 1,
|
5619 | "153": 1,
|
5620 | "169": 1,
|
5621 | "192": 3,
|
5622 | "193": 4,
|
5623 | "194": 6,
|
5624 | "196": 1,
|
5625 | "197": 3,
|
5626 | "225": 2,
|
5627 | "226": 1,
|
5628 | "242": 2,
|
5629 | "243": 2,
|
5630 | "281": 5,
|
5631 | "290": 1
|
5632 | },
|
5633 | "fqnsFingerprint": "0be80d4accbdef89b8ce99cdb199d5a6fee9503f8180d462a149aed4ce8fd828"
|
5634 | },
|
5635 | "661d3bde1a7741755f3c2de1ff3f6e65819f0ece4d0b7b4a2c2008af7d9f9e97": {
|
5636 | "translations": {
|
5637 | "python": {
|
5638 | "source": "# Add gateway endpoints when creating the VPC\nvpc = ec2.Vpc(self, \"MyVpc\",\n gateway_endpoints={\n \"S3\": ec2.GatewayVpcEndpointOptions(\n service=ec2.GatewayVpcEndpointAwsService.S3\n )\n }\n)\n\n# Alternatively gateway endpoints can be added on the VPC\ndynamo_db_endpoint = vpc.add_gateway_endpoint(\"DynamoDbEndpoint\",\n service=ec2.GatewayVpcEndpointAwsService.DYNAMODB\n)\n\n# This allows to customize the endpoint policy\ndynamo_db_endpoint.add_to_policy(\n iam.PolicyStatement( # Restrict to listing and describing tables\n principals=[iam.AnyPrincipal()],\n actions=[\"dynamodb:DescribeTable\", \"dynamodb:ListTables\"],\n resources=[\"*\"]))\n\n# Add an interface endpoint\nvpc.add_interface_endpoint(\"EcrDockerEndpoint\",\n service=ec2.InterfaceVpcEndpointAwsService.ECR_DOCKER\n)",
|
5639 | "version": "2"
|
5640 | },
|
5641 | "csharp": {
|
5642 | "source": "// Add gateway endpoints when creating the VPC\nVpc vpc = new Vpc(this, \"MyVpc\", new VpcProps {\n GatewayEndpoints = new Dictionary<string, GatewayVpcEndpointOptions> {\n { \"S3\", new GatewayVpcEndpointOptions {\n Service = GatewayVpcEndpointAwsService.S3\n } }\n }\n});\n\n// Alternatively gateway endpoints can be added on the VPC\nGatewayVpcEndpoint dynamoDbEndpoint = vpc.AddGatewayEndpoint(\"DynamoDbEndpoint\", new GatewayVpcEndpointOptions {\n Service = GatewayVpcEndpointAwsService.DYNAMODB\n});\n\n// This allows to customize the endpoint policy\ndynamoDbEndpoint.AddToPolicy(\nnew PolicyStatement(new PolicyStatementProps { // Restrict to listing and describing tables\n Principals = new [] { new AnyPrincipal() },\n Actions = new [] { \"dynamodb:DescribeTable\", \"dynamodb:ListTables\" },\n Resources = new [] { \"*\" } }));\n\n// Add an interface endpoint\nvpc.AddInterfaceEndpoint(\"EcrDockerEndpoint\", new InterfaceVpcEndpointOptions {\n Service = InterfaceVpcEndpointAwsService.ECR_DOCKER\n});",
|
5643 | "version": "1"
|
5644 | },
|
5645 | "java": {
|
5646 | "source": "// Add gateway endpoints when creating the VPC\nVpc vpc = Vpc.Builder.create(this, \"MyVpc\")\n .gatewayEndpoints(Map.of(\n \"S3\", GatewayVpcEndpointOptions.builder()\n .service(GatewayVpcEndpointAwsService.S3)\n .build()))\n .build();\n\n// Alternatively gateway endpoints can be added on the VPC\nGatewayVpcEndpoint dynamoDbEndpoint = vpc.addGatewayEndpoint(\"DynamoDbEndpoint\", GatewayVpcEndpointOptions.builder()\n .service(GatewayVpcEndpointAwsService.DYNAMODB)\n .build());\n\n// This allows to customize the endpoint policy\ndynamoDbEndpoint.addToPolicy(\nPolicyStatement.Builder.create() // Restrict to listing and describing tables\n .principals(List.of(new AnyPrincipal()))\n .actions(List.of(\"dynamodb:DescribeTable\", \"dynamodb:ListTables\"))\n .resources(List.of(\"*\")).build());\n\n// Add an interface endpoint\nvpc.addInterfaceEndpoint(\"EcrDockerEndpoint\", InterfaceVpcEndpointOptions.builder()\n .service(InterfaceVpcEndpointAwsService.ECR_DOCKER)\n .build());",
|
5647 | "version": "1"
|
5648 | },
|
5649 | "go": {
|
5650 | "source": "// Add gateway endpoints when creating the VPC\nvpc := ec2.NewVpc(this, jsii.String(\"MyVpc\"), &vpcProps{\n\tgatewayEndpoints: map[string]gatewayVpcEndpointOptions{\n\t\t\"S3\": &gatewayVpcEndpointOptions{\n\t\t\t\"service\": ec2.GatewayVpcEndpointAwsService_S3(),\n\t\t},\n\t},\n})\n\n// Alternatively gateway endpoints can be added on the VPC\ndynamoDbEndpoint := vpc.addGatewayEndpoint(jsii.String(\"DynamoDbEndpoint\"), &gatewayVpcEndpointOptions{\n\tservice: ec2.gatewayVpcEndpointAwsService_DYNAMODB(),\n})\n\n// This allows to customize the endpoint policy\ndynamoDbEndpoint.addToPolicy(\niam.NewPolicyStatement(&policyStatementProps{\n\t // Restrict to listing and describing tables\n\tprincipals: []iPrincipal{\n\t\tiam.NewAnyPrincipal(),\n\t},\n\tactions: []*string{\n\t\tjsii.String(\"dynamodb:DescribeTable\"),\n\t\tjsii.String(\"dynamodb:ListTables\"),\n\t},\n\tresources: []*string{\n\t\tjsii.String(\"*\"),\n\t},\n}))\n\n// Add an interface endpoint\nvpc.addInterfaceEndpoint(jsii.String(\"EcrDockerEndpoint\"), &interfaceVpcEndpointOptions{\n\tservice: ec2.interfaceVpcEndpointAwsService_ECR_DOCKER(),\n})",
|
5651 | "version": "1"
|
5652 | },
|
5653 | "$": {
|
5654 | "source": " // Add gateway endpoints when creating the VPC\n const vpc = new ec2.Vpc(this, 'MyVpc', {\n gatewayEndpoints: {\n S3: {\n service: ec2.GatewayVpcEndpointAwsService.S3,\n },\n },\n });\n\n // Alternatively gateway endpoints can be added on the VPC\n const dynamoDbEndpoint = vpc.addGatewayEndpoint('DynamoDbEndpoint', {\n service: ec2.GatewayVpcEndpointAwsService.DYNAMODB,\n });\n\n // This allows to customize the endpoint policy\n dynamoDbEndpoint.addToPolicy(\n new iam.PolicyStatement({ // Restrict to listing and describing tables\n principals: [new iam.AnyPrincipal()],\n actions: ['dynamodb:DescribeTable', 'dynamodb:ListTables'],\n resources: ['*'],\n }));\n\n // Add an interface endpoint\n vpc.addInterfaceEndpoint('EcrDockerEndpoint', {\n service: ec2.InterfaceVpcEndpointAwsService.ECR_DOCKER,\n\n // Uncomment the following to allow more fine-grained control over\n // who can access the endpoint via the '.connections' object.\n // open: false\n });",
|
5655 | "version": "0"
|
5656 | }
|
5657 | },
|
5658 | "location": {
|
5659 | "api": {
|
5660 | "api": "type",
|
5661 | "fqn": "@aws-cdk/aws-iam.PolicyStatement"
|
5662 | },
|
5663 | "field": {
|
5664 | "field": "example"
|
5665 | }
|
5666 | },
|
5667 | "didCompile": true,
|
5668 | "fqnsReferenced": [
|
5669 | "@aws-cdk/aws-ec2.GatewayVpcEndpoint",
|
5670 | "@aws-cdk/aws-ec2.GatewayVpcEndpointAwsService",
|
5671 | "@aws-cdk/aws-ec2.GatewayVpcEndpointAwsService#DYNAMODB",
|
5672 | "@aws-cdk/aws-ec2.GatewayVpcEndpointAwsService#S3",
|
5673 | "@aws-cdk/aws-ec2.GatewayVpcEndpointOptions",
|
5674 | "@aws-cdk/aws-ec2.IGatewayVpcEndpointService",
|
5675 | "@aws-cdk/aws-ec2.IInterfaceVpcEndpointService",
|
5676 | "@aws-cdk/aws-ec2.InterfaceVpcEndpointAwsService",
|
5677 | "@aws-cdk/aws-ec2.InterfaceVpcEndpointAwsService#ECR_DOCKER",
|
5678 | "@aws-cdk/aws-ec2.InterfaceVpcEndpointOptions",
|
5679 | "@aws-cdk/aws-ec2.Vpc",
|
5680 | "@aws-cdk/aws-ec2.VpcEndpoint#addToPolicy",
|
5681 | "@aws-cdk/aws-ec2.VpcProps",
|
5682 | "@aws-cdk/aws-iam.AnyPrincipal",
|
5683 | "@aws-cdk/aws-iam.PolicyStatement",
|
5684 | "@aws-cdk/aws-iam.PolicyStatementProps",
|
5685 | "constructs.Construct"
|
5686 | ],
|
5687 | "fullSource": "import * as iam from '@aws-cdk/aws-iam';\nimport * as cdk from '@aws-cdk/core';\nimport * as ec2 from '../lib';\n\nconst app = new cdk.App();\n\nclass VpcEndpointStack extends cdk.Stack {\n constructor(scope: cdk.App, id: string, props?: cdk.StackProps) {\n super(scope, id, props);\n\n /// !show\n // Add gateway endpoints when creating the VPC\n const vpc = new ec2.Vpc(this, 'MyVpc', {\n gatewayEndpoints: {\n S3: {\n service: ec2.GatewayVpcEndpointAwsService.S3,\n },\n },\n });\n\n // Alternatively gateway endpoints can be added on the VPC\n const dynamoDbEndpoint = vpc.addGatewayEndpoint('DynamoDbEndpoint', {\n service: ec2.GatewayVpcEndpointAwsService.DYNAMODB,\n });\n\n // This allows to customize the endpoint policy\n dynamoDbEndpoint.addToPolicy(\n new iam.PolicyStatement({ // Restrict to listing and describing tables\n principals: [new iam.AnyPrincipal()],\n actions: ['dynamodb:DescribeTable', 'dynamodb:ListTables'],\n resources: ['*'],\n }));\n\n // Add an interface endpoint\n vpc.addInterfaceEndpoint('EcrDockerEndpoint', {\n service: ec2.InterfaceVpcEndpointAwsService.ECR_DOCKER,\n\n // Uncomment the following to allow more fine-grained control over\n // who can access the endpoint via the '.connections' object.\n // open: false\n });\n /// !hide\n }\n}\n\nnew VpcEndpointStack(app, 'aws-cdk-ec2-vpc-endpoint');\napp.synth();\n",
|
5688 | "syntaxKindCounter": {
|
5689 | "10": 6,
|
5690 | "75": 31,
|
5691 | "104": 1,
|
5692 | "192": 3,
|
5693 | "193": 6,
|
5694 | "194": 12,
|
5695 | "196": 3,
|
5696 | "197": 3,
|
5697 | "225": 2,
|
5698 | "226": 2,
|
5699 | "242": 2,
|
5700 | "243": 2,
|
5701 | "281": 8
|
5702 | },
|
5703 | "fqnsFingerprint": "4a8bcccc015ab0f98c0825cfea4537533cfce8f720ea372aa4dfcfa6f05c5040"
|
5704 | },
|
5705 | "63a6e8faad39663bd73677dbdb500c130b505c0ae7f43a464e2a59855c357046": {
|
5706 | "translations": {
|
5707 | "python": {
|
5708 | "source": "# stmt: iam.PolicyStatement\n\n\nstmt.add_condition(\"StringEquals\", {\"aws:SomeField\": \"1\"})\nstmt.add_condition(\"StringEquals\", {\"aws:SomeField\": \"2\"})",
|
5709 | "version": "2"
|
5710 | },
|
5711 | "csharp": {
|
5712 | "source": "PolicyStatement stmt;\n\n\nstmt.AddCondition(\"StringEquals\", new Dictionary<string, string> { { \"aws:SomeField\", \"1\" } });\nstmt.AddCondition(\"StringEquals\", new Dictionary<string, string> { { \"aws:SomeField\", \"2\" } });",
|
5713 | "version": "1"
|
5714 | },
|
5715 | "java": {
|
5716 | "source": "PolicyStatement stmt;\n\n\nstmt.addCondition(\"StringEquals\", Map.of(\"aws:SomeField\", \"1\"));\nstmt.addCondition(\"StringEquals\", Map.of(\"aws:SomeField\", \"2\"));",
|
5717 | "version": "1"
|
5718 | },
|
5719 | "go": {
|
5720 | "source": "var stmt policyStatement\n\n\nstmt.addCondition(jsii.String(\"StringEquals\"), map[string]*string{\n\t\"aws:SomeField\": jsii.String(\"1\"),\n})\nstmt.addCondition(jsii.String(\"StringEquals\"), map[string]*string{\n\t\"aws:SomeField\": jsii.String(\"2\"),\n})",
|
5721 | "version": "1"
|
5722 | },
|
5723 | "$": {
|
5724 | "source": "declare const stmt: iam.PolicyStatement;\n\nstmt.addCondition('StringEquals', { 'aws:SomeField': '1' });\nstmt.addCondition('StringEquals', { 'aws:SomeField': '2' });",
|
5725 | "version": "0"
|
5726 | }
|
5727 | },
|
5728 | "location": {
|
5729 | "api": {
|
5730 | "api": "member",
|
5731 | "fqn": "@aws-cdk/aws-iam.PolicyStatement",
|
5732 | "memberName": "addCondition"
|
5733 | },
|
5734 | "field": {
|
5735 | "field": "markdown",
|
5736 | "line": 4
|
5737 | }
|
5738 | },
|
5739 | "didCompile": true,
|
5740 | "fqnsReferenced": [
|
5741 | "@aws-cdk/aws-iam.PolicyStatement#addCondition"
|
5742 | ],
|
5743 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const stmt: iam.PolicyStatement;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from 'constructs';\nimport { CustomResource, Stack } from '@aws-cdk/core';\nimport * as codepipeline from '@aws-cdk/aws-codepipeline';\nimport * as dynamodb from '@aws-cdk/aws-dynamodb';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as iam from '@aws-cdk/aws-iam';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\n\nstmt.addCondition('StringEquals', { 'aws:SomeField': '1' });\nstmt.addCondition('StringEquals', { 'aws:SomeField': '2' });\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
5744 | "syntaxKindCounter": {
|
5745 | "10": 6,
|
5746 | "75": 7,
|
5747 | "130": 1,
|
5748 | "153": 1,
|
5749 | "169": 1,
|
5750 | "193": 2,
|
5751 | "194": 2,
|
5752 | "196": 2,
|
5753 | "225": 1,
|
5754 | "226": 2,
|
5755 | "242": 1,
|
5756 | "243": 1,
|
5757 | "281": 2,
|
5758 | "290": 1
|
5759 | },
|
5760 | "fqnsFingerprint": "989689c8929cc03b434a7643751268d113911f1d3d88c58d254416f744492af6"
|
5761 | },
|
5762 | "b84710644fb020e5000419b47f9f20323c21f8eb7f48b25b26543eaa309e03da": {
|
5763 | "translations": {
|
5764 | "python": {
|
5765 | "source": "# stmt: iam.PolicyStatement\n\n\nstmt.add_condition(\"StringEquals\", {\"aws:SomeField\": [\"1\", \"2\"]})",
|
5766 | "version": "2"
|
5767 | },
|
5768 | "csharp": {
|
5769 | "source": "PolicyStatement stmt;\n\n\nstmt.AddCondition(\"StringEquals\", new Dictionary<string, string[]> { { \"aws:SomeField\", new [] { \"1\", \"2\" } } });",
|
5770 | "version": "1"
|
5771 | },
|
5772 | "java": {
|
5773 | "source": "PolicyStatement stmt;\n\n\nstmt.addCondition(\"StringEquals\", Map.of(\"aws:SomeField\", List.of(\"1\", \"2\")));",
|
5774 | "version": "1"
|
5775 | },
|
5776 | "go": {
|
5777 | "source": "var stmt policyStatement\n\n\nstmt.addCondition(jsii.String(\"StringEquals\"), map[string][]*string{\n\t\"aws:SomeField\": []*string{\n\t\tjsii.String(\"1\"),\n\t\tjsii.String(\"2\"),\n\t},\n})",
|
5778 | "version": "1"
|
5779 | },
|
5780 | "$": {
|
5781 | "source": "declare const stmt: iam.PolicyStatement;\n\nstmt.addCondition('StringEquals', { 'aws:SomeField': ['1', '2'] });",
|
5782 | "version": "0"
|
5783 | }
|
5784 | },
|
5785 | "location": {
|
5786 | "api": {
|
5787 | "api": "member",
|
5788 | "fqn": "@aws-cdk/aws-iam.PolicyStatement",
|
5789 | "memberName": "addCondition"
|
5790 | },
|
5791 | "field": {
|
5792 | "field": "markdown",
|
5793 | "line": 16
|
5794 | }
|
5795 | },
|
5796 | "didCompile": true,
|
5797 | "fqnsReferenced": [
|
5798 | "@aws-cdk/aws-iam.PolicyStatement#addCondition"
|
5799 | ],
|
5800 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const stmt: iam.PolicyStatement;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from 'constructs';\nimport { CustomResource, Stack } from '@aws-cdk/core';\nimport * as codepipeline from '@aws-cdk/aws-codepipeline';\nimport * as dynamodb from '@aws-cdk/aws-dynamodb';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as iam from '@aws-cdk/aws-iam';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\n\nstmt.addCondition('StringEquals', { 'aws:SomeField': ['1', '2'] });\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
5801 | "syntaxKindCounter": {
|
5802 | "10": 4,
|
5803 | "75": 5,
|
5804 | "130": 1,
|
5805 | "153": 1,
|
5806 | "169": 1,
|
5807 | "192": 1,
|
5808 | "193": 1,
|
5809 | "194": 1,
|
5810 | "196": 1,
|
5811 | "225": 1,
|
5812 | "226": 1,
|
5813 | "242": 1,
|
5814 | "243": 1,
|
5815 | "281": 1,
|
5816 | "290": 1
|
5817 | },
|
5818 | "fqnsFingerprint": "989689c8929cc03b434a7643751268d113911f1d3d88c58d254416f744492af6"
|
5819 | },
|
5820 | "ffe01c82dab988ff3424331a367ba4e93f2c39c3f1ef87dbc16063f2d23ae825": {
|
5821 | "translations": {
|
5822 | "python": {
|
5823 | "source": "# Add gateway endpoints when creating the VPC\nvpc = ec2.Vpc(self, \"MyVpc\",\n gateway_endpoints={\n \"S3\": ec2.GatewayVpcEndpointOptions(\n service=ec2.GatewayVpcEndpointAwsService.S3\n )\n }\n)\n\n# Alternatively gateway endpoints can be added on the VPC\ndynamo_db_endpoint = vpc.add_gateway_endpoint(\"DynamoDbEndpoint\",\n service=ec2.GatewayVpcEndpointAwsService.DYNAMODB\n)\n\n# This allows to customize the endpoint policy\ndynamo_db_endpoint.add_to_policy(\n iam.PolicyStatement( # Restrict to listing and describing tables\n principals=[iam.AnyPrincipal()],\n actions=[\"dynamodb:DescribeTable\", \"dynamodb:ListTables\"],\n resources=[\"*\"]))\n\n# Add an interface endpoint\nvpc.add_interface_endpoint(\"EcrDockerEndpoint\",\n service=ec2.InterfaceVpcEndpointAwsService.ECR_DOCKER\n)",
|
5824 | "version": "2"
|
5825 | },
|
5826 | "csharp": {
|
5827 | "source": "// Add gateway endpoints when creating the VPC\nVpc vpc = new Vpc(this, \"MyVpc\", new VpcProps {\n GatewayEndpoints = new Dictionary<string, GatewayVpcEndpointOptions> {\n { \"S3\", new GatewayVpcEndpointOptions {\n Service = GatewayVpcEndpointAwsService.S3\n } }\n }\n});\n\n// Alternatively gateway endpoints can be added on the VPC\nGatewayVpcEndpoint dynamoDbEndpoint = vpc.AddGatewayEndpoint(\"DynamoDbEndpoint\", new GatewayVpcEndpointOptions {\n Service = GatewayVpcEndpointAwsService.DYNAMODB\n});\n\n// This allows to customize the endpoint policy\ndynamoDbEndpoint.AddToPolicy(\nnew PolicyStatement(new PolicyStatementProps { // Restrict to listing and describing tables\n Principals = new [] { new AnyPrincipal() },\n Actions = new [] { \"dynamodb:DescribeTable\", \"dynamodb:ListTables\" },\n Resources = new [] { \"*\" } }));\n\n// Add an interface endpoint\nvpc.AddInterfaceEndpoint(\"EcrDockerEndpoint\", new InterfaceVpcEndpointOptions {\n Service = InterfaceVpcEndpointAwsService.ECR_DOCKER\n});",
|
5828 | "version": "1"
|
5829 | },
|
5830 | "java": {
|
5831 | "source": "// Add gateway endpoints when creating the VPC\nVpc vpc = Vpc.Builder.create(this, \"MyVpc\")\n .gatewayEndpoints(Map.of(\n \"S3\", GatewayVpcEndpointOptions.builder()\n .service(GatewayVpcEndpointAwsService.S3)\n .build()))\n .build();\n\n// Alternatively gateway endpoints can be added on the VPC\nGatewayVpcEndpoint dynamoDbEndpoint = vpc.addGatewayEndpoint(\"DynamoDbEndpoint\", GatewayVpcEndpointOptions.builder()\n .service(GatewayVpcEndpointAwsService.DYNAMODB)\n .build());\n\n// This allows to customize the endpoint policy\ndynamoDbEndpoint.addToPolicy(\nPolicyStatement.Builder.create() // Restrict to listing and describing tables\n .principals(List.of(new AnyPrincipal()))\n .actions(List.of(\"dynamodb:DescribeTable\", \"dynamodb:ListTables\"))\n .resources(List.of(\"*\")).build());\n\n// Add an interface endpoint\nvpc.addInterfaceEndpoint(\"EcrDockerEndpoint\", InterfaceVpcEndpointOptions.builder()\n .service(InterfaceVpcEndpointAwsService.ECR_DOCKER)\n .build());",
|
5832 | "version": "1"
|
5833 | },
|
5834 | "go": {
|
5835 | "source": "// Add gateway endpoints when creating the VPC\nvpc := ec2.NewVpc(this, jsii.String(\"MyVpc\"), &vpcProps{\n\tgatewayEndpoints: map[string]gatewayVpcEndpointOptions{\n\t\t\"S3\": &gatewayVpcEndpointOptions{\n\t\t\t\"service\": ec2.GatewayVpcEndpointAwsService_S3(),\n\t\t},\n\t},\n})\n\n// Alternatively gateway endpoints can be added on the VPC\ndynamoDbEndpoint := vpc.addGatewayEndpoint(jsii.String(\"DynamoDbEndpoint\"), &gatewayVpcEndpointOptions{\n\tservice: ec2.gatewayVpcEndpointAwsService_DYNAMODB(),\n})\n\n// This allows to customize the endpoint policy\ndynamoDbEndpoint.addToPolicy(\niam.NewPolicyStatement(&policyStatementProps{\n\t // Restrict to listing and describing tables\n\tprincipals: []iPrincipal{\n\t\tiam.NewAnyPrincipal(),\n\t},\n\tactions: []*string{\n\t\tjsii.String(\"dynamodb:DescribeTable\"),\n\t\tjsii.String(\"dynamodb:ListTables\"),\n\t},\n\tresources: []*string{\n\t\tjsii.String(\"*\"),\n\t},\n}))\n\n// Add an interface endpoint\nvpc.addInterfaceEndpoint(jsii.String(\"EcrDockerEndpoint\"), &interfaceVpcEndpointOptions{\n\tservice: ec2.interfaceVpcEndpointAwsService_ECR_DOCKER(),\n})",
|
5836 | "version": "1"
|
5837 | },
|
5838 | "$": {
|
5839 | "source": " // Add gateway endpoints when creating the VPC\n const vpc = new ec2.Vpc(this, 'MyVpc', {\n gatewayEndpoints: {\n S3: {\n service: ec2.GatewayVpcEndpointAwsService.S3,\n },\n },\n });\n\n // Alternatively gateway endpoints can be added on the VPC\n const dynamoDbEndpoint = vpc.addGatewayEndpoint('DynamoDbEndpoint', {\n service: ec2.GatewayVpcEndpointAwsService.DYNAMODB,\n });\n\n // This allows to customize the endpoint policy\n dynamoDbEndpoint.addToPolicy(\n new iam.PolicyStatement({ // Restrict to listing and describing tables\n principals: [new iam.AnyPrincipal()],\n actions: ['dynamodb:DescribeTable', 'dynamodb:ListTables'],\n resources: ['*'],\n }));\n\n // Add an interface endpoint\n vpc.addInterfaceEndpoint('EcrDockerEndpoint', {\n service: ec2.InterfaceVpcEndpointAwsService.ECR_DOCKER,\n\n // Uncomment the following to allow more fine-grained control over\n // who can access the endpoint via the '.connections' object.\n // open: false\n });",
|
5840 | "version": "0"
|
5841 | }
|
5842 | },
|
5843 | "location": {
|
5844 | "api": {
|
5845 | "api": "type",
|
5846 | "fqn": "@aws-cdk/aws-iam.PolicyStatementProps"
|
5847 | },
|
5848 | "field": {
|
5849 | "field": "example"
|
5850 | }
|
5851 | },
|
5852 | "didCompile": true,
|
5853 | "fqnsReferenced": [
|
5854 | "@aws-cdk/aws-ec2.GatewayVpcEndpoint",
|
5855 | "@aws-cdk/aws-ec2.GatewayVpcEndpointAwsService",
|
5856 | "@aws-cdk/aws-ec2.GatewayVpcEndpointAwsService#DYNAMODB",
|
5857 | "@aws-cdk/aws-ec2.GatewayVpcEndpointAwsService#S3",
|
5858 | "@aws-cdk/aws-ec2.GatewayVpcEndpointOptions",
|
5859 | "@aws-cdk/aws-ec2.IGatewayVpcEndpointService",
|
5860 | "@aws-cdk/aws-ec2.IInterfaceVpcEndpointService",
|
5861 | "@aws-cdk/aws-ec2.InterfaceVpcEndpointAwsService",
|
5862 | "@aws-cdk/aws-ec2.InterfaceVpcEndpointAwsService#ECR_DOCKER",
|
5863 | "@aws-cdk/aws-ec2.InterfaceVpcEndpointOptions",
|
5864 | "@aws-cdk/aws-ec2.Vpc",
|
5865 | "@aws-cdk/aws-ec2.VpcEndpoint#addToPolicy",
|
5866 | "@aws-cdk/aws-ec2.VpcProps",
|
5867 | "@aws-cdk/aws-iam.AnyPrincipal",
|
5868 | "@aws-cdk/aws-iam.PolicyStatement",
|
5869 | "@aws-cdk/aws-iam.PolicyStatementProps",
|
5870 | "constructs.Construct"
|
5871 | ],
|
5872 | "fullSource": "import * as iam from '@aws-cdk/aws-iam';\nimport * as cdk from '@aws-cdk/core';\nimport * as ec2 from '../lib';\n\nconst app = new cdk.App();\n\nclass VpcEndpointStack extends cdk.Stack {\n constructor(scope: cdk.App, id: string, props?: cdk.StackProps) {\n super(scope, id, props);\n\n /// !show\n // Add gateway endpoints when creating the VPC\n const vpc = new ec2.Vpc(this, 'MyVpc', {\n gatewayEndpoints: {\n S3: {\n service: ec2.GatewayVpcEndpointAwsService.S3,\n },\n },\n });\n\n // Alternatively gateway endpoints can be added on the VPC\n const dynamoDbEndpoint = vpc.addGatewayEndpoint('DynamoDbEndpoint', {\n service: ec2.GatewayVpcEndpointAwsService.DYNAMODB,\n });\n\n // This allows to customize the endpoint policy\n dynamoDbEndpoint.addToPolicy(\n new iam.PolicyStatement({ // Restrict to listing and describing tables\n principals: [new iam.AnyPrincipal()],\n actions: ['dynamodb:DescribeTable', 'dynamodb:ListTables'],\n resources: ['*'],\n }));\n\n // Add an interface endpoint\n vpc.addInterfaceEndpoint('EcrDockerEndpoint', {\n service: ec2.InterfaceVpcEndpointAwsService.ECR_DOCKER,\n\n // Uncomment the following to allow more fine-grained control over\n // who can access the endpoint via the '.connections' object.\n // open: false\n });\n /// !hide\n }\n}\n\nnew VpcEndpointStack(app, 'aws-cdk-ec2-vpc-endpoint');\napp.synth();\n",
|
5873 | "syntaxKindCounter": {
|
5874 | "10": 6,
|
5875 | "75": 31,
|
5876 | "104": 1,
|
5877 | "192": 3,
|
5878 | "193": 6,
|
5879 | "194": 12,
|
5880 | "196": 3,
|
5881 | "197": 3,
|
5882 | "225": 2,
|
5883 | "226": 2,
|
5884 | "242": 2,
|
5885 | "243": 2,
|
5886 | "281": 8
|
5887 | },
|
5888 | "fqnsFingerprint": "4a8bcccc015ab0f98c0825cfea4537533cfce8f720ea372aa4dfcfa6f05c5040"
|
5889 | },
|
5890 | "a39cd8c5324b60d69298977f49196dfbaac98245a811ca830b8329c74ef44258": {
|
5891 | "translations": {
|
5892 | "python": {
|
5893 | "source": "tag_param = CfnParameter(self, \"TagName\")\n\nstring_equals = CfnJson(self, \"ConditionJson\",\n value={\n \"f\"aws:PrincipalTag/{tagParam.valueAsString}\"\": True\n }\n)\n\nprincipal = iam.AccountRootPrincipal().with_conditions({\n \"StringEquals\": string_equals\n})\n\niam.Role(self, \"MyRole\", assumed_by=principal)",
|
5894 | "version": "2"
|
5895 | },
|
5896 | "csharp": {
|
5897 | "source": "CfnParameter tagParam = new CfnParameter(this, \"TagName\");\n\nCfnJson stringEquals = new CfnJson(this, \"ConditionJson\", new CfnJsonProps {\n Value = new Dictionary<string, boolean> {\n { $\"aws:PrincipalTag/{tagParam.valueAsString}\", true }\n }\n});\n\nPrincipalBase principal = new AccountRootPrincipal().WithConditions(new Dictionary<string, object> {\n { \"StringEquals\", stringEquals }\n});\n\nnew Role(this, \"MyRole\", new RoleProps { AssumedBy = principal });",
|
5898 | "version": "1"
|
5899 | },
|
5900 | "java": {
|
5901 | "source": "CfnParameter tagParam = new CfnParameter(this, \"TagName\");\n\nCfnJson stringEquals = CfnJson.Builder.create(this, \"ConditionJson\")\n .value(Map.of(\n String.format(\"aws:PrincipalTag/%s\", tagParam.getValueAsString()), true))\n .build();\n\nPrincipalBase principal = new AccountRootPrincipal().withConditions(Map.of(\n \"StringEquals\", stringEquals));\n\nRole.Builder.create(this, \"MyRole\").assumedBy(principal).build();",
|
5902 | "version": "1"
|
5903 | },
|
5904 | "go": {
|
5905 | "source": "tagParam := awscdkcore.NewCfnParameter(this, jsii.String(\"TagName\"))\n\nstringEquals := awscdkcore.NewCfnJson(this, jsii.String(\"ConditionJson\"), &cfnJsonProps{\n\tvalue: map[string]*bool{\n\t\tfmt.Sprintf(\"aws:PrincipalTag/%v\", tagParam.valueAsString): jsii.Boolean(true),\n\t},\n})\n\nprincipal := iam.NewAccountRootPrincipal().withConditions(map[string]interface{}{\n\t\"StringEquals\": stringEquals,\n})\n\niam.NewRole(this, jsii.String(\"MyRole\"), &roleProps{\n\tassumedBy: principal,\n})",
|
5906 | "version": "1"
|
5907 | },
|
5908 | "$": {
|
5909 | "source": "const tagParam = new CfnParameter(this, 'TagName');\n\nconst stringEquals = new CfnJson(this, 'ConditionJson', {\n value: {\n [`aws:PrincipalTag/${tagParam.valueAsString}`]: true,\n },\n});\n\nconst principal = new iam.AccountRootPrincipal().withConditions({\n StringEquals: stringEquals,\n});\n\nnew iam.Role(this, 'MyRole', { assumedBy: principal });",
|
5910 | "version": "0"
|
5911 | }
|
5912 | },
|
5913 | "location": {
|
5914 | "api": {
|
5915 | "api": "type",
|
5916 | "fqn": "@aws-cdk/aws-iam.PrincipalBase"
|
5917 | },
|
5918 | "field": {
|
5919 | "field": "example"
|
5920 | }
|
5921 | },
|
5922 | "didCompile": true,
|
5923 | "fqnsReferenced": [
|
5924 | "@aws-cdk/aws-iam.AccountRootPrincipal",
|
5925 | "@aws-cdk/aws-iam.IPrincipal",
|
5926 | "@aws-cdk/aws-iam.PrincipalBase",
|
5927 | "@aws-cdk/aws-iam.PrincipalBase#withConditions",
|
5928 | "@aws-cdk/aws-iam.Role",
|
5929 | "@aws-cdk/aws-iam.RoleProps",
|
5930 | "@aws-cdk/core.CfnJson",
|
5931 | "@aws-cdk/core.CfnJsonProps",
|
5932 | "@aws-cdk/core.CfnParameter",
|
5933 | "constructs.Construct"
|
5934 | ],
|
5935 | "fullSource": "import * as cfn from '@aws-cdk/aws-cloudformation';\nimport * as customresources from '@aws-cdk/custom-resources';\nimport * as iam from '@aws-cdk/aws-iam';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as sns from '@aws-cdk/aws-sns';\nimport * as sqs from '@aws-cdk/aws-sqs';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport {\n App,\n Aws,\n CfnCondition,\n CfnDynamicReference,\n CfnDynamicReferenceService,\n CfnInclude,\n CfnJson,\n CfnMapping,\n CfnOutput,\n CfnParameter,\n CfnResource,\n CfnResourceProps,\n ConcreteDependable,\n Construct,\n CustomResource,\n CustomResourceProvider,\n CustomResourceProviderRuntime,\n DefaultStackSynthesizer,\n DependableTrait,\n Duration,\n Fn,\n IConstruct,\n RemovalPolicy,\n SecretValue,\n Size,\n SizeRoundingBehavior,\n Stack,\n StackProps,\n Stage,\n Token,\n} from '@aws-cdk/core';\n\ndeclare const app: App;\ndeclare const arn: 'arn:partition:service:region:account-id:resource-id';\ndeclare const cfnResource: CfnResource;\ndeclare const construct: Construct;\ndeclare const constructA: Construct;\ndeclare const constructB: Construct;\ndeclare const constructC: Construct;\ndeclare const functionProps: lambda.FunctionProps;\ndeclare const isCompleteHandler: lambda.Function;\ndeclare const myBucket: s3.IBucket;\ndeclare const myFunction: lambda.IFunction;\ndeclare const myTopic: sns.ITopic;\ndeclare const onEventHandler: lambda.Function;\ndeclare const resourceProps: CfnResourceProps;\n\ndeclare class MyStack extends Stack {}\ndeclare class YourStack extends Stack {}\n\nclass StackThatProvidesABucket extends Stack {\n public readonly bucket!: s3.IBucket;\n}\n\ninterface StackThatExpectsABucketProps extends StackProps {\n readonly bucket: s3.IBucket;\n}\n\nclass StackThatExpectsABucket extends Stack {\n constructor(scope: Construct, id: string, props: StackThatExpectsABucketProps) {\n super(scope, id, props);\n }\n}\n\nclass fixture$construct extends Construct {\n public constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst tagParam = new CfnParameter(this, 'TagName');\n\nconst stringEquals = new CfnJson(this, 'ConditionJson', {\n value: {\n [`aws:PrincipalTag/${tagParam.valueAsString}`]: true,\n },\n});\n\nconst principal = new iam.AccountRootPrincipal().withConditions({\n StringEquals: stringEquals,\n});\n\nnew iam.Role(this, 'MyRole', { assumedBy: principal });\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
5936 | "syntaxKindCounter": {
|
5937 | "10": 3,
|
5938 | "15": 1,
|
5939 | "17": 1,
|
5940 | "75": 17,
|
5941 | "104": 3,
|
5942 | "106": 1,
|
5943 | "154": 1,
|
5944 | "193": 4,
|
5945 | "194": 4,
|
5946 | "196": 1,
|
5947 | "197": 4,
|
5948 | "211": 1,
|
5949 | "221": 1,
|
5950 | "225": 3,
|
5951 | "226": 1,
|
5952 | "242": 3,
|
5953 | "243": 3,
|
5954 | "281": 4
|
5955 | },
|
5956 | "fqnsFingerprint": "4157c5bf35076b56ca51f0fe18a3a484179e40a6da42d7324d2057befefdf693"
|
5957 | },
|
5958 | "1eda3ceee35abf0d6ef9ff7274dbb484fb8558c947003704789e0890c2f45847": {
|
5959 | "translations": {
|
5960 | "python": {
|
5961 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_iam as iam\n\n# conditions: Any\n\nprincipal_policy_fragment = iam.PrincipalPolicyFragment({\n \"principal_json_key\": [\"principalJson\"]\n}, {\n \"conditions_key\": conditions\n})",
|
5962 | "version": "2"
|
5963 | },
|
5964 | "csharp": {
|
5965 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.IAM;\n\nvar conditions;\n\nPrincipalPolicyFragment principalPolicyFragment = new PrincipalPolicyFragment(new Dictionary<string, string[]> {\n { \"principalJsonKey\", new [] { \"principalJson\" } }\n}, new Dictionary<string, object> {\n { \"conditionsKey\", conditions }\n});",
|
5966 | "version": "1"
|
5967 | },
|
5968 | "java": {
|
5969 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.iam.*;\n\nObject conditions;\n\nPrincipalPolicyFragment principalPolicyFragment = new PrincipalPolicyFragment(Map.of(\n \"principalJsonKey\", List.of(\"principalJson\")), Map.of(\n \"conditionsKey\", conditions));",
|
5970 | "version": "1"
|
5971 | },
|
5972 | "go": {
|
5973 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport iam \"github.com/aws-samples/dummy/awscdkawsiam\"\n\nvar conditions interface{}\n\nprincipalPolicyFragment := iam.NewPrincipalPolicyFragment(map[string][]*string{\n\t\"principalJsonKey\": []*string{\n\t\tjsii.String(\"principalJson\"),\n\t},\n}, map[string]interface{}{\n\t\"conditionsKey\": conditions,\n})",
|
5974 | "version": "1"
|
5975 | },
|
5976 | "$": {
|
5977 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\n\ndeclare const conditions: any;\nconst principalPolicyFragment = new iam.PrincipalPolicyFragment({\n principalJsonKey: ['principalJson'],\n}, /* all optional props */ {\n conditionsKey: conditions,\n});",
|
5978 | "version": "0"
|
5979 | }
|
5980 | },
|
5981 | "location": {
|
5982 | "api": {
|
5983 | "api": "type",
|
5984 | "fqn": "@aws-cdk/aws-iam.PrincipalPolicyFragment"
|
5985 | },
|
5986 | "field": {
|
5987 | "field": "example"
|
5988 | }
|
5989 | },
|
5990 | "didCompile": true,
|
5991 | "fqnsReferenced": [
|
5992 | "@aws-cdk/aws-iam.PrincipalPolicyFragment"
|
5993 | ],
|
5994 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\n\ndeclare const conditions: any;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst principalPolicyFragment = new iam.PrincipalPolicyFragment({\n principalJsonKey: ['principalJson'],\n}, /* all optional props */ {\n conditionsKey: conditions,\n});\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
5995 | "syntaxKindCounter": {
|
5996 | "10": 2,
|
5997 | "75": 8,
|
5998 | "125": 1,
|
5999 | "130": 1,
|
6000 | "192": 1,
|
6001 | "193": 2,
|
6002 | "194": 1,
|
6003 | "197": 1,
|
6004 | "225": 2,
|
6005 | "242": 2,
|
6006 | "243": 2,
|
6007 | "254": 1,
|
6008 | "255": 1,
|
6009 | "256": 1,
|
6010 | "281": 2,
|
6011 | "290": 1
|
6012 | },
|
6013 | "fqnsFingerprint": "e608dd10afdebf81d4b615f8a2ca8112c5680f8f729310fc3417126bd044e698"
|
6014 | },
|
6015 | "2b23c8714bd6cfed8a4473477802035934cf9e95a1e2950429c5153994aa8963": {
|
6016 | "translations": {
|
6017 | "python": {
|
6018 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_iam as iam\n\n# conditions: Any\n# principal: iam.IPrincipal\n\nprincipal_with_conditions = iam.PrincipalWithConditions(principal, {\n \"conditions_key\": conditions\n})",
|
6019 | "version": "2"
|
6020 | },
|
6021 | "csharp": {
|
6022 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.IAM;\n\nvar conditions;\nIPrincipal principal;\n\nPrincipalWithConditions principalWithConditions = new PrincipalWithConditions(principal, new Dictionary<string, object> {\n { \"conditionsKey\", conditions }\n});",
|
6023 | "version": "1"
|
6024 | },
|
6025 | "java": {
|
6026 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.iam.*;\n\nObject conditions;\nIPrincipal principal;\n\nPrincipalWithConditions principalWithConditions = new PrincipalWithConditions(principal, Map.of(\n \"conditionsKey\", conditions));",
|
6027 | "version": "1"
|
6028 | },
|
6029 | "go": {
|
6030 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport iam \"github.com/aws-samples/dummy/awscdkawsiam\"\n\nvar conditions interface{}\nvar principal iPrincipal\n\nprincipalWithConditions := iam.NewPrincipalWithConditions(principal, map[string]interface{}{\n\t\"conditionsKey\": conditions,\n})",
|
6031 | "version": "1"
|
6032 | },
|
6033 | "$": {
|
6034 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\n\ndeclare const conditions: any;\ndeclare const principal: iam.IPrincipal;\nconst principalWithConditions = new iam.PrincipalWithConditions(principal, {\n conditionsKey: conditions,\n});",
|
6035 | "version": "0"
|
6036 | }
|
6037 | },
|
6038 | "location": {
|
6039 | "api": {
|
6040 | "api": "type",
|
6041 | "fqn": "@aws-cdk/aws-iam.PrincipalWithConditions"
|
6042 | },
|
6043 | "field": {
|
6044 | "field": "example"
|
6045 | }
|
6046 | },
|
6047 | "didCompile": true,
|
6048 | "fqnsReferenced": [
|
6049 | "@aws-cdk/aws-iam.IPrincipal",
|
6050 | "@aws-cdk/aws-iam.PrincipalWithConditions"
|
6051 | ],
|
6052 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\n\ndeclare const conditions: any;\ndeclare const principal: iam.IPrincipal;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst principalWithConditions = new iam.PrincipalWithConditions(principal, {\n conditionsKey: conditions,\n});\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
6053 | "syntaxKindCounter": {
|
6054 | "10": 1,
|
6055 | "75": 11,
|
6056 | "125": 1,
|
6057 | "130": 2,
|
6058 | "153": 1,
|
6059 | "169": 1,
|
6060 | "193": 1,
|
6061 | "194": 1,
|
6062 | "197": 1,
|
6063 | "225": 3,
|
6064 | "242": 3,
|
6065 | "243": 3,
|
6066 | "254": 1,
|
6067 | "255": 1,
|
6068 | "256": 1,
|
6069 | "281": 1,
|
6070 | "290": 1
|
6071 | },
|
6072 | "fqnsFingerprint": "cf1b91eb0da081081f985b7ad2133cde4782567d58743581298fe67cdfbcdaa4"
|
6073 | },
|
6074 | "49db63d3ddda6cc8a4ff2f2f34f153b73294f8debcfefb3ca5974790b5339556": {
|
6075 | "translations": {
|
6076 | "python": {
|
6077 | "source": "lambda_role = iam.Role(self, \"Role\",\n assumed_by=iam.ServicePrincipal(\"lambda.amazonaws.com\"),\n description=\"Example role...\"\n)\n\nstream = kinesis.Stream(self, \"MyEncryptedStream\",\n encryption=kinesis.StreamEncryption.KMS\n)\n\n# give lambda permissions to read stream\nstream.grant_read(lambda_role)",
|
6078 | "version": "2"
|
6079 | },
|
6080 | "csharp": {
|
6081 | "source": "Role lambdaRole = new Role(this, \"Role\", new RoleProps {\n AssumedBy = new ServicePrincipal(\"lambda.amazonaws.com\"),\n Description = \"Example role...\"\n});\n\nStream stream = new Stream(this, \"MyEncryptedStream\", new StreamProps {\n Encryption = StreamEncryption.KMS\n});\n\n// give lambda permissions to read stream\nstream.GrantRead(lambdaRole);",
|
6082 | "version": "1"
|
6083 | },
|
6084 | "java": {
|
6085 | "source": "Role lambdaRole = Role.Builder.create(this, \"Role\")\n .assumedBy(new ServicePrincipal(\"lambda.amazonaws.com\"))\n .description(\"Example role...\")\n .build();\n\nStream stream = Stream.Builder.create(this, \"MyEncryptedStream\")\n .encryption(StreamEncryption.KMS)\n .build();\n\n// give lambda permissions to read stream\nstream.grantRead(lambdaRole);",
|
6086 | "version": "1"
|
6087 | },
|
6088 | "go": {
|
6089 | "source": "lambdaRole := iam.NewRole(this, jsii.String(\"Role\"), &roleProps{\n\tassumedBy: iam.NewServicePrincipal(jsii.String(\"lambda.amazonaws.com\")),\n\tdescription: jsii.String(\"Example role...\"),\n})\n\nstream := kinesis.NewStream(this, jsii.String(\"MyEncryptedStream\"), &streamProps{\n\tencryption: kinesis.streamEncryption_KMS,\n})\n\n// give lambda permissions to read stream\nstream.grantRead(lambdaRole)",
|
6090 | "version": "1"
|
6091 | },
|
6092 | "$": {
|
6093 | "source": "const lambdaRole = new iam.Role(this, 'Role', {\n assumedBy: new iam.ServicePrincipal('lambda.amazonaws.com'),\n description: 'Example role...',\n});\n\nconst stream = new kinesis.Stream(this, 'MyEncryptedStream', {\n encryption: kinesis.StreamEncryption.KMS,\n});\n\n// give lambda permissions to read stream\nstream.grantRead(lambdaRole);",
|
6094 | "version": "0"
|
6095 | }
|
6096 | },
|
6097 | "location": {
|
6098 | "api": {
|
6099 | "api": "type",
|
6100 | "fqn": "@aws-cdk/aws-iam.Role"
|
6101 | },
|
6102 | "field": {
|
6103 | "field": "example"
|
6104 | }
|
6105 | },
|
6106 | "didCompile": true,
|
6107 | "fqnsReferenced": [
|
6108 | "@aws-cdk/aws-iam.IGrantable",
|
6109 | "@aws-cdk/aws-iam.IPrincipal",
|
6110 | "@aws-cdk/aws-iam.Role",
|
6111 | "@aws-cdk/aws-iam.RoleProps",
|
6112 | "@aws-cdk/aws-iam.ServicePrincipal",
|
6113 | "@aws-cdk/aws-kinesis.Stream",
|
6114 | "@aws-cdk/aws-kinesis.StreamEncryption",
|
6115 | "@aws-cdk/aws-kinesis.StreamEncryption#KMS",
|
6116 | "@aws-cdk/aws-kinesis.StreamProps",
|
6117 | "constructs.Construct"
|
6118 | ],
|
6119 | "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core'; \nimport * as kinesis from '@aws-cdk/aws-kinesis';\nimport * as kms from '@aws-cdk/aws-kms';\nimport * as iam from '@aws-cdk/aws-iam';\n\nclass Fixture extends Stack { \n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst lambdaRole = new iam.Role(this, 'Role', {\n assumedBy: new iam.ServicePrincipal('lambda.amazonaws.com'),\n description: 'Example role...',\n});\n\nconst stream = new kinesis.Stream(this, 'MyEncryptedStream', {\n encryption: kinesis.StreamEncryption.KMS,\n});\n\n// give lambda permissions to read stream\nstream.grantRead(lambdaRole);\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}",
|
6120 | "syntaxKindCounter": {
|
6121 | "10": 4,
|
6122 | "75": 17,
|
6123 | "104": 2,
|
6124 | "193": 2,
|
6125 | "194": 6,
|
6126 | "196": 1,
|
6127 | "197": 3,
|
6128 | "225": 2,
|
6129 | "226": 1,
|
6130 | "242": 2,
|
6131 | "243": 2,
|
6132 | "281": 3
|
6133 | },
|
6134 | "fqnsFingerprint": "b3e160622eff8d1db83dfd0d3c2cc4af38d4f75a1aa5ed0d96ef1d5c6321ea4c"
|
6135 | },
|
6136 | "0d24ee6c0eb1dcab73dd195781bd69db5eef36f412b1639c55282375b4bf80f8": {
|
6137 | "translations": {
|
6138 | "python": {
|
6139 | "source": "lambda_role = iam.Role(self, \"Role\",\n assumed_by=iam.ServicePrincipal(\"lambda.amazonaws.com\"),\n description=\"Example role...\"\n)\n\nstream = kinesis.Stream(self, \"MyEncryptedStream\",\n encryption=kinesis.StreamEncryption.KMS\n)\n\n# give lambda permissions to read stream\nstream.grant_read(lambda_role)",
|
6140 | "version": "2"
|
6141 | },
|
6142 | "csharp": {
|
6143 | "source": "Role lambdaRole = new Role(this, \"Role\", new RoleProps {\n AssumedBy = new ServicePrincipal(\"lambda.amazonaws.com\"),\n Description = \"Example role...\"\n});\n\nStream stream = new Stream(this, \"MyEncryptedStream\", new StreamProps {\n Encryption = StreamEncryption.KMS\n});\n\n// give lambda permissions to read stream\nstream.GrantRead(lambdaRole);",
|
6144 | "version": "1"
|
6145 | },
|
6146 | "java": {
|
6147 | "source": "Role lambdaRole = Role.Builder.create(this, \"Role\")\n .assumedBy(new ServicePrincipal(\"lambda.amazonaws.com\"))\n .description(\"Example role...\")\n .build();\n\nStream stream = Stream.Builder.create(this, \"MyEncryptedStream\")\n .encryption(StreamEncryption.KMS)\n .build();\n\n// give lambda permissions to read stream\nstream.grantRead(lambdaRole);",
|
6148 | "version": "1"
|
6149 | },
|
6150 | "go": {
|
6151 | "source": "lambdaRole := iam.NewRole(this, jsii.String(\"Role\"), &roleProps{\n\tassumedBy: iam.NewServicePrincipal(jsii.String(\"lambda.amazonaws.com\")),\n\tdescription: jsii.String(\"Example role...\"),\n})\n\nstream := kinesis.NewStream(this, jsii.String(\"MyEncryptedStream\"), &streamProps{\n\tencryption: kinesis.streamEncryption_KMS,\n})\n\n// give lambda permissions to read stream\nstream.grantRead(lambdaRole)",
|
6152 | "version": "1"
|
6153 | },
|
6154 | "$": {
|
6155 | "source": "const lambdaRole = new iam.Role(this, 'Role', {\n assumedBy: new iam.ServicePrincipal('lambda.amazonaws.com'),\n description: 'Example role...',\n});\n\nconst stream = new kinesis.Stream(this, 'MyEncryptedStream', {\n encryption: kinesis.StreamEncryption.KMS,\n});\n\n// give lambda permissions to read stream\nstream.grantRead(lambdaRole);",
|
6156 | "version": "0"
|
6157 | }
|
6158 | },
|
6159 | "location": {
|
6160 | "api": {
|
6161 | "api": "type",
|
6162 | "fqn": "@aws-cdk/aws-iam.RoleProps"
|
6163 | },
|
6164 | "field": {
|
6165 | "field": "example"
|
6166 | }
|
6167 | },
|
6168 | "didCompile": true,
|
6169 | "fqnsReferenced": [
|
6170 | "@aws-cdk/aws-iam.IGrantable",
|
6171 | "@aws-cdk/aws-iam.IPrincipal",
|
6172 | "@aws-cdk/aws-iam.Role",
|
6173 | "@aws-cdk/aws-iam.RoleProps",
|
6174 | "@aws-cdk/aws-iam.ServicePrincipal",
|
6175 | "@aws-cdk/aws-kinesis.Stream",
|
6176 | "@aws-cdk/aws-kinesis.StreamEncryption",
|
6177 | "@aws-cdk/aws-kinesis.StreamEncryption#KMS",
|
6178 | "@aws-cdk/aws-kinesis.StreamProps",
|
6179 | "constructs.Construct"
|
6180 | ],
|
6181 | "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core'; \nimport * as kinesis from '@aws-cdk/aws-kinesis';\nimport * as kms from '@aws-cdk/aws-kms';\nimport * as iam from '@aws-cdk/aws-iam';\n\nclass Fixture extends Stack { \n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst lambdaRole = new iam.Role(this, 'Role', {\n assumedBy: new iam.ServicePrincipal('lambda.amazonaws.com'),\n description: 'Example role...',\n});\n\nconst stream = new kinesis.Stream(this, 'MyEncryptedStream', {\n encryption: kinesis.StreamEncryption.KMS,\n});\n\n// give lambda permissions to read stream\nstream.grantRead(lambdaRole);\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}",
|
6182 | "syntaxKindCounter": {
|
6183 | "10": 4,
|
6184 | "75": 17,
|
6185 | "104": 2,
|
6186 | "193": 2,
|
6187 | "194": 6,
|
6188 | "196": 1,
|
6189 | "197": 3,
|
6190 | "225": 2,
|
6191 | "226": 1,
|
6192 | "242": 2,
|
6193 | "243": 2,
|
6194 | "281": 3
|
6195 | },
|
6196 | "fqnsFingerprint": "b3e160622eff8d1db83dfd0d3c2cc4af38d4f75a1aa5ed0d96ef1d5c6321ea4c"
|
6197 | },
|
6198 | "5952db042452a4b9b587e0b4982ca00fbd021443108ff52347a5259262151140": {
|
6199 | "translations": {
|
6200 | "python": {
|
6201 | "source": "provider = iam.SamlProvider(self, \"Provider\",\n metadata_document=iam.SamlMetadataDocument.from_file(\"/path/to/saml-metadata-document.xml\")\n)\niam.Role(self, \"Role\",\n assumed_by=iam.SamlConsolePrincipal(provider)\n)",
|
6202 | "version": "2"
|
6203 | },
|
6204 | "csharp": {
|
6205 | "source": "SamlProvider provider = new SamlProvider(this, \"Provider\", new SamlProviderProps {\n MetadataDocument = SamlMetadataDocument.FromFile(\"/path/to/saml-metadata-document.xml\")\n});\nnew Role(this, \"Role\", new RoleProps {\n AssumedBy = new SamlConsolePrincipal(provider)\n});",
|
6206 | "version": "1"
|
6207 | },
|
6208 | "java": {
|
6209 | "source": "SamlProvider provider = SamlProvider.Builder.create(this, \"Provider\")\n .metadataDocument(SamlMetadataDocument.fromFile(\"/path/to/saml-metadata-document.xml\"))\n .build();\nRole.Builder.create(this, \"Role\")\n .assumedBy(new SamlConsolePrincipal(provider))\n .build();",
|
6210 | "version": "1"
|
6211 | },
|
6212 | "go": {
|
6213 | "source": "provider := iam.NewSamlProvider(this, jsii.String(\"Provider\"), &samlProviderProps{\n\tmetadataDocument: iam.samlMetadataDocument.fromFile(jsii.String(\"/path/to/saml-metadata-document.xml\")),\n})\niam.NewRole(this, jsii.String(\"Role\"), &roleProps{\n\tassumedBy: iam.NewSamlConsolePrincipal(provider),\n})",
|
6214 | "version": "1"
|
6215 | },
|
6216 | "$": {
|
6217 | "source": "const provider = new iam.SamlProvider(this, 'Provider', {\n metadataDocument: iam.SamlMetadataDocument.fromFile('/path/to/saml-metadata-document.xml'),\n});\nnew iam.Role(this, 'Role', {\n assumedBy: new iam.SamlConsolePrincipal(provider),\n});",
|
6218 | "version": "0"
|
6219 | }
|
6220 | },
|
6221 | "location": {
|
6222 | "api": {
|
6223 | "api": "type",
|
6224 | "fqn": "@aws-cdk/aws-iam.SamlConsolePrincipal"
|
6225 | },
|
6226 | "field": {
|
6227 | "field": "example"
|
6228 | }
|
6229 | },
|
6230 | "didCompile": true,
|
6231 | "fqnsReferenced": [
|
6232 | "@aws-cdk/aws-iam.IPrincipal",
|
6233 | "@aws-cdk/aws-iam.ISamlProvider",
|
6234 | "@aws-cdk/aws-iam.Role",
|
6235 | "@aws-cdk/aws-iam.RoleProps",
|
6236 | "@aws-cdk/aws-iam.SamlConsolePrincipal",
|
6237 | "@aws-cdk/aws-iam.SamlMetadataDocument",
|
6238 | "@aws-cdk/aws-iam.SamlMetadataDocument#fromFile",
|
6239 | "@aws-cdk/aws-iam.SamlProvider",
|
6240 | "@aws-cdk/aws-iam.SamlProviderProps",
|
6241 | "constructs.Construct"
|
6242 | ],
|
6243 | "fullSource": "import { Construct } from 'constructs';\nimport { CustomResource, Stack } from '@aws-cdk/core';\nimport * as codepipeline from '@aws-cdk/aws-codepipeline';\nimport * as dynamodb from '@aws-cdk/aws-dynamodb';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as iam from '@aws-cdk/aws-iam';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst provider = new iam.SamlProvider(this, 'Provider', {\n metadataDocument: iam.SamlMetadataDocument.fromFile('/path/to/saml-metadata-document.xml'),\n});\nnew iam.Role(this, 'Role', {\n assumedBy: new iam.SamlConsolePrincipal(provider),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
6244 | "syntaxKindCounter": {
|
6245 | "10": 3,
|
6246 | "75": 13,
|
6247 | "104": 2,
|
6248 | "193": 2,
|
6249 | "194": 5,
|
6250 | "196": 1,
|
6251 | "197": 3,
|
6252 | "225": 1,
|
6253 | "226": 1,
|
6254 | "242": 1,
|
6255 | "243": 1,
|
6256 | "281": 2
|
6257 | },
|
6258 | "fqnsFingerprint": "48d23d0ac2452619812d8179d5d44a00fd5ddf4de059b544ee3d55d30e00137e"
|
6259 | },
|
6260 | "a4fa1690e052b3ce79c48e94948ebd968add5c072305b967aa35f19beea7ee62": {
|
6261 | "translations": {
|
6262 | "python": {
|
6263 | "source": "provider = iam.SamlProvider(self, \"Provider\",\n metadata_document=iam.SamlMetadataDocument.from_file(\"/path/to/saml-metadata-document.xml\")\n)\nprincipal = iam.SamlPrincipal(provider, {\n \"StringEquals\": {\n \"SAML:iss\": \"issuer\"\n }\n})",
|
6264 | "version": "2"
|
6265 | },
|
6266 | "csharp": {
|
6267 | "source": "SamlProvider provider = new SamlProvider(this, \"Provider\", new SamlProviderProps {\n MetadataDocument = SamlMetadataDocument.FromFile(\"/path/to/saml-metadata-document.xml\")\n});\nSamlPrincipal principal = new SamlPrincipal(provider, new Dictionary<string, object> {\n { \"StringEquals\", new Dictionary<string, string> {\n { \"SAML:iss\", \"issuer\" }\n } }\n});",
|
6268 | "version": "1"
|
6269 | },
|
6270 | "java": {
|
6271 | "source": "SamlProvider provider = SamlProvider.Builder.create(this, \"Provider\")\n .metadataDocument(SamlMetadataDocument.fromFile(\"/path/to/saml-metadata-document.xml\"))\n .build();\nSamlPrincipal principal = new SamlPrincipal(provider, Map.of(\n \"StringEquals\", Map.of(\n \"SAML:iss\", \"issuer\")));",
|
6272 | "version": "1"
|
6273 | },
|
6274 | "go": {
|
6275 | "source": "provider := iam.NewSamlProvider(this, jsii.String(\"Provider\"), &samlProviderProps{\n\tmetadataDocument: iam.samlMetadataDocument.fromFile(jsii.String(\"/path/to/saml-metadata-document.xml\")),\n})\nprincipal := iam.NewSamlPrincipal(provider, map[string]interface{}{\n\t\"StringEquals\": map[string]*string{\n\t\t\"SAML:iss\": jsii.String(\"issuer\"),\n\t},\n})",
|
6276 | "version": "1"
|
6277 | },
|
6278 | "$": {
|
6279 | "source": "const provider = new iam.SamlProvider(this, 'Provider', {\n metadataDocument: iam.SamlMetadataDocument.fromFile('/path/to/saml-metadata-document.xml'),\n});\nconst principal = new iam.SamlPrincipal(provider, {\n StringEquals: {\n 'SAML:iss': 'issuer',\n },\n});",
|
6280 | "version": "0"
|
6281 | }
|
6282 | },
|
6283 | "location": {
|
6284 | "api": {
|
6285 | "api": "type",
|
6286 | "fqn": "@aws-cdk/aws-iam.SamlMetadataDocument"
|
6287 | },
|
6288 | "field": {
|
6289 | "field": "example"
|
6290 | }
|
6291 | },
|
6292 | "didCompile": true,
|
6293 | "fqnsReferenced": [
|
6294 | "@aws-cdk/aws-iam.ISamlProvider",
|
6295 | "@aws-cdk/aws-iam.SamlMetadataDocument",
|
6296 | "@aws-cdk/aws-iam.SamlMetadataDocument#fromFile",
|
6297 | "@aws-cdk/aws-iam.SamlPrincipal",
|
6298 | "@aws-cdk/aws-iam.SamlProvider",
|
6299 | "@aws-cdk/aws-iam.SamlProviderProps",
|
6300 | "constructs.Construct"
|
6301 | ],
|
6302 | "fullSource": "import { Construct } from 'constructs';\nimport { CustomResource, Stack } from '@aws-cdk/core';\nimport * as codepipeline from '@aws-cdk/aws-codepipeline';\nimport * as dynamodb from '@aws-cdk/aws-dynamodb';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as iam from '@aws-cdk/aws-iam';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst provider = new iam.SamlProvider(this, 'Provider', {\n metadataDocument: iam.SamlMetadataDocument.fromFile('/path/to/saml-metadata-document.xml'),\n});\nconst principal = new iam.SamlPrincipal(provider, {\n StringEquals: {\n 'SAML:iss': 'issuer',\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
6303 | "syntaxKindCounter": {
|
6304 | "10": 4,
|
6305 | "75": 12,
|
6306 | "104": 1,
|
6307 | "193": 3,
|
6308 | "194": 4,
|
6309 | "196": 1,
|
6310 | "197": 2,
|
6311 | "225": 2,
|
6312 | "242": 2,
|
6313 | "243": 2,
|
6314 | "281": 3
|
6315 | },
|
6316 | "fqnsFingerprint": "8ffca5c79f52dfdf6480beae9a011569d541f9fc305ff674bca090b3ad96fed7"
|
6317 | },
|
6318 | "3617b40647c75319a196b8ed88617f011d1bbc3b0e3855f19569a3f284564a45": {
|
6319 | "translations": {
|
6320 | "python": {
|
6321 | "source": "provider = iam.SamlProvider(self, \"Provider\",\n metadata_document=iam.SamlMetadataDocument.from_file(\"/path/to/saml-metadata-document.xml\")\n)\nprincipal = iam.SamlPrincipal(provider, {\n \"StringEquals\": {\n \"SAML:iss\": \"issuer\"\n }\n})",
|
6322 | "version": "2"
|
6323 | },
|
6324 | "csharp": {
|
6325 | "source": "SamlProvider provider = new SamlProvider(this, \"Provider\", new SamlProviderProps {\n MetadataDocument = SamlMetadataDocument.FromFile(\"/path/to/saml-metadata-document.xml\")\n});\nSamlPrincipal principal = new SamlPrincipal(provider, new Dictionary<string, object> {\n { \"StringEquals\", new Dictionary<string, string> {\n { \"SAML:iss\", \"issuer\" }\n } }\n});",
|
6326 | "version": "1"
|
6327 | },
|
6328 | "java": {
|
6329 | "source": "SamlProvider provider = SamlProvider.Builder.create(this, \"Provider\")\n .metadataDocument(SamlMetadataDocument.fromFile(\"/path/to/saml-metadata-document.xml\"))\n .build();\nSamlPrincipal principal = new SamlPrincipal(provider, Map.of(\n \"StringEquals\", Map.of(\n \"SAML:iss\", \"issuer\")));",
|
6330 | "version": "1"
|
6331 | },
|
6332 | "go": {
|
6333 | "source": "provider := iam.NewSamlProvider(this, jsii.String(\"Provider\"), &samlProviderProps{\n\tmetadataDocument: iam.samlMetadataDocument.fromFile(jsii.String(\"/path/to/saml-metadata-document.xml\")),\n})\nprincipal := iam.NewSamlPrincipal(provider, map[string]interface{}{\n\t\"StringEquals\": map[string]*string{\n\t\t\"SAML:iss\": jsii.String(\"issuer\"),\n\t},\n})",
|
6334 | "version": "1"
|
6335 | },
|
6336 | "$": {
|
6337 | "source": "const provider = new iam.SamlProvider(this, 'Provider', {\n metadataDocument: iam.SamlMetadataDocument.fromFile('/path/to/saml-metadata-document.xml'),\n});\nconst principal = new iam.SamlPrincipal(provider, {\n StringEquals: {\n 'SAML:iss': 'issuer',\n },\n});",
|
6338 | "version": "0"
|
6339 | }
|
6340 | },
|
6341 | "location": {
|
6342 | "api": {
|
6343 | "api": "type",
|
6344 | "fqn": "@aws-cdk/aws-iam.SamlPrincipal"
|
6345 | },
|
6346 | "field": {
|
6347 | "field": "example"
|
6348 | }
|
6349 | },
|
6350 | "didCompile": true,
|
6351 | "fqnsReferenced": [
|
6352 | "@aws-cdk/aws-iam.ISamlProvider",
|
6353 | "@aws-cdk/aws-iam.SamlMetadataDocument",
|
6354 | "@aws-cdk/aws-iam.SamlMetadataDocument#fromFile",
|
6355 | "@aws-cdk/aws-iam.SamlPrincipal",
|
6356 | "@aws-cdk/aws-iam.SamlProvider",
|
6357 | "@aws-cdk/aws-iam.SamlProviderProps",
|
6358 | "constructs.Construct"
|
6359 | ],
|
6360 | "fullSource": "import { Construct } from 'constructs';\nimport { CustomResource, Stack } from '@aws-cdk/core';\nimport * as codepipeline from '@aws-cdk/aws-codepipeline';\nimport * as dynamodb from '@aws-cdk/aws-dynamodb';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as iam from '@aws-cdk/aws-iam';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst provider = new iam.SamlProvider(this, 'Provider', {\n metadataDocument: iam.SamlMetadataDocument.fromFile('/path/to/saml-metadata-document.xml'),\n});\nconst principal = new iam.SamlPrincipal(provider, {\n StringEquals: {\n 'SAML:iss': 'issuer',\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
6361 | "syntaxKindCounter": {
|
6362 | "10": 4,
|
6363 | "75": 12,
|
6364 | "104": 1,
|
6365 | "193": 3,
|
6366 | "194": 4,
|
6367 | "196": 1,
|
6368 | "197": 2,
|
6369 | "225": 2,
|
6370 | "242": 2,
|
6371 | "243": 2,
|
6372 | "281": 3
|
6373 | },
|
6374 | "fqnsFingerprint": "8ffca5c79f52dfdf6480beae9a011569d541f9fc305ff674bca090b3ad96fed7"
|
6375 | },
|
6376 | "eab80f639ff3acf0b6247773007573c44708cfdbc337069c2fab584914683841": {
|
6377 | "translations": {
|
6378 | "python": {
|
6379 | "source": "provider = iam.SamlProvider(self, \"Provider\",\n metadata_document=iam.SamlMetadataDocument.from_file(\"/path/to/saml-metadata-document.xml\")\n)\niam.Role(self, \"Role\",\n assumed_by=iam.SamlConsolePrincipal(provider)\n)",
|
6380 | "version": "2"
|
6381 | },
|
6382 | "csharp": {
|
6383 | "source": "SamlProvider provider = new SamlProvider(this, \"Provider\", new SamlProviderProps {\n MetadataDocument = SamlMetadataDocument.FromFile(\"/path/to/saml-metadata-document.xml\")\n});\nnew Role(this, \"Role\", new RoleProps {\n AssumedBy = new SamlConsolePrincipal(provider)\n});",
|
6384 | "version": "1"
|
6385 | },
|
6386 | "java": {
|
6387 | "source": "SamlProvider provider = SamlProvider.Builder.create(this, \"Provider\")\n .metadataDocument(SamlMetadataDocument.fromFile(\"/path/to/saml-metadata-document.xml\"))\n .build();\nRole.Builder.create(this, \"Role\")\n .assumedBy(new SamlConsolePrincipal(provider))\n .build();",
|
6388 | "version": "1"
|
6389 | },
|
6390 | "go": {
|
6391 | "source": "provider := iam.NewSamlProvider(this, jsii.String(\"Provider\"), &samlProviderProps{\n\tmetadataDocument: iam.samlMetadataDocument.fromFile(jsii.String(\"/path/to/saml-metadata-document.xml\")),\n})\niam.NewRole(this, jsii.String(\"Role\"), &roleProps{\n\tassumedBy: iam.NewSamlConsolePrincipal(provider),\n})",
|
6392 | "version": "1"
|
6393 | },
|
6394 | "$": {
|
6395 | "source": "const provider = new iam.SamlProvider(this, 'Provider', {\n metadataDocument: iam.SamlMetadataDocument.fromFile('/path/to/saml-metadata-document.xml'),\n});\nnew iam.Role(this, 'Role', {\n assumedBy: new iam.SamlConsolePrincipal(provider),\n});",
|
6396 | "version": "0"
|
6397 | }
|
6398 | },
|
6399 | "location": {
|
6400 | "api": {
|
6401 | "api": "type",
|
6402 | "fqn": "@aws-cdk/aws-iam.SamlProvider"
|
6403 | },
|
6404 | "field": {
|
6405 | "field": "example"
|
6406 | }
|
6407 | },
|
6408 | "didCompile": true,
|
6409 | "fqnsReferenced": [
|
6410 | "@aws-cdk/aws-iam.IPrincipal",
|
6411 | "@aws-cdk/aws-iam.ISamlProvider",
|
6412 | "@aws-cdk/aws-iam.Role",
|
6413 | "@aws-cdk/aws-iam.RoleProps",
|
6414 | "@aws-cdk/aws-iam.SamlConsolePrincipal",
|
6415 | "@aws-cdk/aws-iam.SamlMetadataDocument",
|
6416 | "@aws-cdk/aws-iam.SamlMetadataDocument#fromFile",
|
6417 | "@aws-cdk/aws-iam.SamlProvider",
|
6418 | "@aws-cdk/aws-iam.SamlProviderProps",
|
6419 | "constructs.Construct"
|
6420 | ],
|
6421 | "fullSource": "import { Construct } from 'constructs';\nimport { CustomResource, Stack } from '@aws-cdk/core';\nimport * as codepipeline from '@aws-cdk/aws-codepipeline';\nimport * as dynamodb from '@aws-cdk/aws-dynamodb';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as iam from '@aws-cdk/aws-iam';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst provider = new iam.SamlProvider(this, 'Provider', {\n metadataDocument: iam.SamlMetadataDocument.fromFile('/path/to/saml-metadata-document.xml'),\n});\nnew iam.Role(this, 'Role', {\n assumedBy: new iam.SamlConsolePrincipal(provider),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
6422 | "syntaxKindCounter": {
|
6423 | "10": 3,
|
6424 | "75": 13,
|
6425 | "104": 2,
|
6426 | "193": 2,
|
6427 | "194": 5,
|
6428 | "196": 1,
|
6429 | "197": 3,
|
6430 | "225": 1,
|
6431 | "226": 1,
|
6432 | "242": 1,
|
6433 | "243": 1,
|
6434 | "281": 2
|
6435 | },
|
6436 | "fqnsFingerprint": "48d23d0ac2452619812d8179d5d44a00fd5ddf4de059b544ee3d55d30e00137e"
|
6437 | },
|
6438 | "a69c3b1fd7da7ce81693c8c07104b687c2e28c24611452b7b97c40e11e64870a": {
|
6439 | "translations": {
|
6440 | "python": {
|
6441 | "source": "provider = iam.SamlProvider(self, \"Provider\",\n metadata_document=iam.SamlMetadataDocument.from_file(\"/path/to/saml-metadata-document.xml\")\n)\niam.Role(self, \"Role\",\n assumed_by=iam.SamlConsolePrincipal(provider)\n)",
|
6442 | "version": "2"
|
6443 | },
|
6444 | "csharp": {
|
6445 | "source": "SamlProvider provider = new SamlProvider(this, \"Provider\", new SamlProviderProps {\n MetadataDocument = SamlMetadataDocument.FromFile(\"/path/to/saml-metadata-document.xml\")\n});\nnew Role(this, \"Role\", new RoleProps {\n AssumedBy = new SamlConsolePrincipal(provider)\n});",
|
6446 | "version": "1"
|
6447 | },
|
6448 | "java": {
|
6449 | "source": "SamlProvider provider = SamlProvider.Builder.create(this, \"Provider\")\n .metadataDocument(SamlMetadataDocument.fromFile(\"/path/to/saml-metadata-document.xml\"))\n .build();\nRole.Builder.create(this, \"Role\")\n .assumedBy(new SamlConsolePrincipal(provider))\n .build();",
|
6450 | "version": "1"
|
6451 | },
|
6452 | "go": {
|
6453 | "source": "provider := iam.NewSamlProvider(this, jsii.String(\"Provider\"), &samlProviderProps{\n\tmetadataDocument: iam.samlMetadataDocument.fromFile(jsii.String(\"/path/to/saml-metadata-document.xml\")),\n})\niam.NewRole(this, jsii.String(\"Role\"), &roleProps{\n\tassumedBy: iam.NewSamlConsolePrincipal(provider),\n})",
|
6454 | "version": "1"
|
6455 | },
|
6456 | "$": {
|
6457 | "source": "const provider = new iam.SamlProvider(this, 'Provider', {\n metadataDocument: iam.SamlMetadataDocument.fromFile('/path/to/saml-metadata-document.xml'),\n});\nnew iam.Role(this, 'Role', {\n assumedBy: new iam.SamlConsolePrincipal(provider),\n});",
|
6458 | "version": "0"
|
6459 | }
|
6460 | },
|
6461 | "location": {
|
6462 | "api": {
|
6463 | "api": "type",
|
6464 | "fqn": "@aws-cdk/aws-iam.SamlProviderProps"
|
6465 | },
|
6466 | "field": {
|
6467 | "field": "example"
|
6468 | }
|
6469 | },
|
6470 | "didCompile": true,
|
6471 | "fqnsReferenced": [
|
6472 | "@aws-cdk/aws-iam.IPrincipal",
|
6473 | "@aws-cdk/aws-iam.ISamlProvider",
|
6474 | "@aws-cdk/aws-iam.Role",
|
6475 | "@aws-cdk/aws-iam.RoleProps",
|
6476 | "@aws-cdk/aws-iam.SamlConsolePrincipal",
|
6477 | "@aws-cdk/aws-iam.SamlMetadataDocument",
|
6478 | "@aws-cdk/aws-iam.SamlMetadataDocument#fromFile",
|
6479 | "@aws-cdk/aws-iam.SamlProvider",
|
6480 | "@aws-cdk/aws-iam.SamlProviderProps",
|
6481 | "constructs.Construct"
|
6482 | ],
|
6483 | "fullSource": "import { Construct } from 'constructs';\nimport { CustomResource, Stack } from '@aws-cdk/core';\nimport * as codepipeline from '@aws-cdk/aws-codepipeline';\nimport * as dynamodb from '@aws-cdk/aws-dynamodb';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as iam from '@aws-cdk/aws-iam';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst provider = new iam.SamlProvider(this, 'Provider', {\n metadataDocument: iam.SamlMetadataDocument.fromFile('/path/to/saml-metadata-document.xml'),\n});\nnew iam.Role(this, 'Role', {\n assumedBy: new iam.SamlConsolePrincipal(provider),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
6484 | "syntaxKindCounter": {
|
6485 | "10": 3,
|
6486 | "75": 13,
|
6487 | "104": 2,
|
6488 | "193": 2,
|
6489 | "194": 5,
|
6490 | "196": 1,
|
6491 | "197": 3,
|
6492 | "225": 1,
|
6493 | "226": 1,
|
6494 | "242": 1,
|
6495 | "243": 1,
|
6496 | "281": 2
|
6497 | },
|
6498 | "fqnsFingerprint": "48d23d0ac2452619812d8179d5d44a00fd5ddf4de059b544ee3d55d30e00137e"
|
6499 | },
|
6500 | "7ac132e0c8f14218f0cf203650d98f33f717946538d5ffae74f158abbac61339": {
|
6501 | "translations": {
|
6502 | "python": {
|
6503 | "source": "lambda_role = iam.Role(self, \"Role\",\n assumed_by=iam.ServicePrincipal(\"lambda.amazonaws.com\"),\n description=\"Example role...\"\n)\n\nstream = kinesis.Stream(self, \"MyEncryptedStream\",\n encryption=kinesis.StreamEncryption.KMS\n)\n\n# give lambda permissions to read stream\nstream.grant_read(lambda_role)",
|
6504 | "version": "2"
|
6505 | },
|
6506 | "csharp": {
|
6507 | "source": "Role lambdaRole = new Role(this, \"Role\", new RoleProps {\n AssumedBy = new ServicePrincipal(\"lambda.amazonaws.com\"),\n Description = \"Example role...\"\n});\n\nStream stream = new Stream(this, \"MyEncryptedStream\", new StreamProps {\n Encryption = StreamEncryption.KMS\n});\n\n// give lambda permissions to read stream\nstream.GrantRead(lambdaRole);",
|
6508 | "version": "1"
|
6509 | },
|
6510 | "java": {
|
6511 | "source": "Role lambdaRole = Role.Builder.create(this, \"Role\")\n .assumedBy(new ServicePrincipal(\"lambda.amazonaws.com\"))\n .description(\"Example role...\")\n .build();\n\nStream stream = Stream.Builder.create(this, \"MyEncryptedStream\")\n .encryption(StreamEncryption.KMS)\n .build();\n\n// give lambda permissions to read stream\nstream.grantRead(lambdaRole);",
|
6512 | "version": "1"
|
6513 | },
|
6514 | "go": {
|
6515 | "source": "lambdaRole := iam.NewRole(this, jsii.String(\"Role\"), &roleProps{\n\tassumedBy: iam.NewServicePrincipal(jsii.String(\"lambda.amazonaws.com\")),\n\tdescription: jsii.String(\"Example role...\"),\n})\n\nstream := kinesis.NewStream(this, jsii.String(\"MyEncryptedStream\"), &streamProps{\n\tencryption: kinesis.streamEncryption_KMS,\n})\n\n// give lambda permissions to read stream\nstream.grantRead(lambdaRole)",
|
6516 | "version": "1"
|
6517 | },
|
6518 | "$": {
|
6519 | "source": "const lambdaRole = new iam.Role(this, 'Role', {\n assumedBy: new iam.ServicePrincipal('lambda.amazonaws.com'),\n description: 'Example role...',\n});\n\nconst stream = new kinesis.Stream(this, 'MyEncryptedStream', {\n encryption: kinesis.StreamEncryption.KMS,\n});\n\n// give lambda permissions to read stream\nstream.grantRead(lambdaRole);",
|
6520 | "version": "0"
|
6521 | }
|
6522 | },
|
6523 | "location": {
|
6524 | "api": {
|
6525 | "api": "type",
|
6526 | "fqn": "@aws-cdk/aws-iam.ServicePrincipal"
|
6527 | },
|
6528 | "field": {
|
6529 | "field": "example"
|
6530 | }
|
6531 | },
|
6532 | "didCompile": true,
|
6533 | "fqnsReferenced": [
|
6534 | "@aws-cdk/aws-iam.IGrantable",
|
6535 | "@aws-cdk/aws-iam.IPrincipal",
|
6536 | "@aws-cdk/aws-iam.Role",
|
6537 | "@aws-cdk/aws-iam.RoleProps",
|
6538 | "@aws-cdk/aws-iam.ServicePrincipal",
|
6539 | "@aws-cdk/aws-kinesis.Stream",
|
6540 | "@aws-cdk/aws-kinesis.StreamEncryption",
|
6541 | "@aws-cdk/aws-kinesis.StreamEncryption#KMS",
|
6542 | "@aws-cdk/aws-kinesis.StreamProps",
|
6543 | "constructs.Construct"
|
6544 | ],
|
6545 | "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core'; \nimport * as kinesis from '@aws-cdk/aws-kinesis';\nimport * as kms from '@aws-cdk/aws-kms';\nimport * as iam from '@aws-cdk/aws-iam';\n\nclass Fixture extends Stack { \n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst lambdaRole = new iam.Role(this, 'Role', {\n assumedBy: new iam.ServicePrincipal('lambda.amazonaws.com'),\n description: 'Example role...',\n});\n\nconst stream = new kinesis.Stream(this, 'MyEncryptedStream', {\n encryption: kinesis.StreamEncryption.KMS,\n});\n\n// give lambda permissions to read stream\nstream.grantRead(lambdaRole);\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}",
|
6546 | "syntaxKindCounter": {
|
6547 | "10": 4,
|
6548 | "75": 17,
|
6549 | "104": 2,
|
6550 | "193": 2,
|
6551 | "194": 6,
|
6552 | "196": 1,
|
6553 | "197": 3,
|
6554 | "225": 2,
|
6555 | "226": 1,
|
6556 | "242": 2,
|
6557 | "243": 2,
|
6558 | "281": 3
|
6559 | },
|
6560 | "fqnsFingerprint": "b3e160622eff8d1db83dfd0d3c2cc4af38d4f75a1aa5ed0d96ef1d5c6321ea4c"
|
6561 | },
|
6562 | "6e6d0eadaa8dfba737043bfd39bb9def63524d042477d26a1caa5b1917b49ebd": {
|
6563 | "translations": {
|
6564 | "python": {
|
6565 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_iam as iam\n\n# conditions: Any\n\nservice_principal_opts = iam.ServicePrincipalOpts(\n conditions={\n \"conditions_key\": conditions\n },\n region=\"region\"\n)",
|
6566 | "version": "2"
|
6567 | },
|
6568 | "csharp": {
|
6569 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.IAM;\n\nvar conditions;\n\nServicePrincipalOpts servicePrincipalOpts = new ServicePrincipalOpts {\n Conditions = new Dictionary<string, object> {\n { \"conditionsKey\", conditions }\n },\n Region = \"region\"\n};",
|
6570 | "version": "1"
|
6571 | },
|
6572 | "java": {
|
6573 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.iam.*;\n\nObject conditions;\n\nServicePrincipalOpts servicePrincipalOpts = ServicePrincipalOpts.builder()\n .conditions(Map.of(\n \"conditionsKey\", conditions))\n .region(\"region\")\n .build();",
|
6574 | "version": "1"
|
6575 | },
|
6576 | "go": {
|
6577 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport iam \"github.com/aws-samples/dummy/awscdkawsiam\"\n\nvar conditions interface{}\n\nservicePrincipalOpts := &servicePrincipalOpts{\n\tconditions: map[string]interface{}{\n\t\t\"conditionsKey\": conditions,\n\t},\n\tregion: jsii.String(\"region\"),\n}",
|
6578 | "version": "1"
|
6579 | },
|
6580 | "$": {
|
6581 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\n\ndeclare const conditions: any;\nconst servicePrincipalOpts: iam.ServicePrincipalOpts = {\n conditions: {\n conditionsKey: conditions,\n },\n region: 'region',\n};",
|
6582 | "version": "0"
|
6583 | }
|
6584 | },
|
6585 | "location": {
|
6586 | "api": {
|
6587 | "api": "type",
|
6588 | "fqn": "@aws-cdk/aws-iam.ServicePrincipalOpts"
|
6589 | },
|
6590 | "field": {
|
6591 | "field": "example"
|
6592 | }
|
6593 | },
|
6594 | "didCompile": true,
|
6595 | "fqnsReferenced": [
|
6596 | "@aws-cdk/aws-iam.ServicePrincipalOpts"
|
6597 | ],
|
6598 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\n\ndeclare const conditions: any;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst servicePrincipalOpts: iam.ServicePrincipalOpts = {\n conditions: {\n conditionsKey: conditions,\n },\n region: 'region',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
6599 | "syntaxKindCounter": {
|
6600 | "10": 2,
|
6601 | "75": 9,
|
6602 | "125": 1,
|
6603 | "130": 1,
|
6604 | "153": 1,
|
6605 | "169": 1,
|
6606 | "193": 2,
|
6607 | "225": 2,
|
6608 | "242": 2,
|
6609 | "243": 2,
|
6610 | "254": 1,
|
6611 | "255": 1,
|
6612 | "256": 1,
|
6613 | "281": 3,
|
6614 | "290": 1
|
6615 | },
|
6616 | "fqnsFingerprint": "291cba2331481a698a2d8893899f980702d05d929d55221ddd6fd3229ec47d33"
|
6617 | },
|
6618 | "9cb38653654acc5ea31abdfce11927e9627d6cb11bf88b2c3298e02bd6a02dd1": {
|
6619 | "translations": {
|
6620 | "python": {
|
6621 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_iam as iam\n\n# principal: iam.IPrincipal\n\nsession_tags_principal = iam.SessionTagsPrincipal(principal)",
|
6622 | "version": "2"
|
6623 | },
|
6624 | "csharp": {
|
6625 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.IAM;\n\nIPrincipal principal;\n\nSessionTagsPrincipal sessionTagsPrincipal = new SessionTagsPrincipal(principal);",
|
6626 | "version": "1"
|
6627 | },
|
6628 | "java": {
|
6629 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.iam.*;\n\nIPrincipal principal;\n\nSessionTagsPrincipal sessionTagsPrincipal = new SessionTagsPrincipal(principal);",
|
6630 | "version": "1"
|
6631 | },
|
6632 | "go": {
|
6633 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport iam \"github.com/aws-samples/dummy/awscdkawsiam\"\n\nvar principal iPrincipal\n\nsessionTagsPrincipal := iam.NewSessionTagsPrincipal(principal)",
|
6634 | "version": "1"
|
6635 | },
|
6636 | "$": {
|
6637 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\n\ndeclare const principal: iam.IPrincipal;\nconst sessionTagsPrincipal = new iam.SessionTagsPrincipal(principal);",
|
6638 | "version": "0"
|
6639 | }
|
6640 | },
|
6641 | "location": {
|
6642 | "api": {
|
6643 | "api": "type",
|
6644 | "fqn": "@aws-cdk/aws-iam.SessionTagsPrincipal"
|
6645 | },
|
6646 | "field": {
|
6647 | "field": "example"
|
6648 | }
|
6649 | },
|
6650 | "didCompile": true,
|
6651 | "fqnsReferenced": [
|
6652 | "@aws-cdk/aws-iam.IPrincipal",
|
6653 | "@aws-cdk/aws-iam.SessionTagsPrincipal"
|
6654 | ],
|
6655 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\n\ndeclare const principal: iam.IPrincipal;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst sessionTagsPrincipal = new iam.SessionTagsPrincipal(principal);\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
6656 | "syntaxKindCounter": {
|
6657 | "10": 1,
|
6658 | "75": 8,
|
6659 | "130": 1,
|
6660 | "153": 1,
|
6661 | "169": 1,
|
6662 | "194": 1,
|
6663 | "197": 1,
|
6664 | "225": 2,
|
6665 | "242": 2,
|
6666 | "243": 2,
|
6667 | "254": 1,
|
6668 | "255": 1,
|
6669 | "256": 1,
|
6670 | "290": 1
|
6671 | },
|
6672 | "fqnsFingerprint": "a63bef57622f0f695a5f9c61c01d3559f325fb7cedcfc3e86ddcb82f6035c764"
|
6673 | },
|
6674 | "3229f27fe6695ab3ce928ba92eac9d7509f1eca55a6047230ca33ba536bb74e7": {
|
6675 | "translations": {
|
6676 | "python": {
|
6677 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_iam as iam\n\nstar_principal = iam.StarPrincipal()",
|
6678 | "version": "2"
|
6679 | },
|
6680 | "csharp": {
|
6681 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.IAM;\n\nStarPrincipal starPrincipal = new StarPrincipal();",
|
6682 | "version": "1"
|
6683 | },
|
6684 | "java": {
|
6685 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.iam.*;\n\nStarPrincipal starPrincipal = new StarPrincipal();",
|
6686 | "version": "1"
|
6687 | },
|
6688 | "go": {
|
6689 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport iam \"github.com/aws-samples/dummy/awscdkawsiam\"\n\nstarPrincipal := iam.NewStarPrincipal()",
|
6690 | "version": "1"
|
6691 | },
|
6692 | "$": {
|
6693 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\nconst starPrincipal = new iam.StarPrincipal();",
|
6694 | "version": "0"
|
6695 | }
|
6696 | },
|
6697 | "location": {
|
6698 | "api": {
|
6699 | "api": "type",
|
6700 | "fqn": "@aws-cdk/aws-iam.StarPrincipal"
|
6701 | },
|
6702 | "field": {
|
6703 | "field": "example"
|
6704 | }
|
6705 | },
|
6706 | "didCompile": true,
|
6707 | "fqnsReferenced": [
|
6708 | "@aws-cdk/aws-iam.StarPrincipal"
|
6709 | ],
|
6710 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst starPrincipal = new iam.StarPrincipal();\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
6711 | "syntaxKindCounter": {
|
6712 | "10": 1,
|
6713 | "75": 4,
|
6714 | "194": 1,
|
6715 | "197": 1,
|
6716 | "225": 1,
|
6717 | "242": 1,
|
6718 | "243": 1,
|
6719 | "254": 1,
|
6720 | "255": 1,
|
6721 | "256": 1,
|
6722 | "290": 1
|
6723 | },
|
6724 | "fqnsFingerprint": "f636e4d3fc815e45267b65a63e8a91be9038216a6cf8d45cb6843ea312d8ab8b"
|
6725 | },
|
6726 | "5321d08a5adfabc36dae7d9d1b30977e3cd5c212d0d6439b20fdb0f67481e538": {
|
6727 | "translations": {
|
6728 | "python": {
|
6729 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_iam as iam\nimport constructs as constructs\n\n# construct: constructs.Construct\n\nunknown_principal = iam.UnknownPrincipal(\n resource=construct\n)",
|
6730 | "version": "2"
|
6731 | },
|
6732 | "csharp": {
|
6733 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.IAM;\nusing Constructs;\n\nConstruct construct;\n\nUnknownPrincipal unknownPrincipal = new UnknownPrincipal(new UnknownPrincipalProps {\n Resource = construct\n});",
|
6734 | "version": "1"
|
6735 | },
|
6736 | "java": {
|
6737 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.iam.*;\nimport software.constructs.*;\n\nConstruct construct;\n\nUnknownPrincipal unknownPrincipal = UnknownPrincipal.Builder.create()\n .resource(construct)\n .build();",
|
6738 | "version": "1"
|
6739 | },
|
6740 | "go": {
|
6741 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport iam \"github.com/aws-samples/dummy/awscdkawsiam\"\nimport constructs \"github.com/aws/constructs-go/constructs\"\n\nvar construct construct\n\nunknownPrincipal := iam.NewUnknownPrincipal(&unknownPrincipalProps{\n\tresource: construct,\n})",
|
6742 | "version": "1"
|
6743 | },
|
6744 | "$": {
|
6745 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\nimport * as constructs from 'constructs';\n\ndeclare const construct: constructs.Construct;\nconst unknownPrincipal = new iam.UnknownPrincipal({\n resource: construct,\n});",
|
6746 | "version": "0"
|
6747 | }
|
6748 | },
|
6749 | "location": {
|
6750 | "api": {
|
6751 | "api": "type",
|
6752 | "fqn": "@aws-cdk/aws-iam.UnknownPrincipal"
|
6753 | },
|
6754 | "field": {
|
6755 | "field": "example"
|
6756 | }
|
6757 | },
|
6758 | "didCompile": true,
|
6759 | "fqnsReferenced": [
|
6760 | "@aws-cdk/aws-iam.UnknownPrincipal",
|
6761 | "@aws-cdk/aws-iam.UnknownPrincipalProps",
|
6762 | "constructs.IConstruct"
|
6763 | ],
|
6764 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\nimport * as constructs from 'constructs';\n\ndeclare const construct: constructs.Construct;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst unknownPrincipal = new iam.UnknownPrincipal({\n resource: construct,\n});\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
6765 | "syntaxKindCounter": {
|
6766 | "10": 2,
|
6767 | "75": 10,
|
6768 | "130": 1,
|
6769 | "153": 1,
|
6770 | "169": 1,
|
6771 | "193": 1,
|
6772 | "194": 1,
|
6773 | "197": 1,
|
6774 | "225": 2,
|
6775 | "242": 2,
|
6776 | "243": 2,
|
6777 | "254": 2,
|
6778 | "255": 2,
|
6779 | "256": 2,
|
6780 | "281": 1,
|
6781 | "290": 1
|
6782 | },
|
6783 | "fqnsFingerprint": "cccfe2a3045c37a13df1500b7b5a5c9071823ab5aa148f9a71c2802f60d5b005"
|
6784 | },
|
6785 | "7503ecd882e6d401382095d1ebfcf02a7da7a9aea6ec130810748b606fc641af": {
|
6786 | "translations": {
|
6787 | "python": {
|
6788 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_iam as iam\nimport constructs as constructs\n\n# construct: constructs.Construct\n\nunknown_principal_props = iam.UnknownPrincipalProps(\n resource=construct\n)",
|
6789 | "version": "2"
|
6790 | },
|
6791 | "csharp": {
|
6792 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.IAM;\nusing Constructs;\n\nConstruct construct;\n\nUnknownPrincipalProps unknownPrincipalProps = new UnknownPrincipalProps {\n Resource = construct\n};",
|
6793 | "version": "1"
|
6794 | },
|
6795 | "java": {
|
6796 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.iam.*;\nimport software.constructs.*;\n\nConstruct construct;\n\nUnknownPrincipalProps unknownPrincipalProps = UnknownPrincipalProps.builder()\n .resource(construct)\n .build();",
|
6797 | "version": "1"
|
6798 | },
|
6799 | "go": {
|
6800 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport iam \"github.com/aws-samples/dummy/awscdkawsiam\"\nimport constructs \"github.com/aws/constructs-go/constructs\"\n\nvar construct construct\n\nunknownPrincipalProps := &unknownPrincipalProps{\n\tresource: construct,\n}",
|
6801 | "version": "1"
|
6802 | },
|
6803 | "$": {
|
6804 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\nimport * as constructs from 'constructs';\n\ndeclare const construct: constructs.Construct;\nconst unknownPrincipalProps: iam.UnknownPrincipalProps = {\n resource: construct,\n};",
|
6805 | "version": "0"
|
6806 | }
|
6807 | },
|
6808 | "location": {
|
6809 | "api": {
|
6810 | "api": "type",
|
6811 | "fqn": "@aws-cdk/aws-iam.UnknownPrincipalProps"
|
6812 | },
|
6813 | "field": {
|
6814 | "field": "example"
|
6815 | }
|
6816 | },
|
6817 | "didCompile": true,
|
6818 | "fqnsReferenced": [
|
6819 | "@aws-cdk/aws-iam.UnknownPrincipalProps",
|
6820 | "constructs.IConstruct"
|
6821 | ],
|
6822 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\nimport * as constructs from 'constructs';\n\ndeclare const construct: constructs.Construct;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst unknownPrincipalProps: iam.UnknownPrincipalProps = {\n resource: construct,\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
6823 | "syntaxKindCounter": {
|
6824 | "10": 2,
|
6825 | "75": 10,
|
6826 | "130": 1,
|
6827 | "153": 2,
|
6828 | "169": 2,
|
6829 | "193": 1,
|
6830 | "225": 2,
|
6831 | "242": 2,
|
6832 | "243": 2,
|
6833 | "254": 2,
|
6834 | "255": 2,
|
6835 | "256": 2,
|
6836 | "281": 1,
|
6837 | "290": 1
|
6838 | },
|
6839 | "fqnsFingerprint": "11aa57a9d7e7cae8d70eb79be694a6b0c901d9e35235e7be887d6e2eea00523c"
|
6840 | },
|
6841 | "b6d7f6c98a8fdf4247186afdeb42a3acef9225d766bc3dc302b31d146b365751": {
|
6842 | "translations": {
|
6843 | "python": {
|
6844 | "source": "user = iam.User(self, \"MyUser\") # or User.fromUserName(stack, 'User', 'johnsmith');\ngroup = iam.Group(self, \"MyGroup\") # or Group.fromGroupArn(stack, 'Group', 'arn:aws:iam::account-id:group/group-name');\n\nuser.add_to_group(group)\n# or\ngroup.add_user(user)",
|
6845 | "version": "2"
|
6846 | },
|
6847 | "csharp": {
|
6848 | "source": "User user = new User(this, \"MyUser\"); // or User.fromUserName(stack, 'User', 'johnsmith');\nGroup group = new Group(this, \"MyGroup\"); // or Group.fromGroupArn(stack, 'Group', 'arn:aws:iam::account-id:group/group-name');\n\nuser.AddToGroup(group);\n// or\ngroup.AddUser(user);",
|
6849 | "version": "1"
|
6850 | },
|
6851 | "java": {
|
6852 | "source": "User user = new User(this, \"MyUser\"); // or User.fromUserName(stack, 'User', 'johnsmith');\nGroup group = new Group(this, \"MyGroup\"); // or Group.fromGroupArn(stack, 'Group', 'arn:aws:iam::account-id:group/group-name');\n\nuser.addToGroup(group);\n// or\ngroup.addUser(user);",
|
6853 | "version": "1"
|
6854 | },
|
6855 | "go": {
|
6856 | "source": "user := iam.NewUser(this, jsii.String(\"MyUser\")) // or User.fromUserName(stack, 'User', 'johnsmith');\ngroup := iam.NewGroup(this, jsii.String(\"MyGroup\")) // or Group.fromGroupArn(stack, 'Group', 'arn:aws:iam::account-id:group/group-name');\n\nuser.addToGroup(group)\n// or\ngroup.addUser(user)",
|
6857 | "version": "1"
|
6858 | },
|
6859 | "$": {
|
6860 | "source": "const user = new iam.User(this, 'MyUser'); // or User.fromUserName(stack, 'User', 'johnsmith');\nconst group = new iam.Group(this, 'MyGroup'); // or Group.fromGroupArn(stack, 'Group', 'arn:aws:iam::account-id:group/group-name');\n\nuser.addToGroup(group);\n// or\ngroup.addUser(user);",
|
6861 | "version": "0"
|
6862 | }
|
6863 | },
|
6864 | "location": {
|
6865 | "api": {
|
6866 | "api": "type",
|
6867 | "fqn": "@aws-cdk/aws-iam.User"
|
6868 | },
|
6869 | "field": {
|
6870 | "field": "example"
|
6871 | }
|
6872 | },
|
6873 | "didCompile": true,
|
6874 | "fqnsReferenced": [
|
6875 | "@aws-cdk/aws-iam.Group",
|
6876 | "@aws-cdk/aws-iam.IGroup",
|
6877 | "@aws-cdk/aws-iam.IUser",
|
6878 | "@aws-cdk/aws-iam.User",
|
6879 | "@aws-cdk/aws-iam.User#addToGroup",
|
6880 | "constructs.Construct"
|
6881 | ],
|
6882 | "fullSource": "import { Construct } from 'constructs';\nimport { CustomResource, Stack } from '@aws-cdk/core';\nimport * as codepipeline from '@aws-cdk/aws-codepipeline';\nimport * as dynamodb from '@aws-cdk/aws-dynamodb';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as iam from '@aws-cdk/aws-iam';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst user = new iam.User(this, 'MyUser'); // or User.fromUserName(stack, 'User', 'johnsmith');\nconst group = new iam.Group(this, 'MyGroup'); // or Group.fromGroupArn(stack, 'Group', 'arn:aws:iam::account-id:group/group-name');\n\nuser.addToGroup(group);\n// or\ngroup.addUser(user);\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
6883 | "syntaxKindCounter": {
|
6884 | "10": 2,
|
6885 | "75": 12,
|
6886 | "104": 2,
|
6887 | "194": 4,
|
6888 | "196": 2,
|
6889 | "197": 2,
|
6890 | "225": 2,
|
6891 | "226": 2,
|
6892 | "242": 2,
|
6893 | "243": 2
|
6894 | },
|
6895 | "fqnsFingerprint": "248668b26037e978b96fac1fa9cfc2310d58ec2ed3e43e2a0b0b1bb5abd0fadc"
|
6896 | },
|
6897 | "e90f2a1af4abfea90ac28f3d752ee9e8f932d91bcbd5d4abfbf5e1b5ace31e68": {
|
6898 | "translations": {
|
6899 | "python": {
|
6900 | "source": "user = iam.User.from_user_attributes(self, \"MyImportedUserByAttributes\",\n user_arn=\"arn:aws:iam::123456789012:user/johnsmith\"\n)",
|
6901 | "version": "2"
|
6902 | },
|
6903 | "csharp": {
|
6904 | "source": "IUser user = User.FromUserAttributes(this, \"MyImportedUserByAttributes\", new UserAttributes {\n UserArn = \"arn:aws:iam::123456789012:user/johnsmith\"\n});",
|
6905 | "version": "1"
|
6906 | },
|
6907 | "java": {
|
6908 | "source": "IUser user = User.fromUserAttributes(this, \"MyImportedUserByAttributes\", UserAttributes.builder()\n .userArn(\"arn:aws:iam::123456789012:user/johnsmith\")\n .build());",
|
6909 | "version": "1"
|
6910 | },
|
6911 | "go": {
|
6912 | "source": "user := iam.user.fromUserAttributes(this, jsii.String(\"MyImportedUserByAttributes\"), &userAttributes{\n\tuserArn: jsii.String(\"arn:aws:iam::123456789012:user/johnsmith\"),\n})",
|
6913 | "version": "1"
|
6914 | },
|
6915 | "$": {
|
6916 | "source": "const user = iam.User.fromUserAttributes(this, 'MyImportedUserByAttributes', {\n userArn: 'arn:aws:iam::123456789012:user/johnsmith',\n});",
|
6917 | "version": "0"
|
6918 | }
|
6919 | },
|
6920 | "location": {
|
6921 | "api": {
|
6922 | "api": "type",
|
6923 | "fqn": "@aws-cdk/aws-iam.UserAttributes"
|
6924 | },
|
6925 | "field": {
|
6926 | "field": "example"
|
6927 | }
|
6928 | },
|
6929 | "didCompile": true,
|
6930 | "fqnsReferenced": [
|
6931 | "@aws-cdk/aws-iam.IUser",
|
6932 | "@aws-cdk/aws-iam.User",
|
6933 | "@aws-cdk/aws-iam.User#fromUserAttributes",
|
6934 | "@aws-cdk/aws-iam.UserAttributes",
|
6935 | "constructs.Construct"
|
6936 | ],
|
6937 | "fullSource": "import { Construct } from 'constructs';\nimport { CustomResource, Stack } from '@aws-cdk/core';\nimport * as codepipeline from '@aws-cdk/aws-codepipeline';\nimport * as dynamodb from '@aws-cdk/aws-dynamodb';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as iam from '@aws-cdk/aws-iam';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst user = iam.User.fromUserAttributes(this, 'MyImportedUserByAttributes', {\n userArn: 'arn:aws:iam::123456789012:user/johnsmith',\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
6938 | "syntaxKindCounter": {
|
6939 | "10": 2,
|
6940 | "75": 5,
|
6941 | "104": 1,
|
6942 | "193": 1,
|
6943 | "194": 2,
|
6944 | "196": 1,
|
6945 | "225": 1,
|
6946 | "242": 1,
|
6947 | "243": 1,
|
6948 | "281": 1
|
6949 | },
|
6950 | "fqnsFingerprint": "142b97bc33e8a22f5427d143740bba328b6ba700775bb684b6cf0502cd6ba613"
|
6951 | },
|
6952 | "3bdb36557191c29ae7f00f987332f9441027771c9205a9ad3fdaaa392893a9cf": {
|
6953 | "translations": {
|
6954 | "python": {
|
6955 | "source": "user = User(self, \"MyUser\", password=cdk.SecretValue.unsafe_plain_text(\"1234\"))\ngroup = Group(self, \"MyGroup\")\n\npolicy = Policy(self, \"MyPolicy\")\npolicy.attach_to_user(user)\ngroup.attach_inline_policy(policy)",
|
6956 | "version": "2"
|
6957 | },
|
6958 | "csharp": {
|
6959 | "source": "User user = new User(this, \"MyUser\", new UserProps { Password = SecretValue.UnsafePlainText(\"1234\") });\nGroup group = new Group(this, \"MyGroup\");\n\nPolicy policy = new Policy(this, \"MyPolicy\");\npolicy.AttachToUser(user);\ngroup.AttachInlinePolicy(policy);",
|
6960 | "version": "1"
|
6961 | },
|
6962 | "java": {
|
6963 | "source": "User user = User.Builder.create(this, \"MyUser\").password(SecretValue.unsafePlainText(\"1234\")).build();\nGroup group = new Group(this, \"MyGroup\");\n\nPolicy policy = new Policy(this, \"MyPolicy\");\npolicy.attachToUser(user);\ngroup.attachInlinePolicy(policy);",
|
6964 | "version": "1"
|
6965 | },
|
6966 | "go": {
|
6967 | "source": "user := lib.NewUser(this, jsii.String(\"MyUser\"), &userProps{\n\tpassword: cdk.secretValue.unsafePlainText(jsii.String(\"1234\")),\n})\ngroup := lib.NewGroup(this, jsii.String(\"MyGroup\"))\n\npolicy := lib.NewPolicy(this, jsii.String(\"MyPolicy\"))\npolicy.attachToUser(user)\ngroup.attachInlinePolicy(policy)",
|
6968 | "version": "1"
|
6969 | },
|
6970 | "$": {
|
6971 | "source": " const user = new User(this, 'MyUser', { password: cdk.SecretValue.unsafePlainText('1234') });\n const group = new Group(this, 'MyGroup');\n\n const policy = new Policy(this, 'MyPolicy');\n policy.attachToUser(user);\n group.attachInlinePolicy(policy);",
|
6972 | "version": "0"
|
6973 | }
|
6974 | },
|
6975 | "location": {
|
6976 | "api": {
|
6977 | "api": "type",
|
6978 | "fqn": "@aws-cdk/aws-iam.UserProps"
|
6979 | },
|
6980 | "field": {
|
6981 | "field": "example"
|
6982 | }
|
6983 | },
|
6984 | "didCompile": true,
|
6985 | "fqnsReferenced": [
|
6986 | "@aws-cdk/aws-iam.Group",
|
6987 | "@aws-cdk/aws-iam.IUser",
|
6988 | "@aws-cdk/aws-iam.Policy",
|
6989 | "@aws-cdk/aws-iam.Policy#attachToUser",
|
6990 | "@aws-cdk/aws-iam.User",
|
6991 | "@aws-cdk/aws-iam.UserProps",
|
6992 | "@aws-cdk/core.SecretValue",
|
6993 | "@aws-cdk/core.SecretValue#unsafePlainText",
|
6994 | "constructs.Construct"
|
6995 | ],
|
6996 | "fullSource": "import * as cdk from '@aws-cdk/core';\nimport * as constructs from 'constructs';\nimport { Group, Policy, User } from '../lib';\n\n// keep this import separate from other imports to reduce chance for merge conflicts with v2-main\n// eslint-disable-next-line no-duplicate-imports, import/order\nimport { Construct } from '@aws-cdk/core';\n\nexport class ExampleConstruct extends Construct {\n constructor(scope: constructs.Construct, id: string) {\n super(scope, id);\n\n /// !show\n const user = new User(this, 'MyUser', { password: cdk.SecretValue.unsafePlainText('1234') });\n const group = new Group(this, 'MyGroup');\n\n const policy = new Policy(this, 'MyPolicy');\n policy.attachToUser(user);\n group.attachInlinePolicy(policy);\n /// !hide\n }\n}\n",
|
6997 | "syntaxKindCounter": {
|
6998 | "10": 4,
|
6999 | "75": 16,
|
7000 | "104": 3,
|
7001 | "193": 1,
|
7002 | "194": 4,
|
7003 | "196": 3,
|
7004 | "197": 3,
|
7005 | "225": 3,
|
7006 | "226": 2,
|
7007 | "242": 3,
|
7008 | "243": 3,
|
7009 | "281": 1
|
7010 | },
|
7011 | "fqnsFingerprint": "2828ffe066431d3c0e232905e674b2eda81211862d764c744d999c5b8a0565fc"
|
7012 | },
|
7013 | "3626a953cffefda7e4d4d20d7982db1c8aa1282ee4272597f45936cc0b34b8d0": {
|
7014 | "translations": {
|
7015 | "python": {
|
7016 | "source": "principal = iam.WebIdentityPrincipal(\"cognito-identity.amazonaws.com\", {\n \"StringEquals\": {\"cognito-identity.amazonaws.com:aud\": \"us-east-2:12345678-abcd-abcd-abcd-123456\"},\n \"ForAnyValue:StringLike\": {\"cognito-identity.amazonaws.com:amr\": \"unauthenticated\"}\n})",
|
7017 | "version": "2"
|
7018 | },
|
7019 | "csharp": {
|
7020 | "source": "WebIdentityPrincipal principal = new WebIdentityPrincipal(\"cognito-identity.amazonaws.com\", new Dictionary<string, object> {\n { \"StringEquals\", new Dictionary<string, string> { { \"cognito-identity.amazonaws.com:aud\", \"us-east-2:12345678-abcd-abcd-abcd-123456\" } } },\n { \"ForAnyValue:StringLike\", new Dictionary<string, string> { { \"cognito-identity.amazonaws.com:amr\", \"unauthenticated\" } } }\n});",
|
7021 | "version": "1"
|
7022 | },
|
7023 | "java": {
|
7024 | "source": "WebIdentityPrincipal principal = new WebIdentityPrincipal(\"cognito-identity.amazonaws.com\", Map.of(\n \"StringEquals\", Map.of(\"cognito-identity.amazonaws.com:aud\", \"us-east-2:12345678-abcd-abcd-abcd-123456\"),\n \"ForAnyValue:StringLike\", Map.of(\"cognito-identity.amazonaws.com:amr\", \"unauthenticated\")));",
|
7025 | "version": "1"
|
7026 | },
|
7027 | "go": {
|
7028 | "source": "principal := iam.NewWebIdentityPrincipal(jsii.String(\"cognito-identity.amazonaws.com\"), map[string]interface{}{\n\t\"StringEquals\": map[string]*string{\n\t\t\"cognito-identity.amazonaws.com:aud\": jsii.String(\"us-east-2:12345678-abcd-abcd-abcd-123456\"),\n\t},\n\t\"ForAnyValue:StringLike\": map[string]*string{\n\t\t\"cognito-identity.amazonaws.com:amr\": jsii.String(\"unauthenticated\"),\n\t},\n})",
|
7029 | "version": "1"
|
7030 | },
|
7031 | "$": {
|
7032 | "source": "const principal = new iam.WebIdentityPrincipal('cognito-identity.amazonaws.com', {\n 'StringEquals': { 'cognito-identity.amazonaws.com:aud': 'us-east-2:12345678-abcd-abcd-abcd-123456' },\n 'ForAnyValue:StringLike': {'cognito-identity.amazonaws.com:amr': 'unauthenticated' },\n});",
|
7033 | "version": "0"
|
7034 | }
|
7035 | },
|
7036 | "location": {
|
7037 | "api": {
|
7038 | "api": "type",
|
7039 | "fqn": "@aws-cdk/aws-iam.WebIdentityPrincipal"
|
7040 | },
|
7041 | "field": {
|
7042 | "field": "example"
|
7043 | }
|
7044 | },
|
7045 | "didCompile": true,
|
7046 | "fqnsReferenced": [
|
7047 | "@aws-cdk/aws-iam.WebIdentityPrincipal"
|
7048 | ],
|
7049 | "fullSource": "import { Construct } from 'constructs';\nimport { CustomResource, Stack } from '@aws-cdk/core';\nimport * as codepipeline from '@aws-cdk/aws-codepipeline';\nimport * as dynamodb from '@aws-cdk/aws-dynamodb';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as iam from '@aws-cdk/aws-iam';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst principal = new iam.WebIdentityPrincipal('cognito-identity.amazonaws.com', {\n 'StringEquals': { 'cognito-identity.amazonaws.com:aud': 'us-east-2:12345678-abcd-abcd-abcd-123456' },\n 'ForAnyValue:StringLike': {'cognito-identity.amazonaws.com:amr': 'unauthenticated' },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
7050 | "syntaxKindCounter": {
|
7051 | "10": 7,
|
7052 | "75": 3,
|
7053 | "193": 3,
|
7054 | "194": 1,
|
7055 | "197": 1,
|
7056 | "225": 1,
|
7057 | "242": 1,
|
7058 | "243": 1,
|
7059 | "281": 4
|
7060 | },
|
7061 | "fqnsFingerprint": "879c5be49aaf2d1485829ef30cbb745bf1e3fbc74e9e6d413d6cacab61c65cd4"
|
7062 | },
|
7063 | "fed506cb67536f7a7f4f0f3e19be5c1036b962ff7126c80b4aa2fa04491de355": {
|
7064 | "translations": {
|
7065 | "python": {
|
7066 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_iam as iam\n\nwithout_policy_updates_options = iam.WithoutPolicyUpdatesOptions(\n add_grants_to_resources=False\n)",
|
7067 | "version": "2"
|
7068 | },
|
7069 | "csharp": {
|
7070 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.IAM;\n\nWithoutPolicyUpdatesOptions withoutPolicyUpdatesOptions = new WithoutPolicyUpdatesOptions {\n AddGrantsToResources = false\n};",
|
7071 | "version": "1"
|
7072 | },
|
7073 | "java": {
|
7074 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.iam.*;\n\nWithoutPolicyUpdatesOptions withoutPolicyUpdatesOptions = WithoutPolicyUpdatesOptions.builder()\n .addGrantsToResources(false)\n .build();",
|
7075 | "version": "1"
|
7076 | },
|
7077 | "go": {
|
7078 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport iam \"github.com/aws-samples/dummy/awscdkawsiam\"\n\nwithoutPolicyUpdatesOptions := &withoutPolicyUpdatesOptions{\n\taddGrantsToResources: jsii.Boolean(false),\n}",
|
7079 | "version": "1"
|
7080 | },
|
7081 | "$": {
|
7082 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\nconst withoutPolicyUpdatesOptions: iam.WithoutPolicyUpdatesOptions = {\n addGrantsToResources: false,\n};",
|
7083 | "version": "0"
|
7084 | }
|
7085 | },
|
7086 | "location": {
|
7087 | "api": {
|
7088 | "api": "type",
|
7089 | "fqn": "@aws-cdk/aws-iam.WithoutPolicyUpdatesOptions"
|
7090 | },
|
7091 | "field": {
|
7092 | "field": "example"
|
7093 | }
|
7094 | },
|
7095 | "didCompile": true,
|
7096 | "fqnsReferenced": [
|
7097 | "@aws-cdk/aws-iam.WithoutPolicyUpdatesOptions"
|
7098 | ],
|
7099 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst withoutPolicyUpdatesOptions: iam.WithoutPolicyUpdatesOptions = {\n addGrantsToResources: false,\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
7100 | "syntaxKindCounter": {
|
7101 | "10": 1,
|
7102 | "75": 5,
|
7103 | "91": 1,
|
7104 | "153": 1,
|
7105 | "169": 1,
|
7106 | "193": 1,
|
7107 | "225": 1,
|
7108 | "242": 1,
|
7109 | "243": 1,
|
7110 | "254": 1,
|
7111 | "255": 1,
|
7112 | "256": 1,
|
7113 | "281": 1,
|
7114 | "290": 1
|
7115 | },
|
7116 | "fqnsFingerprint": "34e2aa4431ebfe66760b7aca21944f26f4017d25616d5647e36a9233b5297d85"
|
7117 | }
|
7118 | }
|
7119 | }
|