CfnSupportPermitProps Struct
Properties for defining a CfnSupportPermit.
| Source | |
|---|---|
| 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 { aws_supportauthz as supportauthz } from 'aws-cdk-lib';
declare const allActions: any;
declare const allResourcesInRegion: any;
const cfnSupportPermitProps: supportauthz.CfnSupportPermitProps = {
name: 'name',
permit: {
actions: {
actions: ['actions'],
allActions: allActions,
},
resources: {
allResourcesInRegion: allResourcesInRegion,
resources: ['resources'],
},
// the properties below are optional
conditions: [{
allowAfter: 'allowAfter',
allowBefore: 'allowBefore',
}],
},
signingKeyInfo: {
kmsKey: 'kmsKey',
},
// the properties below are optional
description: 'description',
supportCaseDisplayId: 'supportCaseDisplayId',
tags: [{
key: 'key',
value: 'value',
}],
};
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_supportauthz as supportauthz
# all_actions: Any
# all_resources_in_region: Any
cfn_support_permit_props = supportauthz.CfnSupportPermitProps(
name="name",
permit=supportauthz.CfnSupportPermit.PermitProperty(
actions=supportauthz.CfnSupportPermit.ActionSetProperty(
actions=["actions"],
all_actions=all_actions
),
resources=supportauthz.CfnSupportPermit.ResourceSetProperty(
all_resources_in_region=all_resources_in_region,
resources=["resources"]
),
# the properties below are optional
conditions=[supportauthz.CfnSupportPermit.ConditionProperty(
allow_after="allowAfter",
allow_before="allowBefore"
)]
),
signing_key_info=supportauthz.CfnSupportPermit.SigningKeyInfoProperty(
kms_key="kmsKey"
),
# the properties below are optional
description="description",
support_case_display_id="supportCaseDisplayId",
tags=[CfnTag(
key="key",
value="value"
)]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.supportauthz.*;
Object allActions;
Object allResourcesInRegion;
CfnSupportPermitProps cfnSupportPermitProps = CfnSupportPermitProps.builder()
.name("name")
.permit(PermitProperty.builder()
.actions(ActionSetProperty.builder()
.actions(List.of("actions"))
.allActions(allActions)
.build())
.resources(ResourceSetProperty.builder()
.allResourcesInRegion(allResourcesInRegion)
.resources(List.of("resources"))
.build())
// the properties below are optional
.conditions(List.of(ConditionProperty.builder()
.allowAfter("allowAfter")
.allowBefore("allowBefore")
.build()))
.build())
.signingKeyInfo(SigningKeyInfoProperty.builder()
.kmsKey("kmsKey")
.build())
// the properties below are optional
.description("description")
.supportCaseDisplayId("supportCaseDisplayId")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.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.AWS.SupportAuthZ;
var allActions;
var allResourcesInRegion;
var cfnSupportPermitProps = new CfnSupportPermitProps {
Name = "name",
Permit = new PermitProperty {
Actions = new ActionSetProperty {
Actions = new [] { "actions" },
AllActions = allActions
},
Resources = new ResourceSetProperty {
AllResourcesInRegion = allResourcesInRegion,
Resources = new [] { "resources" }
},
// the properties below are optional
Conditions = new [] { new ConditionProperty {
AllowAfter = "allowAfter",
AllowBefore = "allowBefore"
} }
},
SigningKeyInfo = new SigningKeyInfoProperty {
KmsKey = "kmsKey"
},
// the properties below are optional
Description = "description",
SupportCaseDisplayId = "supportCaseDisplayId",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
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 "github.com/aws/aws-cdk-go/awscdk"
var allActions interface{}
var allResourcesInRegion interface{}
cfnSupportPermitProps := &CfnSupportPermitProps{
Name: jsii.String("name"),
Permit: &PermitProperty{
Actions: &ActionSetProperty{
Actions: []*string{
jsii.String("actions"),
},
AllActions: allActions,
},
Resources: &ResourceSetProperty{
AllResourcesInRegion: allResourcesInRegion,
Resources: []*string{
jsii.String("resources"),
},
},
// the properties below are optional
Conditions: []interface{}{
&ConditionProperty{
AllowAfter: jsii.String("allowAfter"),
AllowBefore: jsii.String("allowBefore"),
},
},
},
SigningKeyInfo: &SigningKeyInfoProperty{
KmsKey: jsii.String("kmsKey"),
},
// the properties below are optional
Description: jsii.String("description"),
SupportCaseDisplayId: jsii.String("supportCaseDisplayId"),
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
}
Properties
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #An optional description of the support permit.
The name of the support permit.
permitIResolvable | CfnSupportPermit.PermitPropertypermittyping.Union[IResolvable, PermitProperty]permitIResolvablePermitIResolvablePermitinterface{} required #The grant definition: which actions on which resources, optionally constrained by time conditions.
signingKeyInfoIResolvable | CfnSupportPermit.signing_key_infotyping.Union[IResolvable, SigningKeyInfoProperty]signingKeyInfoIResolvableSigningKeyInfoIResolvableSigningKeyInfointerface{} required #The signing key used by the permit.
Exactly one key type must be provided.
supportCaseDisplayIdoptionalstringsupport_case_display_idoptionalstrsupportCaseDisplayIdoptionalStringSupportCaseDisplayIdoptionalstringSupportCaseDisplayIdoptional*string #The support case display identifier associated with the permit.
When provided, the permit is linked to the specified AWS Support case.