Class CfnServiceTemplate
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.proton.CfnServiceTemplate
- All Implemented Interfaces:
IInspectable,ITaggable,IServiceTemplateRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-24T13:34:43.324Z")
@Stability(Stable)
public class CfnServiceTemplate
extends CfnResource
implements IInspectable, IServiceTemplateRef, ITaggable
Create a service template.
The administrator creates a service template to define standardized infrastructure and an optional CI/CD service pipeline. Developers, in turn, select the service template from AWS Proton . If the selected service template includes a service pipeline definition, they provide a link to their source code repository. AWS Proton then deploys and manages the infrastructure defined by the selected service template. For more information, see AWS Proton templates in the AWS Proton 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.proton.*;
CfnServiceTemplate cfnServiceTemplate = CfnServiceTemplate.Builder.create(this, "MyCfnServiceTemplate")
.description("description")
.displayName("displayName")
.encryptionKey("encryptionKey")
.name("name")
.pipelineProvisioning("pipelineProvisioning")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesNested 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.proton.IServiceTemplateRef
IServiceTemplateRef.Jsii$Default, IServiceTemplateRef.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
ConstructorsModifierConstructorDescriptionprotectedCfnServiceTemplate(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnServiceTemplate(software.amazon.jsii.JsiiObjectRef objRef) CfnServiceTemplate(software.constructs.Construct scope, String id) CfnServiceTemplate(software.constructs.Construct scope, String id, CfnServiceTemplateProps props) -
Method Summary
Modifier and TypeMethodDescriptionReturns the service template ARN.A description of the service template.The service template name as displayed in the developer interface.The customer provided service template encryption key that's used to encrypt data.getName()The name of the service template.IfpipelineProvisioningistrue, a service pipeline is included in the service template.A reference to a ServiceTemplate resource.getTags()Tag Manager which manages the tags for this resource.An object that includes the template bundle S3 bucket path and name for the new version of a service template.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetDescription(String value) A description of the service template.voidsetDisplayName(String value) The service template name as displayed in the developer interface.voidsetEncryptionKey(String value) The customer provided service template encryption key that's used to encrypt data.voidThe name of the service template.voidsetPipelineProvisioning(String value) IfpipelineProvisioningistrue, a service pipeline is included in the service template.voidsetTagsRaw(List<CfnTag> value) An object that includes the template bundle S3 bucket path and name for the new version of a service template.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, 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.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnServiceTemplate
protected CfnServiceTemplate(software.amazon.jsii.JsiiObjectRef objRef) -
CfnServiceTemplate
protected CfnServiceTemplate(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnServiceTemplate
@Stability(Stable) public CfnServiceTemplate(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable CfnServiceTemplateProps 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.
-
CfnServiceTemplate
@Stability(Stable) public CfnServiceTemplate(@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
Returns the service template ARN. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getServiceTemplateRef
A reference to a ServiceTemplate resource.- Specified by:
getServiceTemplateRefin interfaceIServiceTemplateRef
-
getTags
Tag Manager which manages the tags for this resource. -
getDescription
A description of the service template. -
setDescription
A description of the service template. -
getDisplayName
The service template name as displayed in the developer interface. -
setDisplayName
The service template name as displayed in the developer interface. -
getEncryptionKey
The customer provided service template encryption key that's used to encrypt data. -
setEncryptionKey
The customer provided service template encryption key that's used to encrypt data. -
getName
The name of the service template. -
setName
The name of the service template. -
getPipelineProvisioning
IfpipelineProvisioningistrue, a service pipeline is included in the service template. -
setPipelineProvisioning
IfpipelineProvisioningistrue, a service pipeline is included in the service template. -
getTagsRaw
An object that includes the template bundle S3 bucket path and name for the new version of a service template. -
setTagsRaw
An object that includes the template bundle S3 bucket path and name for the new version of a service template.
-