Skip to content
v2.278.0

ContactMethodReference Struct ​

A reference to a ContactMethod resource.

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

contactMethodArnstringcontact_method_arnstrcontactMethodArnStringContactMethodArnstringContactMethodArn*string required #
The Arn of the ContactMethod resource.