1. Packages
  2. AWS Cloud Control
  3. API Docs
  4. lightsail
  5. getStaticIp

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

AWS Cloud Control v1.9.0 published on Monday, Nov 18, 2024 by Pulumi

aws-native.lightsail.getStaticIp

Explore with Pulumi AI

aws-native logo

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

AWS Cloud Control v1.9.0 published on Monday, Nov 18, 2024 by Pulumi

    Resource Type definition for AWS::Lightsail::StaticIp

    Using getStaticIp

    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 getStaticIp(args: GetStaticIpArgs, opts?: InvokeOptions): Promise<GetStaticIpResult>
    function getStaticIpOutput(args: GetStaticIpOutputArgs, opts?: InvokeOptions): Output<GetStaticIpResult>
    def get_static_ip(static_ip_name: Optional[str] = None,
                      opts: Optional[InvokeOptions] = None) -> GetStaticIpResult
    def get_static_ip_output(static_ip_name: Optional[pulumi.Input[str]] = None,
                      opts: Optional[InvokeOptions] = None) -> Output[GetStaticIpResult]
    func LookupStaticIp(ctx *Context, args *LookupStaticIpArgs, opts ...InvokeOption) (*LookupStaticIpResult, error)
    func LookupStaticIpOutput(ctx *Context, args *LookupStaticIpOutputArgs, opts ...InvokeOption) LookupStaticIpResultOutput

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

    public static class GetStaticIp 
    {
        public static Task<GetStaticIpResult> InvokeAsync(GetStaticIpArgs args, InvokeOptions? opts = null)
        public static Output<GetStaticIpResult> Invoke(GetStaticIpInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetStaticIpResult> getStaticIp(GetStaticIpArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: aws-native:lightsail:getStaticIp
      arguments:
        # arguments dictionary

    The following arguments are supported:

    StaticIpName string
    The name of the static IP address.
    StaticIpName string
    The name of the static IP address.
    staticIpName String
    The name of the static IP address.
    staticIpName string
    The name of the static IP address.
    static_ip_name str
    The name of the static IP address.
    staticIpName String
    The name of the static IP address.

    getStaticIp Result

    The following output properties are available:

    AttachedTo string
    The instance where the static IP is attached.
    IpAddress string
    The static IP address.
    IsAttached bool
    A Boolean value indicating whether the static IP is attached.
    StaticIpArn string
    The Amazon Resource Name (ARN) of the static IP (for example, arn:aws:lightsail:us-east-2:123456789101:StaticIp/244ad76f-8aad-4741-809f-12345EXAMPLE ).
    AttachedTo string
    The instance where the static IP is attached.
    IpAddress string
    The static IP address.
    IsAttached bool
    A Boolean value indicating whether the static IP is attached.
    StaticIpArn string
    The Amazon Resource Name (ARN) of the static IP (for example, arn:aws:lightsail:us-east-2:123456789101:StaticIp/244ad76f-8aad-4741-809f-12345EXAMPLE ).
    attachedTo String
    The instance where the static IP is attached.
    ipAddress String
    The static IP address.
    isAttached Boolean
    A Boolean value indicating whether the static IP is attached.
    staticIpArn String
    The Amazon Resource Name (ARN) of the static IP (for example, arn:aws:lightsail:us-east-2:123456789101:StaticIp/244ad76f-8aad-4741-809f-12345EXAMPLE ).
    attachedTo string
    The instance where the static IP is attached.
    ipAddress string
    The static IP address.
    isAttached boolean
    A Boolean value indicating whether the static IP is attached.
    staticIpArn string
    The Amazon Resource Name (ARN) of the static IP (for example, arn:aws:lightsail:us-east-2:123456789101:StaticIp/244ad76f-8aad-4741-809f-12345EXAMPLE ).
    attached_to str
    The instance where the static IP is attached.
    ip_address str
    The static IP address.
    is_attached bool
    A Boolean value indicating whether the static IP is attached.
    static_ip_arn str
    The Amazon Resource Name (ARN) of the static IP (for example, arn:aws:lightsail:us-east-2:123456789101:StaticIp/244ad76f-8aad-4741-809f-12345EXAMPLE ).
    attachedTo String
    The instance where the static IP is attached.
    ipAddress String
    The static IP address.
    isAttached Boolean
    A Boolean value indicating whether the static IP is attached.
    staticIpArn String
    The Amazon Resource Name (ARN) of the static IP (for example, arn:aws:lightsail:us-east-2:123456789101:StaticIp/244ad76f-8aad-4741-809f-12345EXAMPLE ).

    Package Details

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

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

    AWS Cloud Control v1.9.0 published on Monday, Nov 18, 2024 by Pulumi