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

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

AWS Native v0.103.0 published on Monday, Apr 22, 2024 by Pulumi

aws-native.opensearchserverless.getSecurityPolicy

Explore with Pulumi AI

aws-native logo

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

AWS Native v0.103.0 published on Monday, Apr 22, 2024 by Pulumi

    Amazon OpenSearchServerless security policy resource

    Using getSecurityPolicy

    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 getSecurityPolicy(args: GetSecurityPolicyArgs, opts?: InvokeOptions): Promise<GetSecurityPolicyResult>
    function getSecurityPolicyOutput(args: GetSecurityPolicyOutputArgs, opts?: InvokeOptions): Output<GetSecurityPolicyResult>
    def get_security_policy(name: Optional[str] = None,
                            type: Optional[SecurityPolicyType] = None,
                            opts: Optional[InvokeOptions] = None) -> GetSecurityPolicyResult
    def get_security_policy_output(name: Optional[pulumi.Input[str]] = None,
                            type: Optional[pulumi.Input[SecurityPolicyType]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetSecurityPolicyResult]
    func LookupSecurityPolicy(ctx *Context, args *LookupSecurityPolicyArgs, opts ...InvokeOption) (*LookupSecurityPolicyResult, error)
    func LookupSecurityPolicyOutput(ctx *Context, args *LookupSecurityPolicyOutputArgs, opts ...InvokeOption) LookupSecurityPolicyResultOutput

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

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

    The following arguments are supported:

    Name string
    The name of the policy
    Type SecurityPolicyType
    name String
    The name of the policy
    type SecurityPolicyType
    name string
    The name of the policy
    type SecurityPolicyType
    name str
    The name of the policy
    type SecurityPolicyType
    name String
    The name of the policy
    type "encryption" | "network"

    getSecurityPolicy 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

    SecurityPolicyType

    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.103.0 published on Monday, Apr 22, 2024 by Pulumi