-
Notifications
You must be signed in to change notification settings - Fork 17
/
awsiam_FromRoleArnOptions.go
28 lines (25 loc) · 1.15 KB
/
awsiam_FromRoleArnOptions.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package awsiam
// Options allowing customizing the behavior of {@link Role.fromRoleArn}.
//
// Example:
// role := iam.role.fromRoleArn(this, jsii.String("Role"), jsii.String("arn:aws:iam::123456789012:role/MyExistingRole"), &fromRoleArnOptions{
// // Set 'mutable' to 'false' to use the role as-is and prevent adding new
// // policies to it. The default is 'true', which means the role may be
// // modified as part of the deployment.
// mutable: jsii.Boolean(false),
// })
//
// Experimental.
type FromRoleArnOptions struct {
// For immutable roles: add grants to resources instead of dropping them.
//
// If this is `false` or not specified, grant permissions added to this role are ignored.
// It is your own responsibility to make sure the role has the required permissions.
//
// If this is `true`, any grant permissions will be added to the resource instead.
// Experimental.
AddGrantsToResources *bool `field:"optional" json:"addGrantsToResources" yaml:"addGrantsToResources"`
// Whether the imported role can be modified by attaching policy resources to it.
// Experimental.
Mutable *bool `field:"optional" json:"mutable" yaml:"mutable"`
}