Class CfnServiceFunction

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.CfnServiceFunction
All Implemented Interfaces:
IInspectable, IEnvironmentAware, IServiceFunctionRef, 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.945Z") @Stability(Stable) public class CfnServiceFunction extends CfnResource implements IInspectable, IServiceFunctionRef
Creates a service function within a Resilience Hub service.

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.*;
 CfnServiceFunction cfnServiceFunction = CfnServiceFunction.Builder.create(this, "MyCfnServiceFunction")
         .criticality("criticality")
         .name("name")
         .serviceArn("serviceArn")
         // the properties below are optional
         .description("description")
         .build();
 

See Also:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
  • Constructor Details

    • CfnServiceFunction

      protected CfnServiceFunction(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnServiceFunction

      protected CfnServiceFunction(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnServiceFunction

      @Stability(Stable) public CfnServiceFunction(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnServiceFunctionProps props)
      Create a new AWS::ResilienceHubV2::ServiceFunction.

      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

    • isCfnServiceFunction

      @Stability(Stable) @NotNull public static Boolean isCfnServiceFunction(@NotNull Object x)
      Checks whether the given object is a CfnServiceFunction.

      Parameters:
      x - This parameter is required.
    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      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:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrCreatedAt

      @Stability(Stable) @NotNull public String getAttrCreatedAt()
      The timestamp when the service function was created.
    • getAttrResourceCount

      @Stability(Stable) @NotNull public Number getAttrResourceCount()
      The number of resources associated with this function.
    • getAttrServiceFunctionId

      @Stability(Stable) @NotNull public String getAttrServiceFunctionId()
      The server-generated service function ID.
    • getAttrSource

      @Stability(Stable) @NotNull public String getAttrSource()
      The source of the service function.
    • getAttrUpdatedAt

      @Stability(Stable) @NotNull public String getAttrUpdatedAt()
      The timestamp when the service function was last updated.
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getCfnPropertyNames

      @Stability(Stable) @NotNull protected Map<String,String> getCfnPropertyNames()
      Overrides:
      getCfnPropertyNames in class CfnResource
    • getServiceFunctionRef

      @Stability(Stable) @NotNull public ServiceFunctionReference getServiceFunctionRef()
      A reference to a ServiceFunction resource.
      Specified by:
      getServiceFunctionRef in interface IServiceFunctionRef
    • getCriticality

      @Stability(Stable) @NotNull public String getCriticality()
      The criticality of the service function.
    • setCriticality

      @Stability(Stable) public void setCriticality(@NotNull String value)
      The criticality of the service function.
    • getName

      @Stability(Stable) @NotNull public String getName()
      The name of the service function.
    • setName

      @Stability(Stable) public void setName(@NotNull String value)
      The name of the service function.
    • getServiceArn

      @Stability(Stable) @NotNull public String getServiceArn()
      The ARN of the parent service.
    • setServiceArn

      @Stability(Stable) public void setServiceArn(@NotNull String value)
      The ARN of the parent service.
    • getDescription

      @Stability(Stable) @Nullable public String getDescription()
      The description of the service function.
    • setDescription

      @Stability(Stable) public void setDescription(@Nullable String value)
      The description of the service function.