Class CfnService
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.vpclattice.CfnService
- All Implemented Interfaces:
IEnvironmentAware,IInspectable,ITaggable,IServiceRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.118.0 (build 02eec31)",
date="2025-11-04T09:27:51.930Z")
@Stability(Stable)
public class CfnService
extends CfnResource
implements IInspectable, IServiceRef, ITaggable
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();
- See Also:
-
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.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.vpclattice.IServiceRef
IServiceRef.Jsii$Default, IServiceRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnService(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnService(software.amazon.jsii.JsiiObjectRef objRef) CfnService(software.constructs.Construct scope, String id) CfnService(software.constructs.Construct scope, String id, CfnServiceProps props) -
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.Describes the DNS information of the service.getName()The name of the service.A reference to a Service resource.getTags()Tag Manager which manages the tags for this resource.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) Describes the DNS information of the service.voidDescribes the DNS information of the service.voidThe name of the service.voidsetTagsRaw(List<CfnTag> value) The tags for the service.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods 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.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.IEnvironmentAware
getEnvMethods 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 software.constructs.Construct scope, @NotNull String id, @Nullable CfnServiceProps props) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties.
-
CfnService
@Stability(Stable) public CfnService(@NotNull software.constructs.Construct scope, @NotNull String id) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
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
-
getServiceRef
A reference to a Service resource.- Specified by:
getServiceRefin interfaceIServiceRef
-
getTags
Tag Manager which manages the tags for this resource. -
getAuthType
The type of IAM policy. -
setAuthType
The type of IAM policy. -
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
Describes the DNS information of the service.Returns union: either
IResolvableorCfnService.DnsEntryProperty -
setDnsEntry
Describes the DNS information of the service. -
setDnsEntry
Describes the DNS information of the service. -
getName
The name of the service. -
setName
The name of the service. -
getTagsRaw
The tags for the service. -
setTagsRaw
The tags for the service.
-