AWS Native

Pulumi Official
Package maintained by Pulumi
v0.18.0 published on Friday, May 27, 2022 by Pulumi

getPolicy

Creates an AWS Firewall Manager policy.

Using getPolicy

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 getPolicy(args: GetPolicyArgs, opts?: InvokeOptions): Promise<GetPolicyResult>
function getPolicyOutput(args: GetPolicyOutputArgs, opts?: InvokeOptions): Output<GetPolicyResult>
def get_policy(id: Optional[str] = None,
               opts: Optional[InvokeOptions] = None) -> GetPolicyResult
def get_policy_output(id: Optional[pulumi.Input[str]] = None,
               opts: Optional[InvokeOptions] = None) -> Output[GetPolicyResult]
func LookupPolicy(ctx *Context, args *LookupPolicyArgs, opts ...InvokeOption) (*LookupPolicyResult, error)
func LookupPolicyOutput(ctx *Context, args *LookupPolicyOutputArgs, opts ...InvokeOption) LookupPolicyResultOutput

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

public static class GetPolicy 
{
    public static Task<GetPolicyResult> InvokeAsync(GetPolicyArgs args, InvokeOptions? opts = null)
    public static Output<GetPolicyResult> Invoke(GetPolicyInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetPolicyResult> getPolicy(GetPolicyArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: aws-native:fms:getPolicy
  Arguments:
    # Arguments dictionary

The following arguments are supported:

Id string
Id string
id String
id string
id str
id String

getPolicy Result

The following output properties are available:

Supporting Types

PolicyIEMap

ACCOUNT List<string>
ORGUNIT List<string>
ACCOUNT []string
ORGUNIT []string
aCCOUNT List<String>
oRGUNIT List<String>
aCCOUNT string[]
oRGUNIT string[]
a_ccount Sequence[str]
o_rgunit Sequence[str]
aCCOUNT List<String>
oRGUNIT List<String>

PolicyResourceTag

Key string
Value string
Key string
Value string
key String
value String
key string
value string
key str
value str
key String
value String

PolicySecurityServicePolicyDataPropertiesType

PolicyTag

Key string
Value string
Key string
Value string
key String
value String
key string
value string
key str
value str
key String
value String

SecurityServicePolicyDataProperties

Package Details

Repository
https://github.com/pulumi/pulumi-aws-native
License
Apache-2.0