1. Registry
  2. Packages
  3. AWS Cloud Control
  4. API Docs
  5. cloudwatch
  6. getAccessGrant

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

Viewing docs for AWS Cloud Control v1.86.0
published on Wednesday, Nov 18, 2026 by Pulumi
aws-native logo aws-native logo AWS Cloud Control

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

Viewing docs for AWS Cloud Control v1.86.0
published on Wednesday, Nov 18, 2026 by Pulumi

    Resource Type definition for AWS::CloudWatch::AccessGrant. An access grant authorizes a principal to perform a set of actions on resources in a space.

    Using getAccessGrant

    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 getAccessGrant(args: GetAccessGrantArgs, opts?: InvokeOptions): Promise<GetAccessGrantResult>
    function getAccessGrantOutput(args: GetAccessGrantOutputArgs, opts?: InvokeOutputOptions): Output<GetAccessGrantResult>
    def get_access_grant(arn: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetAccessGrantResult
    def get_access_grant_output(arn: pulumi.Input[Optional[str]] = None,
                         opts: Optional[InvokeOutputOptions] = None) -> Output[GetAccessGrantResult]
    func LookupAccessGrant(ctx *Context, args *LookupAccessGrantArgs, opts ...InvokeOption) (*LookupAccessGrantResult, error)
    func LookupAccessGrantOutput(ctx *Context, args *LookupAccessGrantOutputArgs, opts ...InvokeOption) LookupAccessGrantResultOutput

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

    public static class GetAccessGrant 
    {
        public static Task<GetAccessGrantResult> InvokeAsync(GetAccessGrantArgs args, InvokeOptions? opts = null)
        public static Output<GetAccessGrantResult> Invoke(GetAccessGrantInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetAccessGrantResult> Invoke(GetAccessGrantInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetAccessGrantResult> getAccessGrant(GetAccessGrantArgs args, InvokeOptions options)
    public static Output<GetAccessGrantResult> getAccessGrant(GetAccessGrantArgs args, InvokeOptions options)
    public static Output<GetAccessGrantResult> getAccessGrant(GetAccessGrantArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: aws-native:cloudwatch:getAccessGrant
      arguments:
        # arguments dictionary
    data "aws-native_cloudwatch_get_access_grant" "name" {
        # arguments
    }

    The following arguments are supported:

    Arn string
    The Amazon Resource Name (ARN) of the access grant.
    Arn string
    The Amazon Resource Name (ARN) of the access grant.
    arn string
    The Amazon Resource Name (ARN) of the access grant.
    arn String
    The Amazon Resource Name (ARN) of the access grant.
    arn string
    The Amazon Resource Name (ARN) of the access grant.
    arn str
    The Amazon Resource Name (ARN) of the access grant.
    arn String
    The Amazon Resource Name (ARN) of the access grant.

    getAccessGrant Result

    The following output properties are available:

    AccountId string
    The AWS account ID that owns the grant.
    Arn string
    The Amazon Resource Name (ARN) of the access grant.
    CreatedAt string
    The timestamp when the grant was created.
    CreatedBy string
    The principal that created the grant.
    GrantId string
    The unique ID of the access grant.
    GrantType Pulumi.AwsNative.CloudWatch.AccessGrantGrantType
    Who manages the grant.
    UpdatedAt string
    The timestamp when the grant was last updated.
    AccountId string
    The AWS account ID that owns the grant.
    Arn string
    The Amazon Resource Name (ARN) of the access grant.
    CreatedAt string
    The timestamp when the grant was created.
    CreatedBy string
    The principal that created the grant.
    GrantId string
    The unique ID of the access grant.
    GrantType AccessGrantGrantType
    Who manages the grant.
    UpdatedAt string
    The timestamp when the grant was last updated.
    account_id string
    The AWS account ID that owns the grant.
    arn string
    The Amazon Resource Name (ARN) of the access grant.
    created_at string
    The timestamp when the grant was created.
    created_by string
    The principal that created the grant.
    grant_id string
    The unique ID of the access grant.
    grant_type "SERVICE_MANAGED" | "CUSTOMER_MANAGED"
    Who manages the grant.
    updated_at string
    The timestamp when the grant was last updated.
    accountId String
    The AWS account ID that owns the grant.
    arn String
    The Amazon Resource Name (ARN) of the access grant.
    createdAt String
    The timestamp when the grant was created.
    createdBy String
    The principal that created the grant.
    grantId String
    The unique ID of the access grant.
    grantType AccessGrantGrantType
    Who manages the grant.
    updatedAt String
    The timestamp when the grant was last updated.
    accountId string
    The AWS account ID that owns the grant.
    arn string
    The Amazon Resource Name (ARN) of the access grant.
    createdAt string
    The timestamp when the grant was created.
    createdBy string
    The principal that created the grant.
    grantId string
    The unique ID of the access grant.
    grantType AccessGrantGrantType
    Who manages the grant.
    updatedAt string
    The timestamp when the grant was last updated.
    account_id str
    The AWS account ID that owns the grant.
    arn str
    The Amazon Resource Name (ARN) of the access grant.
    created_at str
    The timestamp when the grant was created.
    created_by str
    The principal that created the grant.
    grant_id str
    The unique ID of the access grant.
    grant_type AccessGrantGrantType
    Who manages the grant.
    updated_at str
    The timestamp when the grant was last updated.
    accountId String
    The AWS account ID that owns the grant.
    arn String
    The Amazon Resource Name (ARN) of the access grant.
    createdAt String
    The timestamp when the grant was created.
    createdBy String
    The principal that created the grant.
    grantId String
    The unique ID of the access grant.
    grantType "SERVICE_MANAGED" | "CUSTOMER_MANAGED"
    Who manages the grant.
    updatedAt String
    The timestamp when the grant was last updated.

    Supporting Types

    AccessGrantGrantType

    NameValue
    ServiceManagedSERVICE_MANAGED
    CustomerManagedCUSTOMER_MANAGED
    NameValue
    AccessGrantGrantTypeServiceManagedSERVICE_MANAGED
    AccessGrantGrantTypeCustomerManagedCUSTOMER_MANAGED
    Value
    SERVICE_MANAGED
    CUSTOMER_MANAGED
    NameValue
    ServiceManagedSERVICE_MANAGED
    CustomerManagedCUSTOMER_MANAGED
    NameValue
    ServiceManagedSERVICE_MANAGED
    CustomerManagedCUSTOMER_MANAGED
    NameValue
    SERVICE_MANAGEDSERVICE_MANAGED
    CUSTOMER_MANAGEDCUSTOMER_MANAGED
    Value
    SERVICE_MANAGED
    CUSTOMER_MANAGED

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo aws-native logo AWS Cloud Control

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

    Viewing docs for AWS Cloud Control v1.86.0
    published on Wednesday, Nov 18, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial