1. Packages
  2. AWS Native
  3. API Docs
  4. opensearchserverless
  5. getLifecyclePolicy

AWS Native is in preview. AWS Classic is fully supported.

AWS Native v0.105.0 published on Thursday, May 2, 2024 by Pulumi

aws-native.opensearchserverless.getLifecyclePolicy

Explore with Pulumi AI

aws-native logo

AWS Native is in preview. AWS Classic is fully supported.

AWS Native v0.105.0 published on Thursday, May 2, 2024 by Pulumi

    Amazon OpenSearchServerless lifecycle policy resource

    Using getLifecyclePolicy

    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 getLifecyclePolicy(args: GetLifecyclePolicyArgs, opts?: InvokeOptions): Promise<GetLifecyclePolicyResult>
    function getLifecyclePolicyOutput(args: GetLifecyclePolicyOutputArgs, opts?: InvokeOptions): Output<GetLifecyclePolicyResult>
    def get_lifecycle_policy(name: Optional[str] = None,
                             type: Optional[LifecyclePolicyType] = None,
                             opts: Optional[InvokeOptions] = None) -> GetLifecyclePolicyResult
    def get_lifecycle_policy_output(name: Optional[pulumi.Input[str]] = None,
                             type: Optional[pulumi.Input[LifecyclePolicyType]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetLifecyclePolicyResult]
    func LookupLifecyclePolicy(ctx *Context, args *LookupLifecyclePolicyArgs, opts ...InvokeOption) (*LookupLifecyclePolicyResult, error)
    func LookupLifecyclePolicyOutput(ctx *Context, args *LookupLifecyclePolicyOutputArgs, opts ...InvokeOption) LookupLifecyclePolicyResultOutput

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

    public static class GetLifecyclePolicy 
    {
        public static Task<GetLifecyclePolicyResult> InvokeAsync(GetLifecyclePolicyArgs args, InvokeOptions? opts = null)
        public static Output<GetLifecyclePolicyResult> Invoke(GetLifecyclePolicyInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetLifecyclePolicyResult> getLifecyclePolicy(GetLifecyclePolicyArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: aws-native:opensearchserverless:getLifecyclePolicy
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    The name of the policy
    Type LifecyclePolicyType
    name String
    The name of the policy
    type LifecyclePolicyType
    name string
    The name of the policy
    type LifecyclePolicyType
    name str
    The name of the policy
    type LifecyclePolicyType
    name String
    The name of the policy
    type "retention"

    getLifecyclePolicy Result

    The following output properties are available:

    Description string
    The description of the policy
    Policy string
    The JSON policy document that is the content for the policy
    Description string
    The description of the policy
    Policy string
    The JSON policy document that is the content for the policy
    description String
    The description of the policy
    policy String
    The JSON policy document that is the content for the policy
    description string
    The description of the policy
    policy string
    The JSON policy document that is the content for the policy
    description str
    The description of the policy
    policy str
    The JSON policy document that is the content for the policy
    description String
    The description of the policy
    policy String
    The JSON policy document that is the content for the policy

    Supporting Types

    LifecyclePolicyType

    Package Details

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

    AWS Native is in preview. AWS Classic is fully supported.

    AWS Native v0.105.0 published on Thursday, May 2, 2024 by Pulumi