# ContactMethodReference

A reference to a ContactMethod resource.

- 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 interfaces_lightsail } from 'aws-cdk-lib/interfaces';
const contactMethodReference: interfaces_lightsail.ContactMethodReference = {
  contactMethodArn: 'contactMethodArn',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.interfaces import aws_lightsail as interfaces_lightsail

contact_method_reference = interfaces_lightsail.ContactMethodReference(
    contact_method_arn="contactMethodArn"
)
```

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.interfaces.lightsail.*;

ContactMethodReference contactMethodReference = ContactMethodReference.builder()
        .contactMethodArn("contactMethodArn")
        .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.Interfaces.Lightsail;

var contactMethodReference = new ContactMethodReference {
    ContactMethodArn = "contactMethodArn"
};
```

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"

contactMethodReference := &ContactMethodReference{
	ContactMethodArn: jsii.String("contactMethodArn"),
}
```

## Properties

- `contactMethodArn`: string (required) — The Arn of the ContactMethod resource.
