We recommend new projects start with resources from the AWS provider.
aws-native.datazone.getPolicyGrant
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
Policy Grant in AWS DataZone is an explicit authorization assignment that allows a specific principal (user, group, or project) to perform particular actions (such as creating glossary terms, managing projects, or accessing resources) on governed resources within a certain scope (like a Domain Unit or Project). Policy Grants are essentially the mechanism by which DataZone enforces fine-grained, role-based access control beyond what is possible through AWS IAM alone.
Using getPolicyGrant
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 getPolicyGrant(args: GetPolicyGrantArgs, opts?: InvokeOptions): Promise<GetPolicyGrantResult>
function getPolicyGrantOutput(args: GetPolicyGrantOutputArgs, opts?: InvokeOptions): Output<GetPolicyGrantResult>
def get_policy_grant(domain_identifier: Optional[str] = None,
entity_identifier: Optional[str] = None,
entity_type: Optional[PolicyGrantTargetEntityType] = None,
grant_id: Optional[str] = None,
policy_type: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetPolicyGrantResult
def get_policy_grant_output(domain_identifier: Optional[pulumi.Input[str]] = None,
entity_identifier: Optional[pulumi.Input[str]] = None,
entity_type: Optional[pulumi.Input[PolicyGrantTargetEntityType]] = None,
grant_id: Optional[pulumi.Input[str]] = None,
policy_type: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetPolicyGrantResult]
func LookupPolicyGrant(ctx *Context, args *LookupPolicyGrantArgs, opts ...InvokeOption) (*LookupPolicyGrantResult, error)
func LookupPolicyGrantOutput(ctx *Context, args *LookupPolicyGrantOutputArgs, opts ...InvokeOption) LookupPolicyGrantResultOutput
> Note: This function is named LookupPolicyGrant
in the Go SDK.
public static class GetPolicyGrant
{
public static Task<GetPolicyGrantResult> InvokeAsync(GetPolicyGrantArgs args, InvokeOptions? opts = null)
public static Output<GetPolicyGrantResult> Invoke(GetPolicyGrantInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetPolicyGrantResult> getPolicyGrant(GetPolicyGrantArgs args, InvokeOptions options)
public static Output<GetPolicyGrantResult> getPolicyGrant(GetPolicyGrantArgs args, InvokeOptions options)
fn::invoke:
function: aws-native:datazone:getPolicyGrant
arguments:
# arguments dictionary
The following arguments are supported:
- Domain
Identifier string - The ID of the domain where you want to add a policy grant.
- Entity
Identifier string - The ID of the entity (resource) to which you want to add a policy grant.
- Entity
Type Pulumi.Aws Native. Data Zone. Policy Grant Target Entity Type - The type of entity (resource) to which the grant is added.
- Grant
Id string - The unique identifier of the policy grant returned by the AddPolicyGrant API
- Policy
Type string - The type of policy that you want to grant.
- Domain
Identifier string - The ID of the domain where you want to add a policy grant.
- Entity
Identifier string - The ID of the entity (resource) to which you want to add a policy grant.
- Entity
Type PolicyGrant Target Entity Type - The type of entity (resource) to which the grant is added.
- Grant
Id string - The unique identifier of the policy grant returned by the AddPolicyGrant API
- Policy
Type string - The type of policy that you want to grant.
- domain
Identifier String - The ID of the domain where you want to add a policy grant.
- entity
Identifier String - The ID of the entity (resource) to which you want to add a policy grant.
- entity
Type PolicyGrant Target Entity Type - The type of entity (resource) to which the grant is added.
- grant
Id String - The unique identifier of the policy grant returned by the AddPolicyGrant API
- policy
Type String - The type of policy that you want to grant.
- domain
Identifier string - The ID of the domain where you want to add a policy grant.
- entity
Identifier string - The ID of the entity (resource) to which you want to add a policy grant.
- entity
Type PolicyGrant Target Entity Type - The type of entity (resource) to which the grant is added.
- grant
Id string - The unique identifier of the policy grant returned by the AddPolicyGrant API
- policy
Type string - The type of policy that you want to grant.
- domain_
identifier str - The ID of the domain where you want to add a policy grant.
- entity_
identifier str - The ID of the entity (resource) to which you want to add a policy grant.
- entity_
type PolicyGrant Target Entity Type - The type of entity (resource) to which the grant is added.
- grant_
id str - The unique identifier of the policy grant returned by the AddPolicyGrant API
- policy_
type str - The type of policy that you want to grant.
- domain
Identifier String - The ID of the domain where you want to add a policy grant.
- entity
Identifier String - The ID of the entity (resource) to which you want to add a policy grant.
- entity
Type "DomainUnit" | "Environment Blueprint Configuration" | "Environment Profile" | "ASSET_TYPE" - The type of entity (resource) to which the grant is added.
- grant
Id String - The unique identifier of the policy grant returned by the AddPolicyGrant API
- policy
Type String - The type of policy that you want to grant.
getPolicyGrant Result
The following output properties are available:
- created_
at str - Specifies the timestamp at which policy grant member was created.
- created_
by str - Specifies the user who created the policy grant member.
- grant_
id str - The unique identifier of the policy grant returned by the AddPolicyGrant API
Supporting Types
PolicyGrantTargetEntityType
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.