1. Registry
  2. Packages
  3. AWS Cloud Control
  4. API Docs
  5. lightsail
  6. getContactMethod

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.78.0
published on Monday, Sep 7, 2026 by Pulumi
aws-native logo aws-native logo

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.78.0
published on Monday, Sep 7, 2026 by Pulumi

    Resource Type definition for AWS::Lightsail::ContactMethod

    Using getContactMethod

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getContactMethod(args: GetContactMethodArgs, opts?: InvokeOptions): Promise<GetContactMethodResult>
    function getContactMethodOutput(args: GetContactMethodOutputArgs, opts?: InvokeOutputOptions): Output<GetContactMethodResult>
    def get_contact_method(arn: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetContactMethodResult
    def get_contact_method_output(arn: pulumi.Input[Optional[str]] = None,
                           opts: Optional[InvokeOutputOptions] = None) -> Output[GetContactMethodResult]
    func LookupContactMethod(ctx *Context, args *LookupContactMethodArgs, opts ...InvokeOption) (*LookupContactMethodResult, error)
    func LookupContactMethodOutput(ctx *Context, args *LookupContactMethodOutputArgs, opts ...InvokeOption) LookupContactMethodResultOutput

    > Note: This function is named LookupContactMethod in the Go SDK.

    public static class GetContactMethod 
    {
        public static Task<GetContactMethodResult> InvokeAsync(GetContactMethodArgs args, InvokeOptions? opts = null)
        public static Output<GetContactMethodResult> Invoke(GetContactMethodInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetContactMethodResult> Invoke(GetContactMethodInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetContactMethodResult> getContactMethod(GetContactMethodArgs args, InvokeOptions options)
    public static Output<GetContactMethodResult> getContactMethod(GetContactMethodArgs args, InvokeOptions options)
    public static Output<GetContactMethodResult> getContactMethod(GetContactMethodArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: aws-native:lightsail:getContactMethod
      arguments:
        # arguments dictionary
    data "aws-native_lightsail_get_contact_method" "name" {
        # arguments
    }

    The following arguments are supported:

    Arn string
    The Amazon Resource Name (ARN) of the contact method.
    Arn string
    The Amazon Resource Name (ARN) of the contact method.
    arn string
    The Amazon Resource Name (ARN) of the contact method.
    arn String
    The Amazon Resource Name (ARN) of the contact method.
    arn string
    The Amazon Resource Name (ARN) of the contact method.
    arn str
    The Amazon Resource Name (ARN) of the contact method.
    arn String
    The Amazon Resource Name (ARN) of the contact method.

    getContactMethod Result

    The following output properties are available:

    Arn string
    The Amazon Resource Name (ARN) of the contact method.
    CreatedAt string
    The timestamp when the contact method was created.
    Name string
    The name of the contact method.
    ResourceType string
    The Lightsail resource type of the contact method.
    Status Pulumi.AwsNative.Lightsail.ContactMethodStatus
    The current status of the contact method.
    SupportCode string
    The support code for the contact method.
    Arn string
    The Amazon Resource Name (ARN) of the contact method.
    CreatedAt string
    The timestamp when the contact method was created.
    Name string
    The name of the contact method.
    ResourceType string
    The Lightsail resource type of the contact method.
    Status ContactMethodStatus
    The current status of the contact method.
    SupportCode string
    The support code for the contact method.
    arn string
    The Amazon Resource Name (ARN) of the contact method.
    created_at string
    The timestamp when the contact method was created.
    name string
    The name of the contact method.
    resource_type string
    The Lightsail resource type of the contact method.
    status "PendingVerification" | "Valid" | "Invalid"
    The current status of the contact method.
    support_code string
    The support code for the contact method.
    arn String
    The Amazon Resource Name (ARN) of the contact method.
    createdAt String
    The timestamp when the contact method was created.
    name String
    The name of the contact method.
    resourceType String
    The Lightsail resource type of the contact method.
    status ContactMethodStatus
    The current status of the contact method.
    supportCode String
    The support code for the contact method.
    arn string
    The Amazon Resource Name (ARN) of the contact method.
    createdAt string
    The timestamp when the contact method was created.
    name string
    The name of the contact method.
    resourceType string
    The Lightsail resource type of the contact method.
    status ContactMethodStatus
    The current status of the contact method.
    supportCode string
    The support code for the contact method.
    arn str
    The Amazon Resource Name (ARN) of the contact method.
    created_at str
    The timestamp when the contact method was created.
    name str
    The name of the contact method.
    resource_type str
    The Lightsail resource type of the contact method.
    status ContactMethodStatus
    The current status of the contact method.
    support_code str
    The support code for the contact method.
    arn String
    The Amazon Resource Name (ARN) of the contact method.
    createdAt String
    The timestamp when the contact method was created.
    name String
    The name of the contact method.
    resourceType String
    The Lightsail resource type of the contact method.
    status "PendingVerification" | "Valid" | "Invalid"
    The current status of the contact method.
    supportCode String
    The support code for the contact method.

    Supporting Types

    ContactMethodStatus

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo aws-native logo

    We recommend new projects start with resources from the AWS provider.

    Viewing docs for AWS Cloud Control v1.78.0
    published on Monday, Sep 7, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial