published on Friday, Nov 13, 2026 by Pulumi
published on Friday, Nov 13, 2026 by Pulumi
Manages a CloudWatch Omni Access Grant. An access grant gives a principal a permission within a CloudWatch Omni space.
NOTE: CloudWatch Omni does not support updating an access grant, so changing any argument other than
tagsreplaces it. Tags are updated in place.
NOTE: Except for
CUSTOMgrants, a principal can hold only one grant of each permission in a space. Creating a duplicate returnsConflictException.
NOTE: CloudWatch Omni creates service-managed access grants alongside each space. They cannot be deleted and are not managed by this resource.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.cloudwatchomni.AccessGrant("example", {
principal: {
principalType: "IAM_ROLE",
principalId: exampleAwsIamRole.arn,
},
name: "example",
domainId: exampleAwsCloudwatchomniDomain.domainId,
spaceId: exampleAwsCloudwatchomniSpace.spaceId,
permission: "READ",
tags: {
Environment: "production",
},
});
import pulumi
import pulumi_aws as aws
example = aws.cloudwatchomni.AccessGrant("example",
principal={
"principal_type": "IAM_ROLE",
"principal_id": example_aws_iam_role["arn"],
},
name="example",
domain_id=example_aws_cloudwatchomni_domain["domainId"],
space_id=example_aws_cloudwatchomni_space["spaceId"],
permission="READ",
tags={
"Environment": "production",
})
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/cloudwatchomni"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudwatchomni.NewAccessGrant(ctx, "example", &cloudwatchomni.AccessGrantArgs{
Principal: &cloudwatchomni.AccessGrantPrincipalArgs{
PrincipalType: pulumi.String("IAM_ROLE"),
PrincipalId: pulumi.Any(exampleAwsIamRole.Arn),
},
Name: pulumi.String("example"),
DomainId: pulumi.Any(exampleAwsCloudwatchomniDomain.DomainId),
SpaceId: pulumi.Any(exampleAwsCloudwatchomniSpace.SpaceId),
Permission: pulumi.String("READ"),
Tags: pulumi.StringMap{
"Environment": pulumi.String("production"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.CloudWatchOmni.AccessGrant("example", new()
{
Principal = new Aws.CloudWatchOmni.Inputs.AccessGrantPrincipalArgs
{
PrincipalType = "IAM_ROLE",
PrincipalId = exampleAwsIamRole.Arn,
},
Name = "example",
DomainId = exampleAwsCloudwatchomniDomain.DomainId,
SpaceId = exampleAwsCloudwatchomniSpace.SpaceId,
Permission = "READ",
Tags =
{
{ "Environment", "production" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.cloudwatchomni.AccessGrant;
import com.pulumi.aws.cloudwatchomni.AccessGrantArgs;
import com.pulumi.aws.cloudwatchomni.inputs.AccessGrantPrincipalArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new AccessGrant("example", AccessGrantArgs.builder()
.principal(AccessGrantPrincipalArgs.builder()
.principalType("IAM_ROLE")
.principalId(exampleAwsIamRole.get("arn"))
.build())
.name("example")
.domainId(exampleAwsCloudwatchomniDomain.get("domainId"))
.spaceId(exampleAwsCloudwatchomniSpace.get("spaceId"))
.permission("READ")
.tags(Map.of("Environment", "production"))
.build());
}
}
resources:
example:
type: aws:cloudwatchomni:AccessGrant
properties:
principal:
principalType: IAM_ROLE
principalId: ${exampleAwsIamRole.arn}
name: example
domainId: ${exampleAwsCloudwatchomniDomain.domainId}
spaceId: ${exampleAwsCloudwatchomniSpace.spaceId}
permission: READ
tags:
Environment: production
terraform {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
resource "aws_cloudwatchomni_access_grant" "example" {
lifecycle {
create_before_destroy = true
}
principal {
principal_type = "IAM_ROLE"
principal_id = exampleAwsIamRole.arn
}
name = "example"
domain_id = exampleAwsCloudwatchomniDomain.domainId
space_id = exampleAwsCloudwatchomniSpace.spaceId
permission = "READ"
tags = {
"Environment" = "production"
}
}
Custom Permission
A CUSTOM permission requires at least one scopedAction block.
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.cloudwatchomni.AccessGrant("example", {
principal: {
principalType: "IAM_ROLE",
principalId: exampleAwsIamRole.arn,
},
scopedActions: [{
resources: [{
rowScopeGroups: [{
rowScopes: [{
field: "serviceName",
operator: "IN",
values: [
"checkout",
"payments",
],
}],
}],
resourceType: "DataSet",
signalTypes: ["LOGS"],
}],
actions: ["cloudwatch:GetRecords"],
}],
name: "example",
domainId: exampleAwsCloudwatchomniDomain.domainId,
spaceId: exampleAwsCloudwatchomniSpace.spaceId,
permission: "CUSTOM",
});
import pulumi
import pulumi_aws as aws
example = aws.cloudwatchomni.AccessGrant("example",
principal={
"principal_type": "IAM_ROLE",
"principal_id": example_aws_iam_role["arn"],
},
scoped_actions=[{
"resources": [{
"row_scope_groups": [{
"row_scopes": [{
"field": "serviceName",
"operator": "IN",
"values": [
"checkout",
"payments",
],
}],
}],
"resource_type": "DataSet",
"signal_types": ["LOGS"],
}],
"actions": ["cloudwatch:GetRecords"],
}],
name="example",
domain_id=example_aws_cloudwatchomni_domain["domainId"],
space_id=example_aws_cloudwatchomni_space["spaceId"],
permission="CUSTOM")
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/cloudwatchomni"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudwatchomni.NewAccessGrant(ctx, "example", &cloudwatchomni.AccessGrantArgs{
Principal: &cloudwatchomni.AccessGrantPrincipalArgs{
PrincipalType: pulumi.String("IAM_ROLE"),
PrincipalId: pulumi.Any(exampleAwsIamRole.Arn),
},
ScopedActions: cloudwatchomni.AccessGrantScopedActionArray{
&cloudwatchomni.AccessGrantScopedActionArgs{
Resources: cloudwatchomni.AccessGrantScopedActionResourceArray{
&cloudwatchomni.AccessGrantScopedActionResourceArgs{
RowScopeGroups: cloudwatchomni.AccessGrantScopedActionResourceRowScopeGroupArray{
&cloudwatchomni.AccessGrantScopedActionResourceRowScopeGroupArgs{
RowScopes: cloudwatchomni.AccessGrantScopedActionResourceRowScopeGroupRowScopeArray{
&cloudwatchomni.AccessGrantScopedActionResourceRowScopeGroupRowScopeArgs{
Field: pulumi.String("serviceName"),
Operator: pulumi.String("IN"),
Values: pulumi.StringArray{
pulumi.String("checkout"),
pulumi.String("payments"),
},
},
},
},
},
ResourceType: pulumi.String("DataSet"),
SignalTypes: pulumi.StringArray{
pulumi.String("LOGS"),
},
},
},
Actions: pulumi.StringArray{
pulumi.String("cloudwatch:GetRecords"),
},
},
},
Name: pulumi.String("example"),
DomainId: pulumi.Any(exampleAwsCloudwatchomniDomain.DomainId),
SpaceId: pulumi.Any(exampleAwsCloudwatchomniSpace.SpaceId),
Permission: pulumi.String("CUSTOM"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.CloudWatchOmni.AccessGrant("example", new()
{
Principal = new Aws.CloudWatchOmni.Inputs.AccessGrantPrincipalArgs
{
PrincipalType = "IAM_ROLE",
PrincipalId = exampleAwsIamRole.Arn,
},
ScopedActions = new[]
{
new Aws.CloudWatchOmni.Inputs.AccessGrantScopedActionArgs
{
Resources = new[]
{
new Aws.CloudWatchOmni.Inputs.AccessGrantScopedActionResourceArgs
{
RowScopeGroups = new[]
{
new Aws.CloudWatchOmni.Inputs.AccessGrantScopedActionResourceRowScopeGroupArgs
{
RowScopes = new[]
{
new Aws.CloudWatchOmni.Inputs.AccessGrantScopedActionResourceRowScopeGroupRowScopeArgs
{
Field = "serviceName",
Operator = "IN",
Values = new[]
{
"checkout",
"payments",
},
},
},
},
},
ResourceType = "DataSet",
SignalTypes = new[]
{
"LOGS",
},
},
},
Actions = new[]
{
"cloudwatch:GetRecords",
},
},
},
Name = "example",
DomainId = exampleAwsCloudwatchomniDomain.DomainId,
SpaceId = exampleAwsCloudwatchomniSpace.SpaceId,
Permission = "CUSTOM",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.cloudwatchomni.AccessGrant;
import com.pulumi.aws.cloudwatchomni.AccessGrantArgs;
import com.pulumi.aws.cloudwatchomni.inputs.AccessGrantPrincipalArgs;
import com.pulumi.aws.cloudwatchomni.inputs.AccessGrantScopedActionArgs;
import com.pulumi.aws.cloudwatchomni.inputs.AccessGrantScopedActionResourceArgs;
import com.pulumi.aws.cloudwatchomni.inputs.AccessGrantScopedActionResourceRowScopeGroupArgs;
import com.pulumi.aws.cloudwatchomni.inputs.AccessGrantScopedActionResourceRowScopeGroupRowScopeArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new AccessGrant("example", AccessGrantArgs.builder()
.principal(AccessGrantPrincipalArgs.builder()
.principalType("IAM_ROLE")
.principalId(exampleAwsIamRole.get("arn"))
.build())
.scopedActions(AccessGrantScopedActionArgs.builder()
.resources(AccessGrantScopedActionResourceArgs.builder()
.rowScopeGroups(AccessGrantScopedActionResourceRowScopeGroupArgs.builder()
.rowScopes(AccessGrantScopedActionResourceRowScopeGroupRowScopeArgs.builder()
.field("serviceName")
.operator("IN")
.values(
"checkout",
"payments")
.build())
.build())
.resourceType("DataSet")
.signalTypes("LOGS")
.build())
.actions("cloudwatch:GetRecords")
.build())
.name("example")
.domainId(exampleAwsCloudwatchomniDomain.get("domainId"))
.spaceId(exampleAwsCloudwatchomniSpace.get("spaceId"))
.permission("CUSTOM")
.build());
}
}
resources:
example:
type: aws:cloudwatchomni:AccessGrant
properties:
principal:
principalType: IAM_ROLE
principalId: ${exampleAwsIamRole.arn}
scopedActions:
- resources:
- rowScopeGroups:
- rowScopes:
- field: serviceName
operator: IN
values:
- checkout
- payments
resourceType: DataSet
signalTypes:
- LOGS
actions:
- cloudwatch:GetRecords
name: example
domainId: ${exampleAwsCloudwatchomniDomain.domainId}
spaceId: ${exampleAwsCloudwatchomniSpace.spaceId}
permission: CUSTOM
terraform {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
resource "aws_cloudwatchomni_access_grant" "example" {
lifecycle {
create_before_destroy = true
}
principal {
principal_type = "IAM_ROLE"
principal_id = exampleAwsIamRole.arn
}
scoped_action {
resource {
row_scope_group {
row_scope {
field = "serviceName"
operator = "IN"
values = ["checkout", "payments"]
}
}
resource_type = "DataSet"
signal_types = ["LOGS"]
}
actions = ["cloudwatch:GetRecords"]
}
name = "example"
domain_id = exampleAwsCloudwatchomniDomain.domainId
space_id = exampleAwsCloudwatchomniSpace.spaceId
permission = "CUSTOM"
}
Create AccessGrant Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AccessGrant(name: string, args: AccessGrantArgs, opts?: CustomResourceOptions);@overload
def AccessGrant(resource_name: str,
args: AccessGrantArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AccessGrant(resource_name: str,
opts: Optional[ResourceOptions] = None,
domain_id: Optional[str] = None,
permission: Optional[str] = None,
principal: Optional[AccessGrantPrincipalArgs] = None,
space_id: Optional[str] = None,
name: Optional[str] = None,
region: Optional[str] = None,
scoped_actions: Optional[Sequence[AccessGrantScopedActionArgs]] = None,
tags: Optional[Mapping[str, str]] = None)func NewAccessGrant(ctx *Context, name string, args AccessGrantArgs, opts ...ResourceOption) (*AccessGrant, error)public AccessGrant(string name, AccessGrantArgs args, CustomResourceOptions? opts = null)
public AccessGrant(String name, AccessGrantArgs args)
public AccessGrant(String name, AccessGrantArgs args, CustomResourceOptions options)
type: aws:cloudwatchomni:AccessGrant
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "aws_cloudwatchomni_access_grant" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args AccessGrantArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args AccessGrantArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args AccessGrantArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AccessGrantArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AccessGrantArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var accessGrantResource = new Aws.CloudWatchOmni.AccessGrant("accessGrantResource", new()
{
DomainId = "string",
Permission = "string",
Principal = new Aws.CloudWatchOmni.Inputs.AccessGrantPrincipalArgs
{
PrincipalType = "string",
PrincipalAttributes = new[]
{
new Aws.CloudWatchOmni.Inputs.AccessGrantPrincipalPrincipalAttributeArgs
{
Key = "string",
Value = "string",
},
},
PrincipalId = "string",
},
SpaceId = "string",
Name = "string",
Region = "string",
ScopedActions = new[]
{
new Aws.CloudWatchOmni.Inputs.AccessGrantScopedActionArgs
{
Actions = new[]
{
"string",
},
Resources = new[]
{
new Aws.CloudWatchOmni.Inputs.AccessGrantScopedActionResourceArgs
{
ResourceType = "string",
ResourceArns = new[]
{
"string",
},
RowScopeGroups = new[]
{
new Aws.CloudWatchOmni.Inputs.AccessGrantScopedActionResourceRowScopeGroupArgs
{
RowScopes = new[]
{
new Aws.CloudWatchOmni.Inputs.AccessGrantScopedActionResourceRowScopeGroupRowScopeArgs
{
Field = "string",
Operator = "string",
Values = new[]
{
"string",
},
},
},
},
},
SignalTypes = new[]
{
"string",
},
Tags =
{
{ "string", "string" },
},
},
},
},
},
Tags =
{
{ "string", "string" },
},
});
example, err := cloudwatchomni.NewAccessGrant(ctx, "accessGrantResource", &cloudwatchomni.AccessGrantArgs{
DomainId: pulumi.String("string"),
Permission: pulumi.String("string"),
Principal: &cloudwatchomni.AccessGrantPrincipalArgs{
PrincipalType: pulumi.String("string"),
PrincipalAttributes: cloudwatchomni.AccessGrantPrincipalPrincipalAttributeArray{
&cloudwatchomni.AccessGrantPrincipalPrincipalAttributeArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
PrincipalId: pulumi.String("string"),
},
SpaceId: pulumi.String("string"),
Name: pulumi.String("string"),
Region: pulumi.String("string"),
ScopedActions: cloudwatchomni.AccessGrantScopedActionArray{
&cloudwatchomni.AccessGrantScopedActionArgs{
Actions: pulumi.StringArray{
pulumi.String("string"),
},
Resources: cloudwatchomni.AccessGrantScopedActionResourceArray{
&cloudwatchomni.AccessGrantScopedActionResourceArgs{
ResourceType: pulumi.String("string"),
ResourceArns: pulumi.StringArray{
pulumi.String("string"),
},
RowScopeGroups: cloudwatchomni.AccessGrantScopedActionResourceRowScopeGroupArray{
&cloudwatchomni.AccessGrantScopedActionResourceRowScopeGroupArgs{
RowScopes: cloudwatchomni.AccessGrantScopedActionResourceRowScopeGroupRowScopeArray{
&cloudwatchomni.AccessGrantScopedActionResourceRowScopeGroupRowScopeArgs{
Field: pulumi.String("string"),
Operator: pulumi.String("string"),
Values: pulumi.StringArray{
pulumi.String("string"),
},
},
},
},
},
SignalTypes: pulumi.StringArray{
pulumi.String("string"),
},
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
},
},
},
},
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
resource "aws_cloudwatchomni_access_grant" "accessGrantResource" {
lifecycle {
create_before_destroy = true
}
domain_id = "string"
permission = "string"
principal = {
principal_type = "string"
principal_attributes = [{
key = "string"
value = "string"
}]
principal_id = "string"
}
space_id = "string"
name = "string"
region = "string"
scoped_actions {
actions = ["string"]
resources {
resource_type = "string"
resource_arns = ["string"]
row_scope_groups {
row_scopes {
field = "string"
operator = "string"
values = ["string"]
}
}
signal_types = ["string"]
tags = {
"string" = "string"
}
}
}
tags = {
"string" = "string"
}
}
var accessGrantResource = new com.pulumi.aws.cloudwatchomni.AccessGrant("accessGrantResource", com.pulumi.aws.cloudwatchomni.AccessGrantArgs.builder()
.domainId("string")
.permission("string")
.principal(AccessGrantPrincipalArgs.builder()
.principalType("string")
.principalAttributes(AccessGrantPrincipalPrincipalAttributeArgs.builder()
.key("string")
.value("string")
.build())
.principalId("string")
.build())
.spaceId("string")
.name("string")
.region("string")
.scopedActions(AccessGrantScopedActionArgs.builder()
.actions("string")
.resources(AccessGrantScopedActionResourceArgs.builder()
.resourceType("string")
.resourceArns("string")
.rowScopeGroups(AccessGrantScopedActionResourceRowScopeGroupArgs.builder()
.rowScopes(AccessGrantScopedActionResourceRowScopeGroupRowScopeArgs.builder()
.field("string")
.operator("string")
.values("string")
.build())
.build())
.signalTypes("string")
.tags(Map.of("string", "string"))
.build())
.build())
.tags(Map.of("string", "string"))
.build());
access_grant_resource = aws.cloudwatchomni.AccessGrant("accessGrantResource",
domain_id="string",
permission="string",
principal={
"principal_type": "string",
"principal_attributes": [{
"key": "string",
"value": "string",
}],
"principal_id": "string",
},
space_id="string",
name="string",
region="string",
scoped_actions=[{
"actions": ["string"],
"resources": [{
"resource_type": "string",
"resource_arns": ["string"],
"row_scope_groups": [{
"row_scopes": [{
"field": "string",
"operator": "string",
"values": ["string"],
}],
}],
"signal_types": ["string"],
"tags": {
"string": "string",
},
}],
}],
tags={
"string": "string",
})
const accessGrantResource = new aws.cloudwatchomni.AccessGrant("accessGrantResource", {
domainId: "string",
permission: "string",
principal: {
principalType: "string",
principalAttributes: [{
key: "string",
value: "string",
}],
principalId: "string",
},
spaceId: "string",
name: "string",
region: "string",
scopedActions: [{
actions: ["string"],
resources: [{
resourceType: "string",
resourceArns: ["string"],
rowScopeGroups: [{
rowScopes: [{
field: "string",
operator: "string",
values: ["string"],
}],
}],
signalTypes: ["string"],
tags: {
string: "string",
},
}],
}],
tags: {
string: "string",
},
});
type: aws:cloudwatchomni:AccessGrant
properties:
domainId: string
name: string
permission: string
principal:
principalAttributes:
- key: string
value: string
principalId: string
principalType: string
region: string
scopedActions:
- actions:
- string
resources:
- resourceArns:
- string
resourceType: string
rowScopeGroups:
- rowScopes:
- field: string
operator: string
values:
- string
signalTypes:
- string
tags:
string: string
spaceId: string
tags:
string: string
AccessGrant Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The AccessGrant resource accepts the following input properties:
- Domain
Id string - ID of the CloudWatch Omni domain that contains the space. Changing this forces a new resource.
- Permission string
- Permission to grant. Valid values are
SPACE_ADMIN,READ,READ_WRITE_DELETEandCUSTOM. Changing this forces a new resource. - Principal
Access
Grant Principal - Principal receiving the grant. See below. Changing this forces a new resource.
- Space
Id string ID of the CloudWatch Omni space to scope the grant to. Changing this forces a new resource.
The following arguments are optional:
- Name string
- Name of the access grant. Must be 1-64 characters and contain only letters, numbers, underscores (
_) and hyphens (-). Changing this forces a new resource. - Region string
- Region where this resource is managed. Defaults to the Region set in the provider configuration.
- Scoped
Actions List<AccessGrant Scoped Action> - Group of actions to allow, with the resource scopes and conditions that limit them. Up to 20 blocks. Required for the
CUSTOMpermission, and can also be used with the other permissions. See below. Changing this forces a new resource. - Dictionary<string, string>
- Map of tags assigned to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- Domain
Id string - ID of the CloudWatch Omni domain that contains the space. Changing this forces a new resource.
- Permission string
- Permission to grant. Valid values are
SPACE_ADMIN,READ,READ_WRITE_DELETEandCUSTOM. Changing this forces a new resource. - Principal
Access
Grant Principal Args - Principal receiving the grant. See below. Changing this forces a new resource.
- Space
Id string ID of the CloudWatch Omni space to scope the grant to. Changing this forces a new resource.
The following arguments are optional:
- Name string
- Name of the access grant. Must be 1-64 characters and contain only letters, numbers, underscores (
_) and hyphens (-). Changing this forces a new resource. - Region string
- Region where this resource is managed. Defaults to the Region set in the provider configuration.
- Scoped
Actions []AccessGrant Scoped Action Args - Group of actions to allow, with the resource scopes and conditions that limit them. Up to 20 blocks. Required for the
CUSTOMpermission, and can also be used with the other permissions. See below. Changing this forces a new resource. - map[string]string
- Map of tags assigned to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- domain_
id string - ID of the CloudWatch Omni domain that contains the space. Changing this forces a new resource.
- permission string
- Permission to grant. Valid values are
SPACE_ADMIN,READ,READ_WRITE_DELETEandCUSTOM. Changing this forces a new resource. - principal object
- Principal receiving the grant. See below. Changing this forces a new resource.
- space_
id string ID of the CloudWatch Omni space to scope the grant to. Changing this forces a new resource.
The following arguments are optional:
- name string
- Name of the access grant. Must be 1-64 characters and contain only letters, numbers, underscores (
_) and hyphens (-). Changing this forces a new resource. - region string
- Region where this resource is managed. Defaults to the Region set in the provider configuration.
- scoped_
actions list(object) - Group of actions to allow, with the resource scopes and conditions that limit them. Up to 20 blocks. Required for the
CUSTOMpermission, and can also be used with the other permissions. See below. Changing this forces a new resource. - map(string)
- Map of tags assigned to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- domain
Id String - ID of the CloudWatch Omni domain that contains the space. Changing this forces a new resource.
- permission String
- Permission to grant. Valid values are
SPACE_ADMIN,READ,READ_WRITE_DELETEandCUSTOM. Changing this forces a new resource. - principal
Access
Grant Principal - Principal receiving the grant. See below. Changing this forces a new resource.
- space
Id String ID of the CloudWatch Omni space to scope the grant to. Changing this forces a new resource.
The following arguments are optional:
- name String
- Name of the access grant. Must be 1-64 characters and contain only letters, numbers, underscores (
_) and hyphens (-). Changing this forces a new resource. - region String
- Region where this resource is managed. Defaults to the Region set in the provider configuration.
- scoped
Actions List<AccessGrant Scoped Action> - Group of actions to allow, with the resource scopes and conditions that limit them. Up to 20 blocks. Required for the
CUSTOMpermission, and can also be used with the other permissions. See below. Changing this forces a new resource. - Map<String,String>
- Map of tags assigned to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- domain
Id string - ID of the CloudWatch Omni domain that contains the space. Changing this forces a new resource.
- permission string
- Permission to grant. Valid values are
SPACE_ADMIN,READ,READ_WRITE_DELETEandCUSTOM. Changing this forces a new resource. - principal
Access
Grant Principal - Principal receiving the grant. See below. Changing this forces a new resource.
- space
Id string ID of the CloudWatch Omni space to scope the grant to. Changing this forces a new resource.
The following arguments are optional:
- name string
- Name of the access grant. Must be 1-64 characters and contain only letters, numbers, underscores (
_) and hyphens (-). Changing this forces a new resource. - region string
- Region where this resource is managed. Defaults to the Region set in the provider configuration.
- scoped
Actions AccessGrant Scoped Action[] - Group of actions to allow, with the resource scopes and conditions that limit them. Up to 20 blocks. Required for the
CUSTOMpermission, and can also be used with the other permissions. See below. Changing this forces a new resource. - {[key: string]: string}
- Map of tags assigned to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- domain_
id str - ID of the CloudWatch Omni domain that contains the space. Changing this forces a new resource.
- permission str
- Permission to grant. Valid values are
SPACE_ADMIN,READ,READ_WRITE_DELETEandCUSTOM. Changing this forces a new resource. - principal
Access
Grant Principal Args - Principal receiving the grant. See below. Changing this forces a new resource.
- space_
id str ID of the CloudWatch Omni space to scope the grant to. Changing this forces a new resource.
The following arguments are optional:
- name str
- Name of the access grant. Must be 1-64 characters and contain only letters, numbers, underscores (
_) and hyphens (-). Changing this forces a new resource. - region str
- Region where this resource is managed. Defaults to the Region set in the provider configuration.
- scoped_
actions Sequence[AccessGrant Scoped Action Args] - Group of actions to allow, with the resource scopes and conditions that limit them. Up to 20 blocks. Required for the
CUSTOMpermission, and can also be used with the other permissions. See below. Changing this forces a new resource. - Mapping[str, str]
- Map of tags assigned to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- domain
Id String - ID of the CloudWatch Omni domain that contains the space. Changing this forces a new resource.
- permission String
- Permission to grant. Valid values are
SPACE_ADMIN,READ,READ_WRITE_DELETEandCUSTOM. Changing this forces a new resource. - principal Property Map
- Principal receiving the grant. See below. Changing this forces a new resource.
- space
Id String ID of the CloudWatch Omni space to scope the grant to. Changing this forces a new resource.
The following arguments are optional:
- name String
- Name of the access grant. Must be 1-64 characters and contain only letters, numbers, underscores (
_) and hyphens (-). Changing this forces a new resource. - region String
- Region where this resource is managed. Defaults to the Region set in the provider configuration.
- scoped
Actions List<Property Map> - Group of actions to allow, with the resource scopes and conditions that limit them. Up to 20 blocks. Required for the
CUSTOMpermission, and can also be used with the other permissions. See below. Changing this forces a new resource. - Map<String>
- Map of tags assigned to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
Outputs
All input properties are implicitly available as output properties. Additionally, the AccessGrant resource produces the following output properties:
- Arn string
- ARN of the access grant.
- Grant
Id string - Unique ID of the access grant.
- Grant
Type string - Who manages the access grant.
- Id string
- The provider-assigned unique ID for this managed resource.
- Dictionary<string, string>
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block.
- Arn string
- ARN of the access grant.
- Grant
Id string - Unique ID of the access grant.
- Grant
Type string - Who manages the access grant.
- Id string
- The provider-assigned unique ID for this managed resource.
- map[string]string
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block.
- arn string
- ARN of the access grant.
- grant_
id string - Unique ID of the access grant.
- grant_
type string - Who manages the access grant.
- id string
- The provider-assigned unique ID for this managed resource.
- map(string)
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block.
- arn String
- ARN of the access grant.
- grant
Id String - Unique ID of the access grant.
- grant
Type String - Who manages the access grant.
- id String
- The provider-assigned unique ID for this managed resource.
- Map<String,String>
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block.
- arn string
- ARN of the access grant.
- grant
Id string - Unique ID of the access grant.
- grant
Type string - Who manages the access grant.
- id string
- The provider-assigned unique ID for this managed resource.
- {[key: string]: string}
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block.
- arn str
- ARN of the access grant.
- grant_
id str - Unique ID of the access grant.
- grant_
type str - Who manages the access grant.
- id str
- The provider-assigned unique ID for this managed resource.
- Mapping[str, str]
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block.
- arn String
- ARN of the access grant.
- grant
Id String - Unique ID of the access grant.
- grant
Type String - Who manages the access grant.
- id String
- The provider-assigned unique ID for this managed resource.
- Map<String>
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block.
Look up Existing AccessGrant Resource
Get an existing AccessGrant resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: AccessGrantState, opts?: CustomResourceOptions): AccessGrant@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
arn: Optional[str] = None,
domain_id: Optional[str] = None,
grant_id: Optional[str] = None,
grant_type: Optional[str] = None,
name: Optional[str] = None,
permission: Optional[str] = None,
principal: Optional[AccessGrantPrincipalArgs] = None,
region: Optional[str] = None,
scoped_actions: Optional[Sequence[AccessGrantScopedActionArgs]] = None,
space_id: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
tags_all: Optional[Mapping[str, str]] = None) -> AccessGrantfunc GetAccessGrant(ctx *Context, name string, id IDInput, state *AccessGrantState, opts ...ResourceOption) (*AccessGrant, error)public static AccessGrant Get(string name, Input<string> id, AccessGrantState? state, CustomResourceOptions? opts = null)public static AccessGrant get(String name, Output<String> id, AccessGrantState state, CustomResourceOptions options)resources: existingAccessGrant: type: aws:cloudwatchomni:AccessGrant get: id: ${id}import {
to = aws_cloudwatchomni_access_grant.example
id = "${id}"
}
- name string
- The unique name of the resulting resource.
- id Input<ID>
- The unique provider ID of the resource to look up.
- state AccessGrantState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resulting resource.
- id str
- The unique provider ID of the resource to look up.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resulting resource.
- id IDInput
- The unique provider ID of the resource to look up.
- state AccessGrantState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resulting resource.
- id Input<string>
- The unique provider ID of the resource to look up.
- state AccessGrantState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resulting resource.
- id Output<String>
- The unique provider ID of the resource to look up.
- state AccessGrantState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
- Arn string
- ARN of the access grant.
- Domain
Id string - ID of the CloudWatch Omni domain that contains the space. Changing this forces a new resource.
- Grant
Id string - Unique ID of the access grant.
- Grant
Type string - Who manages the access grant.
- Name string
- Name of the access grant. Must be 1-64 characters and contain only letters, numbers, underscores (
_) and hyphens (-). Changing this forces a new resource. - Permission string
- Permission to grant. Valid values are
SPACE_ADMIN,READ,READ_WRITE_DELETEandCUSTOM. Changing this forces a new resource. - Principal
Access
Grant Principal - Principal receiving the grant. See below. Changing this forces a new resource.
- Region string
- Region where this resource is managed. Defaults to the Region set in the provider configuration.
- Scoped
Actions List<AccessGrant Scoped Action> - Group of actions to allow, with the resource scopes and conditions that limit them. Up to 20 blocks. Required for the
CUSTOMpermission, and can also be used with the other permissions. See below. Changing this forces a new resource. - Space
Id string ID of the CloudWatch Omni space to scope the grant to. Changing this forces a new resource.
The following arguments are optional:
- Dictionary<string, string>
- Map of tags assigned to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - Dictionary<string, string>
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block.
- Arn string
- ARN of the access grant.
- Domain
Id string - ID of the CloudWatch Omni domain that contains the space. Changing this forces a new resource.
- Grant
Id string - Unique ID of the access grant.
- Grant
Type string - Who manages the access grant.
- Name string
- Name of the access grant. Must be 1-64 characters and contain only letters, numbers, underscores (
_) and hyphens (-). Changing this forces a new resource. - Permission string
- Permission to grant. Valid values are
SPACE_ADMIN,READ,READ_WRITE_DELETEandCUSTOM. Changing this forces a new resource. - Principal
Access
Grant Principal Args - Principal receiving the grant. See below. Changing this forces a new resource.
- Region string
- Region where this resource is managed. Defaults to the Region set in the provider configuration.
- Scoped
Actions []AccessGrant Scoped Action Args - Group of actions to allow, with the resource scopes and conditions that limit them. Up to 20 blocks. Required for the
CUSTOMpermission, and can also be used with the other permissions. See below. Changing this forces a new resource. - Space
Id string ID of the CloudWatch Omni space to scope the grant to. Changing this forces a new resource.
The following arguments are optional:
- map[string]string
- Map of tags assigned to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - map[string]string
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block.
- arn string
- ARN of the access grant.
- domain_
id string - ID of the CloudWatch Omni domain that contains the space. Changing this forces a new resource.
- grant_
id string - Unique ID of the access grant.
- grant_
type string - Who manages the access grant.
- name string
- Name of the access grant. Must be 1-64 characters and contain only letters, numbers, underscores (
_) and hyphens (-). Changing this forces a new resource. - permission string
- Permission to grant. Valid values are
SPACE_ADMIN,READ,READ_WRITE_DELETEandCUSTOM. Changing this forces a new resource. - principal object
- Principal receiving the grant. See below. Changing this forces a new resource.
- region string
- Region where this resource is managed. Defaults to the Region set in the provider configuration.
- scoped_
actions list(object) - Group of actions to allow, with the resource scopes and conditions that limit them. Up to 20 blocks. Required for the
CUSTOMpermission, and can also be used with the other permissions. See below. Changing this forces a new resource. - space_
id string ID of the CloudWatch Omni space to scope the grant to. Changing this forces a new resource.
The following arguments are optional:
- map(string)
- Map of tags assigned to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - map(string)
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block.
- arn String
- ARN of the access grant.
- domain
Id String - ID of the CloudWatch Omni domain that contains the space. Changing this forces a new resource.
- grant
Id String - Unique ID of the access grant.
- grant
Type String - Who manages the access grant.
- name String
- Name of the access grant. Must be 1-64 characters and contain only letters, numbers, underscores (
_) and hyphens (-). Changing this forces a new resource. - permission String
- Permission to grant. Valid values are
SPACE_ADMIN,READ,READ_WRITE_DELETEandCUSTOM. Changing this forces a new resource. - principal
Access
Grant Principal - Principal receiving the grant. See below. Changing this forces a new resource.
- region String
- Region where this resource is managed. Defaults to the Region set in the provider configuration.
- scoped
Actions List<AccessGrant Scoped Action> - Group of actions to allow, with the resource scopes and conditions that limit them. Up to 20 blocks. Required for the
CUSTOMpermission, and can also be used with the other permissions. See below. Changing this forces a new resource. - space
Id String ID of the CloudWatch Omni space to scope the grant to. Changing this forces a new resource.
The following arguments are optional:
- Map<String,String>
- Map of tags assigned to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - Map<String,String>
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block.
- arn string
- ARN of the access grant.
- domain
Id string - ID of the CloudWatch Omni domain that contains the space. Changing this forces a new resource.
- grant
Id string - Unique ID of the access grant.
- grant
Type string - Who manages the access grant.
- name string
- Name of the access grant. Must be 1-64 characters and contain only letters, numbers, underscores (
_) and hyphens (-). Changing this forces a new resource. - permission string
- Permission to grant. Valid values are
SPACE_ADMIN,READ,READ_WRITE_DELETEandCUSTOM. Changing this forces a new resource. - principal
Access
Grant Principal - Principal receiving the grant. See below. Changing this forces a new resource.
- region string
- Region where this resource is managed. Defaults to the Region set in the provider configuration.
- scoped
Actions AccessGrant Scoped Action[] - Group of actions to allow, with the resource scopes and conditions that limit them. Up to 20 blocks. Required for the
CUSTOMpermission, and can also be used with the other permissions. See below. Changing this forces a new resource. - space
Id string ID of the CloudWatch Omni space to scope the grant to. Changing this forces a new resource.
The following arguments are optional:
- {[key: string]: string}
- Map of tags assigned to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - {[key: string]: string}
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block.
- arn str
- ARN of the access grant.
- domain_
id str - ID of the CloudWatch Omni domain that contains the space. Changing this forces a new resource.
- grant_
id str - Unique ID of the access grant.
- grant_
type str - Who manages the access grant.
- name str
- Name of the access grant. Must be 1-64 characters and contain only letters, numbers, underscores (
_) and hyphens (-). Changing this forces a new resource. - permission str
- Permission to grant. Valid values are
SPACE_ADMIN,READ,READ_WRITE_DELETEandCUSTOM. Changing this forces a new resource. - principal
Access
Grant Principal Args - Principal receiving the grant. See below. Changing this forces a new resource.
- region str
- Region where this resource is managed. Defaults to the Region set in the provider configuration.
- scoped_
actions Sequence[AccessGrant Scoped Action Args] - Group of actions to allow, with the resource scopes and conditions that limit them. Up to 20 blocks. Required for the
CUSTOMpermission, and can also be used with the other permissions. See below. Changing this forces a new resource. - space_
id str ID of the CloudWatch Omni space to scope the grant to. Changing this forces a new resource.
The following arguments are optional:
- Mapping[str, str]
- Map of tags assigned to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - Mapping[str, str]
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block.
- arn String
- ARN of the access grant.
- domain
Id String - ID of the CloudWatch Omni domain that contains the space. Changing this forces a new resource.
- grant
Id String - Unique ID of the access grant.
- grant
Type String - Who manages the access grant.
- name String
- Name of the access grant. Must be 1-64 characters and contain only letters, numbers, underscores (
_) and hyphens (-). Changing this forces a new resource. - permission String
- Permission to grant. Valid values are
SPACE_ADMIN,READ,READ_WRITE_DELETEandCUSTOM. Changing this forces a new resource. - principal Property Map
- Principal receiving the grant. See below. Changing this forces a new resource.
- region String
- Region where this resource is managed. Defaults to the Region set in the provider configuration.
- scoped
Actions List<Property Map> - Group of actions to allow, with the resource scopes and conditions that limit them. Up to 20 blocks. Required for the
CUSTOMpermission, and can also be used with the other permissions. See below. Changing this forces a new resource. - space
Id String ID of the CloudWatch Omni space to scope the grant to. Changing this forces a new resource.
The following arguments are optional:
- Map<String>
- Map of tags assigned to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - Map<String>
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block.
Supporting Types
AccessGrantPrincipal, AccessGrantPrincipalArgs
- Principal
Type string - Type of principal. Valid values are
IDC_USER,IDC_GROUP,IAM_USER,IAM_ROLE,IAM_ROOT,ACCESS_PROFILE,ALERTandAGENT. - Principal
Attributes List<AccessGrant Principal Principal Attribute> - Attribute condition for attribute-based access. When set, the grant targets any principal matching all conditions. Supported only when
principalTypeisIDC_USER. Up to 10 blocks. See below. - Principal
Id string - ID of the principal, such as an IAM role ARN, an Identity Center user or group ID, or the ID of an access profile or alert. Must be 1-2048 characters and start with a letter or number.
- Principal
Type string - Type of principal. Valid values are
IDC_USER,IDC_GROUP,IAM_USER,IAM_ROLE,IAM_ROOT,ACCESS_PROFILE,ALERTandAGENT. - Principal
Attributes []AccessGrant Principal Principal Attribute - Attribute condition for attribute-based access. When set, the grant targets any principal matching all conditions. Supported only when
principalTypeisIDC_USER. Up to 10 blocks. See below. - Principal
Id string - ID of the principal, such as an IAM role ARN, an Identity Center user or group ID, or the ID of an access profile or alert. Must be 1-2048 characters and start with a letter or number.
- principal_
type string - Type of principal. Valid values are
IDC_USER,IDC_GROUP,IAM_USER,IAM_ROLE,IAM_ROOT,ACCESS_PROFILE,ALERTandAGENT. - principal_
attributes list(object) - Attribute condition for attribute-based access. When set, the grant targets any principal matching all conditions. Supported only when
principalTypeisIDC_USER. Up to 10 blocks. See below. - principal_
id string - ID of the principal, such as an IAM role ARN, an Identity Center user or group ID, or the ID of an access profile or alert. Must be 1-2048 characters and start with a letter or number.
- principal
Type String - Type of principal. Valid values are
IDC_USER,IDC_GROUP,IAM_USER,IAM_ROLE,IAM_ROOT,ACCESS_PROFILE,ALERTandAGENT. - principal
Attributes List<AccessGrant Principal Principal Attribute> - Attribute condition for attribute-based access. When set, the grant targets any principal matching all conditions. Supported only when
principalTypeisIDC_USER. Up to 10 blocks. See below. - principal
Id String - ID of the principal, such as an IAM role ARN, an Identity Center user or group ID, or the ID of an access profile or alert. Must be 1-2048 characters and start with a letter or number.
- principal
Type string - Type of principal. Valid values are
IDC_USER,IDC_GROUP,IAM_USER,IAM_ROLE,IAM_ROOT,ACCESS_PROFILE,ALERTandAGENT. - principal
Attributes AccessGrant Principal Principal Attribute[] - Attribute condition for attribute-based access. When set, the grant targets any principal matching all conditions. Supported only when
principalTypeisIDC_USER. Up to 10 blocks. See below. - principal
Id string - ID of the principal, such as an IAM role ARN, an Identity Center user or group ID, or the ID of an access profile or alert. Must be 1-2048 characters and start with a letter or number.
- principal_
type str - Type of principal. Valid values are
IDC_USER,IDC_GROUP,IAM_USER,IAM_ROLE,IAM_ROOT,ACCESS_PROFILE,ALERTandAGENT. - principal_
attributes Sequence[AccessGrant Principal Principal Attribute] - Attribute condition for attribute-based access. When set, the grant targets any principal matching all conditions. Supported only when
principalTypeisIDC_USER. Up to 10 blocks. See below. - principal_
id str - ID of the principal, such as an IAM role ARN, an Identity Center user or group ID, or the ID of an access profile or alert. Must be 1-2048 characters and start with a letter or number.
- principal
Type String - Type of principal. Valid values are
IDC_USER,IDC_GROUP,IAM_USER,IAM_ROLE,IAM_ROOT,ACCESS_PROFILE,ALERTandAGENT. - principal
Attributes List<Property Map> - Attribute condition for attribute-based access. When set, the grant targets any principal matching all conditions. Supported only when
principalTypeisIDC_USER. Up to 10 blocks. See below. - principal
Id String - ID of the principal, such as an IAM role ARN, an Identity Center user or group ID, or the ID of an access profile or alert. Must be 1-2048 characters and start with a letter or number.
AccessGrantPrincipalPrincipalAttribute, AccessGrantPrincipalPrincipalAttributeArgs
AccessGrantScopedAction, AccessGrantScopedActionArgs
- Actions List<string>
- 1-50 actions this group applies to, each in
vendor-code:Actionform, for examplecloudwatch:GetRecords. Wildcards are not permitted. - Resources
List<Access
Grant Scoped Action Resource> - Resource scope constraining these actions to specific resources. Up to 10 blocks. See below.
- Actions []string
- 1-50 actions this group applies to, each in
vendor-code:Actionform, for examplecloudwatch:GetRecords. Wildcards are not permitted. - Resources
[]Access
Grant Scoped Action Resource - Resource scope constraining these actions to specific resources. Up to 10 blocks. See below.
- actions list(string)
- 1-50 actions this group applies to, each in
vendor-code:Actionform, for examplecloudwatch:GetRecords. Wildcards are not permitted. - resources list(object)
- Resource scope constraining these actions to specific resources. Up to 10 blocks. See below.
- actions List<String>
- 1-50 actions this group applies to, each in
vendor-code:Actionform, for examplecloudwatch:GetRecords. Wildcards are not permitted. - resources
List<Access
Grant Scoped Action Resource> - Resource scope constraining these actions to specific resources. Up to 10 blocks. See below.
- actions string[]
- 1-50 actions this group applies to, each in
vendor-code:Actionform, for examplecloudwatch:GetRecords. Wildcards are not permitted. - resources
Access
Grant Scoped Action Resource[] - Resource scope constraining these actions to specific resources. Up to 10 blocks. See below.
- actions Sequence[str]
- 1-50 actions this group applies to, each in
vendor-code:Actionform, for examplecloudwatch:GetRecords. Wildcards are not permitted. - resources
Sequence[Access
Grant Scoped Action Resource] - Resource scope constraining these actions to specific resources. Up to 10 blocks. See below.
- actions List<String>
- 1-50 actions this group applies to, each in
vendor-code:Actionform, for examplecloudwatch:GetRecords. Wildcards are not permitted. - resources List<Property Map>
- Resource scope constraining these actions to specific resources. Up to 10 blocks. See below.
AccessGrantScopedActionResource, AccessGrantScopedActionResourceArgs
- Resource
Type string - Resource type name, for example
DataSetorOmniDashboard. - Resource
Arns List<string> - Up to 5 resource ARNs or ARN patterns the actions are limited to. Defaults to all resources of the type.
- Row
Scope List<AccessGroups Grant Scoped Action Resource Row Scope Group> - Row-level filter group. A row is visible when it matches every
rowScopein any one group. Up to 20 blocks. Must be specified together withsignalTypes, on aDataSetresource scope. See below. - Signal
Types List<string> - Signal types the row filtering applies to. Valid values are
LOGSandTRACES. Must be specified together withrowScopeGroup, on aDataSetresource scope. - Dictionary<string, string>
- Map of up to 3 tag key-value pairs. Access applies only to resources carrying all of these tags.
- Resource
Type string - Resource type name, for example
DataSetorOmniDashboard. - Resource
Arns []string - Up to 5 resource ARNs or ARN patterns the actions are limited to. Defaults to all resources of the type.
- Row
Scope []AccessGroups Grant Scoped Action Resource Row Scope Group - Row-level filter group. A row is visible when it matches every
rowScopein any one group. Up to 20 blocks. Must be specified together withsignalTypes, on aDataSetresource scope. See below. - Signal
Types []string - Signal types the row filtering applies to. Valid values are
LOGSandTRACES. Must be specified together withrowScopeGroup, on aDataSetresource scope. - map[string]string
- Map of up to 3 tag key-value pairs. Access applies only to resources carrying all of these tags.
- resource_
type string - Resource type name, for example
DataSetorOmniDashboard. - resource_
arns list(string) - Up to 5 resource ARNs or ARN patterns the actions are limited to. Defaults to all resources of the type.
- row_
scope_ list(object)groups - Row-level filter group. A row is visible when it matches every
rowScopein any one group. Up to 20 blocks. Must be specified together withsignalTypes, on aDataSetresource scope. See below. - signal_
types list(string) - Signal types the row filtering applies to. Valid values are
LOGSandTRACES. Must be specified together withrowScopeGroup, on aDataSetresource scope. - map(string)
- Map of up to 3 tag key-value pairs. Access applies only to resources carrying all of these tags.
- resource
Type String - Resource type name, for example
DataSetorOmniDashboard. - resource
Arns List<String> - Up to 5 resource ARNs or ARN patterns the actions are limited to. Defaults to all resources of the type.
- row
Scope List<AccessGroups Grant Scoped Action Resource Row Scope Group> - Row-level filter group. A row is visible when it matches every
rowScopein any one group. Up to 20 blocks. Must be specified together withsignalTypes, on aDataSetresource scope. See below. - signal
Types List<String> - Signal types the row filtering applies to. Valid values are
LOGSandTRACES. Must be specified together withrowScopeGroup, on aDataSetresource scope. - Map<String,String>
- Map of up to 3 tag key-value pairs. Access applies only to resources carrying all of these tags.
- resource
Type string - Resource type name, for example
DataSetorOmniDashboard. - resource
Arns string[] - Up to 5 resource ARNs or ARN patterns the actions are limited to. Defaults to all resources of the type.
- row
Scope AccessGroups Grant Scoped Action Resource Row Scope Group[] - Row-level filter group. A row is visible when it matches every
rowScopein any one group. Up to 20 blocks. Must be specified together withsignalTypes, on aDataSetresource scope. See below. - signal
Types string[] - Signal types the row filtering applies to. Valid values are
LOGSandTRACES. Must be specified together withrowScopeGroup, on aDataSetresource scope. - {[key: string]: string}
- Map of up to 3 tag key-value pairs. Access applies only to resources carrying all of these tags.
- resource_
type str - Resource type name, for example
DataSetorOmniDashboard. - resource_
arns Sequence[str] - Up to 5 resource ARNs or ARN patterns the actions are limited to. Defaults to all resources of the type.
- row_
scope_ Sequence[Accessgroups Grant Scoped Action Resource Row Scope Group] - Row-level filter group. A row is visible when it matches every
rowScopein any one group. Up to 20 blocks. Must be specified together withsignalTypes, on aDataSetresource scope. See below. - signal_
types Sequence[str] - Signal types the row filtering applies to. Valid values are
LOGSandTRACES. Must be specified together withrowScopeGroup, on aDataSetresource scope. - Mapping[str, str]
- Map of up to 3 tag key-value pairs. Access applies only to resources carrying all of these tags.
- resource
Type String - Resource type name, for example
DataSetorOmniDashboard. - resource
Arns List<String> - Up to 5 resource ARNs or ARN patterns the actions are limited to. Defaults to all resources of the type.
- row
Scope List<Property Map>Groups - Row-level filter group. A row is visible when it matches every
rowScopein any one group. Up to 20 blocks. Must be specified together withsignalTypes, on aDataSetresource scope. See below. - signal
Types List<String> - Signal types the row filtering applies to. Valid values are
LOGSandTRACES. Must be specified together withrowScopeGroup, on aDataSetresource scope. - Map<String>
- Map of up to 3 tag key-value pairs. Access applies only to resources carrying all of these tags.
AccessGrantScopedActionResourceRowScopeGroup, AccessGrantScopedActionResourceRowScopeGroupArgs
- Row
Scopes List<AccessGrant Scoped Action Resource Row Scope Group Row Scope> - Row filter. 1-20 blocks. See below.
- Row
Scopes []AccessGrant Scoped Action Resource Row Scope Group Row Scope - Row filter. 1-20 blocks. See below.
- row_
scopes list(object) - Row filter. 1-20 blocks. See below.
- row
Scopes List<AccessGrant Scoped Action Resource Row Scope Group Row Scope> - Row filter. 1-20 blocks. See below.
- row
Scopes AccessGrant Scoped Action Resource Row Scope Group Row Scope[] - Row filter. 1-20 blocks. See below.
- row_
scopes Sequence[AccessGrant Scoped Action Resource Row Scope Group Row Scope] - Row filter. 1-20 blocks. See below.
- row
Scopes List<Property Map> - Row filter. 1-20 blocks. See below.
AccessGrantScopedActionResourceRowScopeGroupRowScope, AccessGrantScopedActionResourceRowScopeGroupRowScopeArgs
Import
Identity Schema
Required
grantId(String) Access grant ID.
Optional
accountId(String) AWS Account where this resource is managed.region(String) Region where this resource is managed.
Using pulumi import, import a CloudWatch Omni Access Grant using the grantId. For example:
$ pulumi import aws:cloudwatchomni/accessGrant:AccessGrant example 12345678-1234-1234-1234-123456789012
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.
published on Friday, Nov 13, 2026 by Pulumi