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.resiliencehubv2.CfnService
- All Implemented Interfaces:
IInspectable,IEnvironmentAware,IServiceRef,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.133.0 (build 0f43e37)",
date="2026-06-16T16:14:31.926Z")
@Stability(Stable)
public class CfnService
extends CfnResource
implements IInspectable, IServiceRef, ITaggableV2
Creates a resilience-managed service with associated systems, input sources, assertions, and service functions.
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.resiliencehubv2.*;
CfnService cfnService = CfnService.Builder.create(this, "MyCfnService")
.name("name")
.regions(List.of("regions"))
// the properties below are optional
.assertions(List.of(AssertionDefinitionProperty.builder()
.text("text")
.build()))
.associatedSystems(List.of(AssociatedSystemProperty.builder()
.systemArn("systemArn")
// the properties below are optional
.userJourneyIds(List.of("userJourneyIds"))
.build()))
.dependencyDiscovery("dependencyDiscovery")
.description("description")
.inputSources(List.of(InputSourceDefinitionProperty.builder()
.resourceConfiguration(ResourceConfigurationProperty.builder()
.cfnStackArn("cfnStackArn")
.designFileS3Url("designFileS3Url")
.eks(EksSourceProperty.builder()
.clusterArn("clusterArn")
.namespaces(List.of("namespaces"))
.build())
.resourceTags(List.of(ResourceTagProperty.builder()
.key("key")
.values(List.of("values"))
.build()))
.tfStateFileUrl("tfStateFileUrl")
.build())
.build()))
.kmsKeyId("kmsKeyId")
.permissionModel(PermissionModelProperty.builder()
.invokerRoleName("invokerRoleName")
// the properties below are optional
.crossAccountRoleArns(List.of(CrossAccountRoleConfigurationProperty.builder()
.crossAccountRoleArn("crossAccountRoleArn")
// the properties below are optional
.externalId("externalId")
.build()))
.build())
.policyArn("policyArn")
.reportConfiguration(ServiceReportConfigurationProperty.builder()
.reportOutput(List.of(ReportOutputConfigurationProperty.builder()
.s3(S3ReportOutputConfigurationProperty.builder()
.bucketOwner("bucketOwner")
.bucketPath("bucketPath")
.build())
.build()))
.build())
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceAn assertion about the service's resilience posture.static interfaceExample:static final classA fluent builder forCfnService.static interfaceExample:static interfaceExample:static interfaceEffective policy values computed from the associated policy.static interfaceExample:static interfaceAn input source for the service.static interfaceExample:static interfaceConfiguration for a report output destination.static interfaceResource configuration for an input source.static interfaceExample:static interfaceS3 configuration for report output.static interfaceConfiguration for automatic report generation on a Service.static interfaceExample:static interfaceExample: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.interfaces.resiliencehubv2.IServiceRef
IServiceRef.Jsii$Default, IServiceRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.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, CfnServiceProps props) Create a newAWS::ResilienceHubV2::Service. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForService(IServiceRef resource) Assertions associated with this service.Systems associated with this service.The timestamp when the service was created.Effective policy values computed from the associated policy.The ARN of the service.The timestamp when the service was last updated.Tag Manager which manages the tags for this resource.Dependency discovery state.The description of the service.Input sources for this service.The KMS key ID for encrypting service data.getName()The name of the service.Returns union: eitherIResolvableorCfnService.PermissionModelPropertyThe ARN of the resilience policy to associate.AWS regions for the service.Configuration for automatic report generation on a Service.A reference to a Service resource.getTags()Tags assigned to the service.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnService.renderProperties(Map<String, Object> props) voidsetAssertions(List<Object> value) Assertions associated with this service.voidsetAssertions(IResolvable value) Assertions associated with this service.voidsetAssociatedSystems(List<Object> value) Systems associated with this service.voidsetAssociatedSystems(IResolvable value) Systems associated with this service.voidsetDependencyDiscovery(String value) Dependency discovery state.voidsetDescription(String value) The description of the service.voidsetInputSources(List<Object> value) Input sources for this service.voidsetInputSources(IResolvable value) Input sources for this service.voidsetKmsKeyId(String value) The KMS key ID for encrypting service data.voidThe name of the service.voidsetPermissionModel(IResolvable value) voidvoidsetPolicyArn(String value) The ARN of the resilience policy to associate.voidsetRegions(List<String> value) AWS regions for the service.voidConfiguration for automatic report generation on a Service.voidConfiguration for automatic report generation on a Service.voidTags assigned to the service.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyCrossStackReferenceStrength, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, cfnPropertyName, 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, overrideLogicalId, withMethods 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
getNode, withMethods inherited from interface software.amazon.awscdk.interfaces.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, @NotNull CfnServiceProps props) Create a newAWS::ResilienceHubV2::Service.- 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. This parameter is required.
-
-
Method Details
-
arnForService
- Parameters:
resource- This parameter is required.
-
isCfnService
Checks whether the given object is a CfnService.- Parameters:
x- This parameter is required.
-
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.
-
getAttrCreatedAt
The timestamp when the service was created. -
getAttrEffectivePolicyValues
Effective policy values computed from the associated policy. -
getAttrServiceArn
The ARN of the service. -
getAttrUpdatedAt
The timestamp when the service was last updated. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getCfnPropertyNames
- Overrides:
getCfnPropertyNamesin classCfnResource
-
getServiceRef
A reference to a Service resource.- Specified by:
getServiceRefin interfaceIServiceRef
-
getName
The name of the service. -
setName
The name of the service. -
getRegions
AWS regions for the service. -
setRegions
AWS regions for the service. -
getAssertions
Assertions associated with this service.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnService.AssertionDefinitionProperty> -
setAssertions
Assertions associated with this service. -
setAssertions
Assertions associated with this service. -
getAssociatedSystems
Systems associated with this service.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnService.AssociatedSystemProperty> -
setAssociatedSystems
Systems associated with this service. -
setAssociatedSystems
Systems associated with this service. -
getDependencyDiscovery
Dependency discovery state. -
setDependencyDiscovery
Dependency discovery state. -
getDescription
The description of the service. -
setDescription
The description of the service. -
getInputSources
Input sources for this service.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnService.InputSourceDefinitionProperty> -
setInputSources
Input sources for this service. -
setInputSources
Input sources for this service. -
getKmsKeyId
The KMS key ID for encrypting service data. -
setKmsKeyId
The KMS key ID for encrypting service data. -
getPermissionModel
Returns union: eitherIResolvableorCfnService.PermissionModelProperty -
setPermissionModel
-
setPermissionModel
@Stability(Stable) public void setPermissionModel(@Nullable CfnService.PermissionModelProperty value) -
getPolicyArn
The ARN of the resilience policy to associate. -
setPolicyArn
The ARN of the resilience policy to associate. -
getReportConfiguration
Configuration for automatic report generation on a Service.Returns union: either
IResolvableorCfnService.ServiceReportConfigurationProperty -
setReportConfiguration
Configuration for automatic report generation on a Service. -
setReportConfiguration
@Stability(Stable) public void setReportConfiguration(@Nullable CfnService.ServiceReportConfigurationProperty value) Configuration for automatic report generation on a Service. -
getTags
Tags assigned to the service. -
setTags
Tags assigned to the service.
-