We recommend new projects start with resources from the AWS provider.
published on Wednesday, Nov 18, 2026 by Pulumi
We recommend new projects start with resources from the AWS provider.
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 dictionarydata "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:
- 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 Pulumi.Aws Native. Cloud Watch. Access Grant Grant Type - Who manages the grant.
- Updated
At 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 AccessGrant Grant Type - Who manages the grant.
- Updated
At 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.
- 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 AccessGrant Grant Type - Who manages the grant.
- updated
At 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 AccessGrant Grant Type - Who manages the grant.
- updated
At 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 AccessGrant Grant Type - Who manages the grant.
- updated_
at str - 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.
Supporting Types
AccessGrantGrantType
| Name | Value |
|---|---|
| Service | SERVICE_MANAGED |
| Customer | CUSTOMER_MANAGED |
| Name | Value |
|---|---|
| Access | SERVICE_MANAGED |
| Access | CUSTOMER_MANAGED |
| Value |
|---|
SERVICE_MANAGED |
CUSTOMER_MANAGED |
| Name | Value |
|---|---|
| Service | SERVICE_MANAGED |
| Customer | CUSTOMER_MANAGED |
| Name | Value |
|---|---|
| Service | SERVICE_MANAGED |
| Customer | CUSTOMER_MANAGED |
| Name | Value |
|---|---|
| SERVICE_MANAGED | SERVICE_MANAGED |
| CUSTOMER_MANAGED | CUSTOMER_MANAGED |
| Value |
|---|
SERVICE_MANAGED |
CUSTOMER_MANAGED |
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.
published on Wednesday, Nov 18, 2026 by Pulumi