Skip to content
v2.278.0

CfnContactMethodProps Struct ​

Properties for defining a CfnContactMethod.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_lightsail as lightsail } from 'aws-cdk-lib';
const cfnContactMethodProps: lightsail.CfnContactMethodProps = {
  contactEndpoint: 'contactEndpoint',
  protocol: 'protocol',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_lightsail as lightsail

cfn_contact_method_props = lightsail.CfnContactMethodProps(
    contact_endpoint="contactEndpoint",
    protocol="protocol"
)
java
// 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.*;

CfnContactMethodProps cfnContactMethodProps = CfnContactMethodProps.builder()
        .contactEndpoint("contactEndpoint")
        .protocol("protocol")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Lightsail;

var cfnContactMethodProps = new CfnContactMethodProps {
    ContactEndpoint = "contactEndpoint",
    Protocol = "protocol"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnContactMethodProps := &CfnContactMethodProps{
	ContactEndpoint: jsii.String("contactEndpoint"),
	Protocol: jsii.String("protocol"),
}

Properties ​

contactEndpointstringcontact_endpointstrcontactEndpointStringContactEndpointstringContactEndpoint*string required #
The destination of the contact method, such as an email address or a mobile phone number.
protocolstringprotocolstrprotocolStringProtocolstringProtocol*string required #
The protocol of the contact method, such as Email or SMS (text messaging).