CfnRecordSetProtectionProps Struct
Properties for defining a CfnRecordSetProtection.
| Source |
|---|
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_route53 as route53 } from 'aws-cdk-lib';
const cfnRecordSetProtectionProps: route53.CfnRecordSetProtectionProps = {
hostedZoneId: 'hostedZoneId',
recordName: 'recordName',
recordType: 'recordType',
// the properties below are optional
comment: 'comment',
};
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_route53 as route53
cfn_record_set_protection_props = route53.CfnRecordSetProtectionProps(
hosted_zone_id="hostedZoneId",
record_name="recordName",
record_type="recordType",
# the properties below are optional
comment="comment"
)
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.route53.*;
CfnRecordSetProtectionProps cfnRecordSetProtectionProps = CfnRecordSetProtectionProps.builder()
.hostedZoneId("hostedZoneId")
.recordName("recordName")
.recordType("recordType")
// the properties below are optional
.comment("comment")
.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.Route53;
var cfnRecordSetProtectionProps = new CfnRecordSetProtectionProps {
HostedZoneId = "hostedZoneId",
RecordName = "recordName",
RecordType = "recordType",
// the properties below are optional
Comment = "comment"
};
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"
cfnRecordSetProtectionProps := &CfnRecordSetProtectionProps{
HostedZoneId: jsii.String("hostedZoneId"),
RecordName: jsii.String("recordName"),
RecordType: jsii.String("recordType"),
// the properties below are optional
Comment: jsii.String("comment"),
}