Class CfnRecordSetGroup
A CloudFormation AWS::Route53::RecordSetGroup
.
Inherited Members
Namespace: Amazon.CDK.AWS.Route53
Assembly: Amazon.CDK.AWS.Route53.dll
Syntax (csharp)
public class CfnRecordSetGroup : CfnResource, IConstruct, IDependable, IInspectable
Syntax (vb)
Public Class CfnRecordSetGroup
Inherits CfnResource
Implements IConstruct, IDependable, IInspectable
Remarks
A complex type that contains an optional comment, the name and ID of the hosted zone that you want to make changes in, and values for the records that you want to create.
CloudformationResource: AWS::Route53::RecordSetGroup
ExampleMetadata: fixture=_generated
Examples
// 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 cfnRecordSetGroup = new CfnRecordSetGroup(this, "MyCfnRecordSetGroup", new CfnRecordSetGroupProps {
Comment = "comment",
HostedZoneId = "hostedZoneId",
HostedZoneName = "hostedZoneName",
RecordSets = new [] { new RecordSetProperty {
Name = "name",
Type = "type",
// the properties below are optional
AliasTarget = new AliasTargetProperty {
DnsName = "dnsName",
HostedZoneId = "hostedZoneId",
// the properties below are optional
EvaluateTargetHealth = false
},
CidrRoutingConfig = new CidrRoutingConfigProperty {
CollectionId = "collectionId",
LocationName = "locationName"
},
Failover = "failover",
GeoLocation = new GeoLocationProperty {
ContinentCode = "continentCode",
CountryCode = "countryCode",
SubdivisionCode = "subdivisionCode"
},
HealthCheckId = "healthCheckId",
HostedZoneId = "hostedZoneId",
HostedZoneName = "hostedZoneName",
MultiValueAnswer = false,
Region = "region",
ResourceRecords = new [] { "resourceRecords" },
SetIdentifier = "setIdentifier",
Ttl = "ttl",
Weight = 123
} }
});
Synopsis
Constructors
CfnRecordSetGroup(Construct, String, ICfnRecordSetGroupProps) | Create a new |
CfnRecordSetGroup(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnRecordSetGroup(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
Comment | Optional: Any comments you want to include about a change batch request. |
HostedZoneId | The ID of the hosted zone that you want to create records in. |
HostedZoneName | The name of the hosted zone that you want to create records in. |
RecordSets | A complex type that contains one |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnRecordSetGroup(Construct, String, ICfnRecordSetGroupProps)
Create a new AWS::Route53::RecordSetGroup
.
public CfnRecordSetGroup(Construct scope, string id, ICfnRecordSetGroupProps props = null)
Parameters
- scope Construct
- scope in which this resource is defined.
- id System.String
- scoped id of the resource.
- props ICfnRecordSetGroupProps
- resource properties.
CfnRecordSetGroup(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnRecordSetGroup(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnRecordSetGroup(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnRecordSetGroup(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.String
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Overrides
Comment
Optional: Any comments you want to include about a change batch request.
public virtual string Comment { get; set; }
Property Value
System.String
Remarks
HostedZoneId
The ID of the hosted zone that you want to create records in.
public virtual string HostedZoneId { get; set; }
Property Value
System.String
Remarks
Specify either HostedZoneName
or HostedZoneId
, but not both. If you have multiple hosted zones with the same domain name, you must specify the hosted zone using HostedZoneId
.
HostedZoneName
The name of the hosted zone that you want to create records in.
public virtual string HostedZoneName { get; set; }
Property Value
System.String
Remarks
You must include a trailing dot (for example, www.example.com.
) as part of the HostedZoneName
.
When you create a stack using an AWS::Route53::RecordSet
that specifies HostedZoneName
, AWS CloudFormation attempts to find a hosted zone whose name matches the HostedZoneName
. If AWS CloudFormation can't find a hosted zone with a matching domain name, or if there is more than one hosted zone with the specified domain name, AWS CloudFormation will not create the stack.
Specify either HostedZoneName
or HostedZoneId
, but not both. If you have multiple hosted zones with the same domain name, you must specify the hosted zone using HostedZoneId
.
RecordSets
A complex type that contains one RecordSet
element for each record that you want to create.
public virtual object RecordSets { get; set; }
Property Value
System.Object
Remarks
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
- tree inspector to collect and process attributes.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.Collections.Generic.IDictionary<System.String, System.Object>
Returns
System.Collections.Generic.IDictionary<System.String, System.Object>