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.getPolicy
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::Policy Resource Type
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(policy_id: Optional[str] = None,
               policy_store_id: Optional[str] = None,
               opts: Optional[InvokeOptions] = None) -> GetPolicyResult
def get_policy_output(policy_id: Optional[pulumi.Input[str]] = None,
               policy_store_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)
public static Output<GetPolicyResult> getPolicy(GetPolicyArgs args, InvokeOptions options)
fn::invoke:
  function: aws-native:verifiedpermissions:getPolicy
  arguments:
    # arguments dictionaryThe following arguments are supported:
- PolicyId string
- The unique ID of the new or updated policy.
- PolicyStore stringId 
- Specifies the PolicyStoreIdof the policy store you want to store the policy in.
- PolicyId string
- The unique ID of the new or updated policy.
- PolicyStore stringId 
- Specifies the PolicyStoreIdof the policy store you want to store the policy in.
- policyId String
- The unique ID of the new or updated policy.
- policyStore StringId 
- Specifies the PolicyStoreIdof the policy store you want to store the policy in.
- policyId string
- The unique ID of the new or updated policy.
- policyStore stringId 
- Specifies the PolicyStoreIdof the policy store you want to store the policy in.
- policy_id str
- The unique ID of the new or updated policy.
- policy_store_ strid 
- Specifies the PolicyStoreIdof the policy store you want to store the policy in.
- policyId String
- The unique ID of the new or updated policy.
- policyStore StringId 
- Specifies the PolicyStoreIdof the policy store you want to store the policy in.
getPolicy Result
The following output properties are available:
- Definition
Pulumi.Aws | Pulumi.Native. Verified Permissions. Outputs. Policy Definition0Properties Aws Native. Verified Permissions. Outputs. Policy Definition1Properties 
- Specifies the policy type and content to use for the new or updated policy. The definition structure must include either a Staticor aTemplateLinkedelement.
- PolicyId string
- The unique ID of the new or updated policy.
- PolicyType Pulumi.Aws Native. Verified Permissions. Policy Type 
- The type of the policy. This is one of the following values:- Static
- TemplateLinked
 
- Definition
PolicyDefinition0Properties | PolicyDefinition1Properties 
- Specifies the policy type and content to use for the new or updated policy. The definition structure must include either a Staticor aTemplateLinkedelement.
- PolicyId string
- The unique ID of the new or updated policy.
- PolicyType PolicyType 
- The type of the policy. This is one of the following values:- Static
- TemplateLinked
 
- definition
PolicyDefinition0Properties | PolicyDefinition1Properties 
- Specifies the policy type and content to use for the new or updated policy. The definition structure must include either a Staticor aTemplateLinkedelement.
- policyId String
- The unique ID of the new or updated policy.
- policyType PolicyType 
- The type of the policy. This is one of the following values:- Static
- TemplateLinked
 
- definition
PolicyDefinition0Properties | PolicyDefinition1Properties 
- Specifies the policy type and content to use for the new or updated policy. The definition structure must include either a Staticor aTemplateLinkedelement.
- policyId string
- The unique ID of the new or updated policy.
- policyType PolicyType 
- The type of the policy. This is one of the following values:- Static
- TemplateLinked
 
- definition
PolicyDefinition0Properties | PolicyDefinition1Properties 
- Specifies the policy type and content to use for the new or updated policy. The definition structure must include either a Staticor aTemplateLinkedelement.
- policy_id str
- The unique ID of the new or updated policy.
- policy_type PolicyType 
- The type of the policy. This is one of the following values:- Static
- TemplateLinked
 
- definition Property Map | Property Map
- Specifies the policy type and content to use for the new or updated policy. The definition structure must include either a Staticor aTemplateLinkedelement.
- policyId String
- The unique ID of the new or updated policy.
- policyType "STATIC" | "TEMPLATE_LINKED"
- The type of the policy. This is one of the following values:- Static
- TemplateLinked
 
Supporting Types
PolicyDefinition0Properties 
PolicyDefinition1Properties 
PolicyEntityIdentifier  
- EntityId string
- EntityType string
- EntityId string
- EntityType string
- entityId String
- entityType String
- entityId string
- entityType string
- entity_id str
- entity_type str
- entityId String
- entityType String
PolicyStaticPolicyDefinition   
- Statement string
- Description string
- Statement string
- Description string
- statement String
- description String
- statement string
- description string
- statement str
- description str
- statement String
- description String
PolicyTemplateLinkedPolicyDefinition    
PolicyType 
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