EncryptedPermissionsOptions Struct
Options for configuring permissions on encrypted resources.
| Source | core/lib/grants.ts |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cdk from 'aws-cdk-lib';
const encryptedPermissionsOptions: cdk.EncryptedPermissionsOptions = {
keyActions: ['keyActions'],
resourceArns: ['resourceArns'],
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk as cdk
encrypted_permissions_options = cdk.EncryptedPermissionsOptions(
key_actions=["keyActions"],
resource_arns=["resourceArns"]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.*;
EncryptedPermissionsOptions encryptedPermissionsOptions = EncryptedPermissionsOptions.builder()
.keyActions(List.of("keyActions"))
.resourceArns(List.of("resourceArns"))
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK;
var encryptedPermissionsOptions = new EncryptedPermissionsOptions {
KeyActions = new [] { "keyActions" },
ResourceArns = new [] { "resourceArns" }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import cdk "github.com/aws/aws-cdk-go/awscdk"
encryptedPermissionsOptions := &EncryptedPermissionsOptions{
KeyActions: []*string{
jsii.String("keyActions"),
},
ResourceArns: []*string{
jsii.String("resourceArns"),
},
}
Properties
keyActionsoptionalstring[]key_actionsoptionaltyping.List[str]keyActionsoptionalList<String>KeyActionsoptionalstring[]KeyActionsoptional*[]*string #The KMS key actions to grant permissions for.
Default: No permission is added to the KMS key, even if it exists
resourceArnsoptionalstring[]resource_arnsoptionaltyping.List[str]resourceArnsoptionalList<String>ResourceArnsoptionalstring[]ResourceArnsoptional*[]*string #The ARNs of the resources to grant permissions on.
Default: The ARN of the resource associated with the grant is used.