Class CfnContactMethod

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IInspectable, IEnvironmentAware, IContactMethodRef, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.139.0 (build 26a6b54)", date="2026-09-02T11:03:13.261Z") @Stability(Stable) public class CfnContactMethod extends CfnResource implements IInspectable, IContactMethodRef
Resource Type definition for AWS::Lightsail::ContactMethod.

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.lightsail.*;
 CfnContactMethod cfnContactMethod = CfnContactMethod.Builder.create(this, "MyCfnContactMethod")
         .contactEndpoint("contactEndpoint")
         .protocol("protocol")
         .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

    • CfnContactMethod

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

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

      @Stability(Stable) public CfnContactMethod(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnContactMethodProps props)
      Create a new AWS::Lightsail::ContactMethod.

      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

    • arnForContactMethod

      @Stability(Stable) @NotNull public static String arnForContactMethod(@NotNull IContactMethodRef resource)
      Parameters:
      resource - This parameter is required.
    • isCfnContactMethod

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

      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.
    • getAttrArn

      @Stability(Stable) @NotNull public String getAttrArn()
      The Amazon Resource Name (ARN) of the contact method.
    • getAttrCreatedAt

      @Stability(Stable) @NotNull public String getAttrCreatedAt()
      The timestamp when the contact method was created.
    • getAttrName

      @Stability(Stable) @NotNull public String getAttrName()
      The name of the contact method.
    • getAttrResourceType

      @Stability(Stable) @NotNull public String getAttrResourceType()
      The Lightsail resource type of the contact method.
    • getAttrStatus

      @Stability(Stable) @NotNull public String getAttrStatus()
      The current status of the contact method.
    • getAttrSupportCode

      @Stability(Stable) @NotNull public String getAttrSupportCode()
      The support code for the contact method.
    • 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
    • getContactMethodRef

      @Stability(Stable) @NotNull public ContactMethodReference getContactMethodRef()
      A reference to a ContactMethod resource.
      Specified by:
      getContactMethodRef in interface IContactMethodRef
    • getContactEndpoint

      @Stability(Stable) @NotNull public String getContactEndpoint()
      The destination of the contact method, such as an email address or a mobile phone number.
    • setContactEndpoint

      @Stability(Stable) public void setContactEndpoint(@NotNull String value)
      The destination of the contact method, such as an email address or a mobile phone number.
    • getProtocol

      @Stability(Stable) @NotNull public String getProtocol()
      The protocol of the contact method, such as Email or SMS (text messaging).
    • setProtocol

      @Stability(Stable) public void setProtocol(@NotNull String value)
      The protocol of the contact method, such as Email or SMS (text messaging).