CfnOutpostResolverProps Struct
Properties for defining a CfnOutpostResolver.
| 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_route53resolver as route53resolver } from 'aws-cdk-lib';
const cfnOutpostResolverProps: route53resolver.CfnOutpostResolverProps = {
name: 'name',
outpostArn: 'outpostArn',
preferredInstanceType: 'preferredInstanceType',
// the properties below are optional
instanceCount: 123,
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_route53resolver as route53resolver
cfn_outpost_resolver_props = route53resolver.CfnOutpostResolverProps(
name="name",
outpost_arn="outpostArn",
preferred_instance_type="preferredInstanceType",
# the properties below are optional
instance_count=123,
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.route53resolver.*;
CfnOutpostResolverProps cfnOutpostResolverProps = CfnOutpostResolverProps.builder()
.name("name")
.outpostArn("outpostArn")
.preferredInstanceType("preferredInstanceType")
// the properties below are optional
.instanceCount(123)
.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.Route53Resolver;
var cfnOutpostResolverProps = new CfnOutpostResolverProps {
Name = "name",
OutpostArn = "outpostArn",
PreferredInstanceType = "preferredInstanceType",
// the properties below are optional
InstanceCount = 123,
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"
cfnOutpostResolverProps := &CfnOutpostResolverProps{
Name: jsii.String("name"),
OutpostArn: jsii.String("outpostArn"),
PreferredInstanceType: jsii.String("preferredInstanceType"),
// the properties below are optional
InstanceCount: jsii.Number(123),
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
}
Properties
instanceCountoptionalnumberinstance_countoptionalint | floatinstanceCountoptionalNumberInstanceCountoptionaldoubleInstanceCountoptional*float64 #Amazon EC2 instance count for the Resolver on the Outpost.
Name of the Resolver.
The ARN (Amazon Resource Name) for the Outpost.
preferredInstanceTypestringpreferred_instance_typestrpreferredInstanceTypeStringPreferredInstanceTypestringPreferredInstanceType*string required #The Amazon EC2 instance type.
If you specify this, you must also specify a value for the OutpostArn .