1. Registry
  2. Packages
  3. AWS
  4. API Docs
  5. cloudwatchomni
  6. AccessGrant
Viewing docs for AWS v7.55.0
published on Friday, Nov 13, 2026 by Pulumi
aws logo aws logo
Viewing docs for AWS v7.55.0
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 tags replaces it. Tags are updated in place.

    NOTE: Except for CUSTOM grants, a principal can hold only one grant of each permission in a space. Creating a duplicate returns ConflictException.

    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:

    DomainId 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_DELETE and CUSTOM. Changing this forces a new resource.
    Principal AccessGrantPrincipal
    Principal receiving the grant. See below. Changing this forces a new resource.
    SpaceId 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.
    ScopedActions List<AccessGrantScopedAction>
    Group of actions to allow, with the resource scopes and conditions that limit them. Up to 20 blocks. Required for the CUSTOM permission, and can also be used with the other permissions. See below. Changing this forces a new resource.
    Tags Dictionary<string, string>
    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    DomainId 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_DELETE and CUSTOM. Changing this forces a new resource.
    Principal AccessGrantPrincipalArgs
    Principal receiving the grant. See below. Changing this forces a new resource.
    SpaceId 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.
    ScopedActions []AccessGrantScopedActionArgs
    Group of actions to allow, with the resource scopes and conditions that limit them. Up to 20 blocks. Required for the CUSTOM permission, and can also be used with the other permissions. See below. Changing this forces a new resource.
    Tags map[string]string
    Map of tags assigned to the resource. If configured with a provider defaultTags configuration 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_DELETE and CUSTOM. 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 CUSTOM permission, and can also be used with the other permissions. See below. Changing this forces a new resource.
    tags map(string)
    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    domainId 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_DELETE and CUSTOM. Changing this forces a new resource.
    principal AccessGrantPrincipal
    Principal receiving the grant. See below. Changing this forces a new resource.
    spaceId 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.
    scopedActions List<AccessGrantScopedAction>
    Group of actions to allow, with the resource scopes and conditions that limit them. Up to 20 blocks. Required for the CUSTOM permission, and can also be used with the other permissions. See below. Changing this forces a new resource.
    tags Map<String,String>
    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    domainId 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_DELETE and CUSTOM. Changing this forces a new resource.
    principal AccessGrantPrincipal
    Principal receiving the grant. See below. Changing this forces a new resource.
    spaceId 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.
    scopedActions AccessGrantScopedAction[]
    Group of actions to allow, with the resource scopes and conditions that limit them. Up to 20 blocks. Required for the CUSTOM permission, and can also be used with the other permissions. See below. Changing this forces a new resource.
    tags {[key: string]: string}
    Map of tags assigned to the resource. If configured with a provider defaultTags configuration 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_DELETE and CUSTOM. Changing this forces a new resource.
    principal AccessGrantPrincipalArgs
    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[AccessGrantScopedActionArgs]
    Group of actions to allow, with the resource scopes and conditions that limit them. Up to 20 blocks. Required for the CUSTOM permission, and can also be used with the other permissions. See below. Changing this forces a new resource.
    tags Mapping[str, str]
    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    domainId 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_DELETE and CUSTOM. Changing this forces a new resource.
    principal Property Map
    Principal receiving the grant. See below. Changing this forces a new resource.
    spaceId 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.
    scopedActions List<Property Map>
    Group of actions to allow, with the resource scopes and conditions that limit them. Up to 20 blocks. Required for the CUSTOM permission, and can also be used with the other permissions. See below. Changing this forces a new resource.
    tags Map<String>
    Map of tags assigned to the resource. If configured with a provider defaultTags configuration 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.
    GrantId string
    Unique ID of the access grant.
    GrantType string
    Who manages the access grant.
    Id string
    The provider-assigned unique ID for this managed resource.
    TagsAll Dictionary<string, string>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    Arn string
    ARN of the access grant.
    GrantId string
    Unique ID of the access grant.
    GrantType string
    Who manages the access grant.
    Id string
    The provider-assigned unique ID for this managed resource.
    TagsAll map[string]string
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration 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.
    tags_all map(string)
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    arn String
    ARN of the access grant.
    grantId String
    Unique ID of the access grant.
    grantType String
    Who manages the access grant.
    id String
    The provider-assigned unique ID for this managed resource.
    tagsAll Map<String,String>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    arn string
    ARN of the access grant.
    grantId string
    Unique ID of the access grant.
    grantType string
    Who manages the access grant.
    id string
    The provider-assigned unique ID for this managed resource.
    tagsAll {[key: string]: string}
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration 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.
    tags_all Mapping[str, str]
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    arn String
    ARN of the access grant.
    grantId String
    Unique ID of the access grant.
    grantType String
    Who manages the access grant.
    id String
    The provider-assigned unique ID for this managed resource.
    tagsAll Map<String>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration 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) -> AccessGrant
    func 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.
    The following state arguments are supported:
    Arn string
    ARN of the access grant.
    DomainId string
    ID of the CloudWatch Omni domain that contains the space. Changing this forces a new resource.
    GrantId string
    Unique ID of the access grant.
    GrantType 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_DELETE and CUSTOM. Changing this forces a new resource.
    Principal AccessGrantPrincipal
    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.
    ScopedActions List<AccessGrantScopedAction>
    Group of actions to allow, with the resource scopes and conditions that limit them. Up to 20 blocks. Required for the CUSTOM permission, and can also be used with the other permissions. See below. Changing this forces a new resource.
    SpaceId string

    ID of the CloudWatch Omni space to scope the grant to. Changing this forces a new resource.

    The following arguments are optional:

    Tags Dictionary<string, string>
    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    TagsAll Dictionary<string, string>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    Arn string
    ARN of the access grant.
    DomainId string
    ID of the CloudWatch Omni domain that contains the space. Changing this forces a new resource.
    GrantId string
    Unique ID of the access grant.
    GrantType 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_DELETE and CUSTOM. Changing this forces a new resource.
    Principal AccessGrantPrincipalArgs
    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.
    ScopedActions []AccessGrantScopedActionArgs
    Group of actions to allow, with the resource scopes and conditions that limit them. Up to 20 blocks. Required for the CUSTOM permission, and can also be used with the other permissions. See below. Changing this forces a new resource.
    SpaceId string

    ID of the CloudWatch Omni space to scope the grant to. Changing this forces a new resource.

    The following arguments are optional:

    Tags map[string]string
    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    TagsAll map[string]string
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration 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_DELETE and CUSTOM. 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 CUSTOM permission, 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:

    tags map(string)
    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tags_all map(string)
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    arn String
    ARN of the access grant.
    domainId String
    ID of the CloudWatch Omni domain that contains the space. Changing this forces a new resource.
    grantId String
    Unique ID of the access grant.
    grantType 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_DELETE and CUSTOM. Changing this forces a new resource.
    principal AccessGrantPrincipal
    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.
    scopedActions List<AccessGrantScopedAction>
    Group of actions to allow, with the resource scopes and conditions that limit them. Up to 20 blocks. Required for the CUSTOM permission, and can also be used with the other permissions. See below. Changing this forces a new resource.
    spaceId String

    ID of the CloudWatch Omni space to scope the grant to. Changing this forces a new resource.

    The following arguments are optional:

    tags Map<String,String>
    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll Map<String,String>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    arn string
    ARN of the access grant.
    domainId string
    ID of the CloudWatch Omni domain that contains the space. Changing this forces a new resource.
    grantId string
    Unique ID of the access grant.
    grantType 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_DELETE and CUSTOM. Changing this forces a new resource.
    principal AccessGrantPrincipal
    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.
    scopedActions AccessGrantScopedAction[]
    Group of actions to allow, with the resource scopes and conditions that limit them. Up to 20 blocks. Required for the CUSTOM permission, and can also be used with the other permissions. See below. Changing this forces a new resource.
    spaceId string

    ID of the CloudWatch Omni space to scope the grant to. Changing this forces a new resource.

    The following arguments are optional:

    tags {[key: string]: string}
    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll {[key: string]: string}
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration 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_DELETE and CUSTOM. Changing this forces a new resource.
    principal AccessGrantPrincipalArgs
    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[AccessGrantScopedActionArgs]
    Group of actions to allow, with the resource scopes and conditions that limit them. Up to 20 blocks. Required for the CUSTOM permission, 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:

    tags Mapping[str, str]
    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tags_all Mapping[str, str]
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    arn String
    ARN of the access grant.
    domainId String
    ID of the CloudWatch Omni domain that contains the space. Changing this forces a new resource.
    grantId String
    Unique ID of the access grant.
    grantType 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_DELETE and CUSTOM. 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.
    scopedActions List<Property Map>
    Group of actions to allow, with the resource scopes and conditions that limit them. Up to 20 blocks. Required for the CUSTOM permission, and can also be used with the other permissions. See below. Changing this forces a new resource.
    spaceId String

    ID of the CloudWatch Omni space to scope the grant to. Changing this forces a new resource.

    The following arguments are optional:

    tags Map<String>
    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll Map<String>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.

    Supporting Types

    AccessGrantPrincipal, AccessGrantPrincipalArgs

    PrincipalType string
    Type of principal. Valid values are IDC_USER, IDC_GROUP, IAM_USER, IAM_ROLE, IAM_ROOT, ACCESS_PROFILE, ALERT and AGENT.
    PrincipalAttributes List<AccessGrantPrincipalPrincipalAttribute>
    Attribute condition for attribute-based access. When set, the grant targets any principal matching all conditions. Supported only when principalType is IDC_USER. Up to 10 blocks. See below.
    PrincipalId 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.
    PrincipalType string
    Type of principal. Valid values are IDC_USER, IDC_GROUP, IAM_USER, IAM_ROLE, IAM_ROOT, ACCESS_PROFILE, ALERT and AGENT.
    PrincipalAttributes []AccessGrantPrincipalPrincipalAttribute
    Attribute condition for attribute-based access. When set, the grant targets any principal matching all conditions. Supported only when principalType is IDC_USER. Up to 10 blocks. See below.
    PrincipalId 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, ALERT and AGENT.
    principal_attributes list(object)
    Attribute condition for attribute-based access. When set, the grant targets any principal matching all conditions. Supported only when principalType is IDC_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.
    principalType String
    Type of principal. Valid values are IDC_USER, IDC_GROUP, IAM_USER, IAM_ROLE, IAM_ROOT, ACCESS_PROFILE, ALERT and AGENT.
    principalAttributes List<AccessGrantPrincipalPrincipalAttribute>
    Attribute condition for attribute-based access. When set, the grant targets any principal matching all conditions. Supported only when principalType is IDC_USER. Up to 10 blocks. See below.
    principalId 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.
    principalType string
    Type of principal. Valid values are IDC_USER, IDC_GROUP, IAM_USER, IAM_ROLE, IAM_ROOT, ACCESS_PROFILE, ALERT and AGENT.
    principalAttributes AccessGrantPrincipalPrincipalAttribute[]
    Attribute condition for attribute-based access. When set, the grant targets any principal matching all conditions. Supported only when principalType is IDC_USER. Up to 10 blocks. See below.
    principalId 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, ALERT and AGENT.
    principal_attributes Sequence[AccessGrantPrincipalPrincipalAttribute]
    Attribute condition for attribute-based access. When set, the grant targets any principal matching all conditions. Supported only when principalType is IDC_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.
    principalType String
    Type of principal. Valid values are IDC_USER, IDC_GROUP, IAM_USER, IAM_ROLE, IAM_ROOT, ACCESS_PROFILE, ALERT and AGENT.
    principalAttributes List<Property Map>
    Attribute condition for attribute-based access. When set, the grant targets any principal matching all conditions. Supported only when principalType is IDC_USER. Up to 10 blocks. See below.
    principalId 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

    Key string
    Identity Center user attribute to match, for example userName or enterprise.department. Must be 1-128 characters. Each key may appear only once per grant.
    Value string
    Attribute value. Must be 1-512 characters.
    Key string
    Identity Center user attribute to match, for example userName or enterprise.department. Must be 1-128 characters. Each key may appear only once per grant.
    Value string
    Attribute value. Must be 1-512 characters.
    key string
    Identity Center user attribute to match, for example userName or enterprise.department. Must be 1-128 characters. Each key may appear only once per grant.
    value string
    Attribute value. Must be 1-512 characters.
    key String
    Identity Center user attribute to match, for example userName or enterprise.department. Must be 1-128 characters. Each key may appear only once per grant.
    value String
    Attribute value. Must be 1-512 characters.
    key string
    Identity Center user attribute to match, for example userName or enterprise.department. Must be 1-128 characters. Each key may appear only once per grant.
    value string
    Attribute value. Must be 1-512 characters.
    key str
    Identity Center user attribute to match, for example userName or enterprise.department. Must be 1-128 characters. Each key may appear only once per grant.
    value str
    Attribute value. Must be 1-512 characters.
    key String
    Identity Center user attribute to match, for example userName or enterprise.department. Must be 1-128 characters. Each key may appear only once per grant.
    value String
    Attribute value. Must be 1-512 characters.

    AccessGrantScopedAction, AccessGrantScopedActionArgs

    Actions List<string>
    1-50 actions this group applies to, each in vendor-code:Action form, for example cloudwatch:GetRecords. Wildcards are not permitted.
    Resources List<AccessGrantScopedActionResource>
    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:Action form, for example cloudwatch:GetRecords. Wildcards are not permitted.
    Resources []AccessGrantScopedActionResource
    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:Action form, for example cloudwatch: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:Action form, for example cloudwatch:GetRecords. Wildcards are not permitted.
    resources List<AccessGrantScopedActionResource>
    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:Action form, for example cloudwatch:GetRecords. Wildcards are not permitted.
    resources AccessGrantScopedActionResource[]
    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:Action form, for example cloudwatch:GetRecords. Wildcards are not permitted.
    resources Sequence[AccessGrantScopedActionResource]
    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:Action form, for example cloudwatch: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

    ResourceType string
    Resource type name, for example DataSet or OmniDashboard.
    ResourceArns List<string>
    Up to 5 resource ARNs or ARN patterns the actions are limited to. Defaults to all resources of the type.
    RowScopeGroups List<AccessGrantScopedActionResourceRowScopeGroup>
    Row-level filter group. A row is visible when it matches every rowScope in any one group. Up to 20 blocks. Must be specified together with signalTypes, on a DataSet resource scope. See below.
    SignalTypes List<string>
    Signal types the row filtering applies to. Valid values are LOGS and TRACES. Must be specified together with rowScopeGroup, on a DataSet resource scope.
    Tags Dictionary<string, string>
    Map of up to 3 tag key-value pairs. Access applies only to resources carrying all of these tags.
    ResourceType string
    Resource type name, for example DataSet or OmniDashboard.
    ResourceArns []string
    Up to 5 resource ARNs or ARN patterns the actions are limited to. Defaults to all resources of the type.
    RowScopeGroups []AccessGrantScopedActionResourceRowScopeGroup
    Row-level filter group. A row is visible when it matches every rowScope in any one group. Up to 20 blocks. Must be specified together with signalTypes, on a DataSet resource scope. See below.
    SignalTypes []string
    Signal types the row filtering applies to. Valid values are LOGS and TRACES. Must be specified together with rowScopeGroup, on a DataSet resource scope.
    Tags 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 DataSet or OmniDashboard.
    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_groups list(object)
    Row-level filter group. A row is visible when it matches every rowScope in any one group. Up to 20 blocks. Must be specified together with signalTypes, on a DataSet resource scope. See below.
    signal_types list(string)
    Signal types the row filtering applies to. Valid values are LOGS and TRACES. Must be specified together with rowScopeGroup, on a DataSet resource scope.
    tags map(string)
    Map of up to 3 tag key-value pairs. Access applies only to resources carrying all of these tags.
    resourceType String
    Resource type name, for example DataSet or OmniDashboard.
    resourceArns List<String>
    Up to 5 resource ARNs or ARN patterns the actions are limited to. Defaults to all resources of the type.
    rowScopeGroups List<AccessGrantScopedActionResourceRowScopeGroup>
    Row-level filter group. A row is visible when it matches every rowScope in any one group. Up to 20 blocks. Must be specified together with signalTypes, on a DataSet resource scope. See below.
    signalTypes List<String>
    Signal types the row filtering applies to. Valid values are LOGS and TRACES. Must be specified together with rowScopeGroup, on a DataSet resource scope.
    tags Map<String,String>
    Map of up to 3 tag key-value pairs. Access applies only to resources carrying all of these tags.
    resourceType string
    Resource type name, for example DataSet or OmniDashboard.
    resourceArns string[]
    Up to 5 resource ARNs or ARN patterns the actions are limited to. Defaults to all resources of the type.
    rowScopeGroups AccessGrantScopedActionResourceRowScopeGroup[]
    Row-level filter group. A row is visible when it matches every rowScope in any one group. Up to 20 blocks. Must be specified together with signalTypes, on a DataSet resource scope. See below.
    signalTypes string[]
    Signal types the row filtering applies to. Valid values are LOGS and TRACES. Must be specified together with rowScopeGroup, on a DataSet resource scope.
    tags {[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 DataSet or OmniDashboard.
    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_groups Sequence[AccessGrantScopedActionResourceRowScopeGroup]
    Row-level filter group. A row is visible when it matches every rowScope in any one group. Up to 20 blocks. Must be specified together with signalTypes, on a DataSet resource scope. See below.
    signal_types Sequence[str]
    Signal types the row filtering applies to. Valid values are LOGS and TRACES. Must be specified together with rowScopeGroup, on a DataSet resource scope.
    tags Mapping[str, str]
    Map of up to 3 tag key-value pairs. Access applies only to resources carrying all of these tags.
    resourceType String
    Resource type name, for example DataSet or OmniDashboard.
    resourceArns List<String>
    Up to 5 resource ARNs or ARN patterns the actions are limited to. Defaults to all resources of the type.
    rowScopeGroups List<Property Map>
    Row-level filter group. A row is visible when it matches every rowScope in any one group. Up to 20 blocks. Must be specified together with signalTypes, on a DataSet resource scope. See below.
    signalTypes List<String>
    Signal types the row filtering applies to. Valid values are LOGS and TRACES. Must be specified together with rowScopeGroup, on a DataSet resource scope.
    tags 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(object)
    Row filter. 1-20 blocks. See below.
    rowScopes List<Property Map>
    Row filter. 1-20 blocks. See below.

    AccessGrantScopedActionResourceRowScopeGroupRowScope, AccessGrantScopedActionResourceRowScopeGroupRowScopeArgs

    Field string
    Field the filter applies to, for example serviceName. Must be 1-256 characters.
    Operator string
    Match operator. Valid value is IN.
    Values List<string>
    Set of 1-100 values the field is matched against, each 1-256 characters. CloudWatch Omni stores the values sorted and without duplicates.
    Field string
    Field the filter applies to, for example serviceName. Must be 1-256 characters.
    Operator string
    Match operator. Valid value is IN.
    Values []string
    Set of 1-100 values the field is matched against, each 1-256 characters. CloudWatch Omni stores the values sorted and without duplicates.
    field string
    Field the filter applies to, for example serviceName. Must be 1-256 characters.
    operator string
    Match operator. Valid value is IN.
    values list(string)
    Set of 1-100 values the field is matched against, each 1-256 characters. CloudWatch Omni stores the values sorted and without duplicates.
    field String
    Field the filter applies to, for example serviceName. Must be 1-256 characters.
    operator String
    Match operator. Valid value is IN.
    values List<String>
    Set of 1-100 values the field is matched against, each 1-256 characters. CloudWatch Omni stores the values sorted and without duplicates.
    field string
    Field the filter applies to, for example serviceName. Must be 1-256 characters.
    operator string
    Match operator. Valid value is IN.
    values string[]
    Set of 1-100 values the field is matched against, each 1-256 characters. CloudWatch Omni stores the values sorted and without duplicates.
    field str
    Field the filter applies to, for example serviceName. Must be 1-256 characters.
    operator str
    Match operator. Valid value is IN.
    values Sequence[str]
    Set of 1-100 values the field is matched against, each 1-256 characters. CloudWatch Omni stores the values sorted and without duplicates.
    field String
    Field the filter applies to, for example serviceName. Must be 1-256 characters.
    operator String
    Match operator. Valid value is IN.
    values List<String>
    Set of 1-100 values the field is matched against, each 1-256 characters. CloudWatch Omni stores the values sorted and without duplicates.

    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 aws Terraform Provider.
    aws logo aws logo
    Viewing docs for AWS v7.55.0
    published on Friday, Nov 13, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial