Class CfnService
- All Implemented Interfaces:
IConstruct,IDependable,IInspectable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
AWS::VpcLattice::Service.
Creates a service. A service is any software application that can run on instances containers, or serverless functions within an account or virtual private cloud (VPC).
For more information, see Services in the Amazon VPC Lattice User Guide .
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.vpclattice.*;
CfnService cfnService = CfnService.Builder.create(this, "MyCfnService")
.authType("authType")
.certificateArn("certificateArn")
.customDomainName("customDomainName")
.dnsEntry(DnsEntryProperty.builder()
.domainName("domainName")
.hostedZoneId("hostedZoneId")
.build())
.name("name")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnService.static interfaceDescribes the DNS information of a service.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionCfnService(Construct scope, String id) Create a newAWS::VpcLattice::Service.CfnService(Construct scope, String id, CfnServiceProps props) Create a newAWS::VpcLattice::Service.protectedCfnService(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnService(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) of the service.The date and time that the service was created, specified in ISO-8601 format.The domain name of the service.The ID of the hosted zone.The ID of the service.The date and time that the service was last updated, specified in ISO-8601 format.The status of the service.The type of IAM policy.The Amazon Resource Name (ARN) of the certificate.The custom domain name of the service.AWS::VpcLattice::Service.DnsEntry.getName()The name of the service.getTags()The tags for the service.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetAuthType(String value) The type of IAM policy.voidsetCertificateArn(String value) The Amazon Resource Name (ARN) of the certificate.voidsetCustomDomainName(String value) The custom domain name of the service.voidsetDnsEntry(IResolvable value) AWS::VpcLattice::Service.DnsEntry.voidAWS::VpcLattice::Service.DnsEntry.voidThe name of the service.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnService
protected CfnService(software.amazon.jsii.JsiiObjectRef objRef) -
CfnService
protected CfnService(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnService
@Stability(Stable) public CfnService(@NotNull Construct scope, @NotNull String id, @Nullable CfnServiceProps props) Create a newAWS::VpcLattice::Service.- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
props-- resource properties.
-
CfnService
Create a newAWS::VpcLattice::Service.- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector-- tree inspector to collect and process attributes.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrArn
The Amazon Resource Name (ARN) of the service. -
getAttrCreatedAt
The date and time that the service was created, specified in ISO-8601 format. -
getAttrDnsEntryDomainName
The domain name of the service. -
getAttrDnsEntryHostedZoneId
The ID of the hosted zone. -
getAttrId
The ID of the service. -
getAttrLastUpdatedAt
The date and time that the service was last updated, specified in ISO-8601 format. -
getAttrStatus
The status of the service. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getTags
The tags for the service. -
getAuthType
The type of IAM policy.NONE: The resource does not use an IAM policy. This is the default.AWS_IAM: The resource uses an IAM policy. When this type is used, auth is enabled and an auth policy is required.
-
setAuthType
The type of IAM policy.NONE: The resource does not use an IAM policy. This is the default.AWS_IAM: The resource uses an IAM policy. When this type is used, auth is enabled and an auth policy is required.
-
getCertificateArn
The Amazon Resource Name (ARN) of the certificate. -
setCertificateArn
The Amazon Resource Name (ARN) of the certificate. -
getCustomDomainName
The custom domain name of the service. -
setCustomDomainName
The custom domain name of the service. -
getDnsEntry
AWS::VpcLattice::Service.DnsEntry. -
setDnsEntry
AWS::VpcLattice::Service.DnsEntry. -
setDnsEntry
AWS::VpcLattice::Service.DnsEntry. -
getName
The name of the service.The name must be unique within the account. The valid characters are a-z, 0-9, and hyphens (-). You can't use a hyphen as the first or last character, or immediately after another hyphen.
If you don't specify a name, CloudFormation generates one. However, if you specify a name, and later want to replace the resource, you must specify a new name.
-
setName
The name of the service.The name must be unique within the account. The valid characters are a-z, 0-9, and hyphens (-). You can't use a hyphen as the first or last character, or immediately after another hyphen.
If you don't specify a name, CloudFormation generates one. However, if you specify a name, and later want to replace the resource, you must specify a new name.
-