Skip to content
v2.278.0

PermitProperty Struct ​

The grant definition: which actions on which resources, optionally constrained by time conditions.

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 permitProperty: supportauthz.CfnSupportPermit.PermitProperty = {
  actions: {
    actions: ['actions'],
    allActions: allActions,
  },
  resources: {
    allResourcesInRegion: allResourcesInRegion,
    resources: ['resources'],
  },

  // the properties below are optional
  conditions: [{
    allowAfter: 'allowAfter',
    allowBefore: 'allowBefore',
  }],
};
python
# 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

permit_property = 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"
    )]
)
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;

PermitProperty permitProperty = 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();
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 permitProperty = 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"
    } }
};
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{}

permitProperty := &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"),
		},
	},
}

Properties ​

actionsIResolvable | CfnSupportPermit.ActionSetPropertyactionstyping.Union[IResolvable, ActionSetProperty]actionsIResolvableActionsIResolvableActionsinterface{} required #
The set of actions a support permit grants.

Exactly one of AllActions or Actions must be provided.

conditionsoptionalIResolvable | IResolvable | CfnSupportPermit.ConditionProperty[]conditionsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, ConditionProperty]]]conditionsoptionalIResolvableConditionsoptionalIResolvableConditionsoptionalinterface{} #
Optional time-bound conditions (at most two).
resourcesIResolvable | CfnSupportPermit.ResourceSetPropertyresourcestyping.Union[IResolvable, ResourceSetProperty]resourcesIResolvableResourcesIResolvableResourcesinterface{} required #
The set of resources a support permit applies to.

Exactly one of AllResourcesInRegion or Resources must be provided.