# CfnContactMethodProps

Properties for defining a `CfnContactMethod`.

Used as props by: [CfnContactMethod](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lightsail.CfnContactMethod.html)

- Source: Generated at build time
- Type last changed: v2.268.0 · 2 Sep 2026

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
};
```

Golang:

```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

- `contactEndpoint`: string (required) — The destination of the contact method, such as an email address or a mobile phone number.

- `protocol`: string (required) — The protocol of the contact method, such as Email or SMS (text messaging).
