Skip to content
v2.278.0

ConditionProperty Struct ​

A time-bound condition controlling when the permit is active.

Exactly one of AllowAfter or AllowBefore must be provided.

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';
const conditionProperty: supportauthz.CfnSupportPermit.ConditionProperty = {
  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

condition_property = 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.*;

ConditionProperty conditionProperty = ConditionProperty.builder()
        .allowAfter("allowAfter")
        .allowBefore("allowBefore")
        .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 conditionProperty = 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"

conditionProperty := &ConditionProperty{
	AllowAfter: jsii.String("allowAfter"),
	AllowBefore: jsii.String("allowBefore"),
}

Properties ​

allowAfteroptionalstringallow_afteroptionalstrallowAfteroptionalStringAllowAfteroptionalstringAllowAfteroptional*string #
The permit is active only after this time.
allowBeforeoptionalstringallow_beforeoptionalstrallowBeforeoptionalStringAllowBeforeoptionalstringAllowBeforeoptional*string #
The permit is active only before this time.