1. Packages
  2. AWS Cloud Control
  3. API Docs
  4. verifiedpermissions
  5. getPolicyTemplate

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

AWS Cloud Control v1.26.0 published on Wednesday, Mar 12, 2025 by Pulumi

aws-native.verifiedpermissions.getPolicyTemplate

Explore with Pulumi AI

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

AWS Cloud Control v1.26.0 published on Wednesday, Mar 12, 2025 by Pulumi

Definition of AWS::VerifiedPermissions::PolicyTemplate Resource Type

Using getPolicyTemplate

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 getPolicyTemplate(args: GetPolicyTemplateArgs, opts?: InvokeOptions): Promise<GetPolicyTemplateResult>
function getPolicyTemplateOutput(args: GetPolicyTemplateOutputArgs, opts?: InvokeOptions): Output<GetPolicyTemplateResult>
Copy
def get_policy_template(policy_store_id: Optional[str] = None,
                        policy_template_id: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetPolicyTemplateResult
def get_policy_template_output(policy_store_id: Optional[pulumi.Input[str]] = None,
                        policy_template_id: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetPolicyTemplateResult]
Copy
func LookupPolicyTemplate(ctx *Context, args *LookupPolicyTemplateArgs, opts ...InvokeOption) (*LookupPolicyTemplateResult, error)
func LookupPolicyTemplateOutput(ctx *Context, args *LookupPolicyTemplateOutputArgs, opts ...InvokeOption) LookupPolicyTemplateResultOutput
Copy

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

public static class GetPolicyTemplate 
{
    public static Task<GetPolicyTemplateResult> InvokeAsync(GetPolicyTemplateArgs args, InvokeOptions? opts = null)
    public static Output<GetPolicyTemplateResult> Invoke(GetPolicyTemplateInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetPolicyTemplateResult> getPolicyTemplate(GetPolicyTemplateArgs args, InvokeOptions options)
public static Output<GetPolicyTemplateResult> getPolicyTemplate(GetPolicyTemplateArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: aws-native:verifiedpermissions:getPolicyTemplate
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

PolicyStoreId This property is required. string
The unique identifier of the policy store that contains the template.
PolicyTemplateId This property is required. string
The unique identifier of the new or modified policy template.
PolicyStoreId This property is required. string
The unique identifier of the policy store that contains the template.
PolicyTemplateId This property is required. string
The unique identifier of the new or modified policy template.
policyStoreId This property is required. String
The unique identifier of the policy store that contains the template.
policyTemplateId This property is required. String
The unique identifier of the new or modified policy template.
policyStoreId This property is required. string
The unique identifier of the policy store that contains the template.
policyTemplateId This property is required. string
The unique identifier of the new or modified policy template.
policy_store_id This property is required. str
The unique identifier of the policy store that contains the template.
policy_template_id This property is required. str
The unique identifier of the new or modified policy template.
policyStoreId This property is required. String
The unique identifier of the policy store that contains the template.
policyTemplateId This property is required. String
The unique identifier of the new or modified policy template.

getPolicyTemplate Result

The following output properties are available:

Description string
The description to attach to the new or updated policy template.
PolicyTemplateId string
The unique identifier of the new or modified policy template.
Statement string
Specifies the content that you want to use for the new policy template, written in the Cedar policy language.
Description string
The description to attach to the new or updated policy template.
PolicyTemplateId string
The unique identifier of the new or modified policy template.
Statement string
Specifies the content that you want to use for the new policy template, written in the Cedar policy language.
description String
The description to attach to the new or updated policy template.
policyTemplateId String
The unique identifier of the new or modified policy template.
statement String
Specifies the content that you want to use for the new policy template, written in the Cedar policy language.
description string
The description to attach to the new or updated policy template.
policyTemplateId string
The unique identifier of the new or modified policy template.
statement string
Specifies the content that you want to use for the new policy template, written in the Cedar policy language.
description str
The description to attach to the new or updated policy template.
policy_template_id str
The unique identifier of the new or modified policy template.
statement str
Specifies the content that you want to use for the new policy template, written in the Cedar policy language.
description String
The description to attach to the new or updated policy template.
policyTemplateId String
The unique identifier of the new or modified policy template.
statement String
Specifies the content that you want to use for the new policy template, written in the Cedar policy language.

Package Details

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

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

AWS Cloud Control v1.26.0 published on Wednesday, Mar 12, 2025 by Pulumi