published on Friday, Nov 6, 2026 by Pulumi
published on Friday, Nov 6, 2026 by Pulumi
Manages an Amazon CloudWatch Omni access profile.
An access profile belongs to a space and is referenced by access grants to authorize principals in that space.
NOTE: An access profile cannot be deleted while access grants reference it.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.cloudwatchomni.AccessProfile("example", {
name: "example",
spaceId: exampleAwsCloudwatchomniSpace.spaceId,
});
import pulumi
import pulumi_aws as aws
example = aws.cloudwatchomni.AccessProfile("example",
name="example",
space_id=example_aws_cloudwatchomni_space["spaceId"])
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.NewAccessProfile(ctx, "example", &cloudwatchomni.AccessProfileArgs{
Name: pulumi.String("example"),
SpaceId: pulumi.Any(exampleAwsCloudwatchomniSpace.SpaceId),
})
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.AccessProfile("example", new()
{
Name = "example",
SpaceId = exampleAwsCloudwatchomniSpace.SpaceId,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.cloudwatchomni.AccessProfile;
import com.pulumi.aws.cloudwatchomni.AccessProfileArgs;
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 AccessProfile("example", AccessProfileArgs.builder()
.name("example")
.spaceId(exampleAwsCloudwatchomniSpace.get("spaceId"))
.build());
}
}
resources:
example:
type: aws:cloudwatchomni:AccessProfile
properties:
name: example
spaceId: ${exampleAwsCloudwatchomniSpace.spaceId}
terraform {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
resource "aws_cloudwatchomni_access_profile" "example" {
lifecycle {
create_before_destroy = true
}
name = "example"
space_id = exampleAwsCloudwatchomniSpace.spaceId
}
With Description
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.cloudwatchomni.AccessProfile("example", {
name: "example",
description: "Example access profile",
spaceId: exampleAwsCloudwatchomniSpace.spaceId,
});
import pulumi
import pulumi_aws as aws
example = aws.cloudwatchomni.AccessProfile("example",
name="example",
description="Example access profile",
space_id=example_aws_cloudwatchomni_space["spaceId"])
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.NewAccessProfile(ctx, "example", &cloudwatchomni.AccessProfileArgs{
Name: pulumi.String("example"),
Description: pulumi.String("Example access profile"),
SpaceId: pulumi.Any(exampleAwsCloudwatchomniSpace.SpaceId),
})
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.AccessProfile("example", new()
{
Name = "example",
Description = "Example access profile",
SpaceId = exampleAwsCloudwatchomniSpace.SpaceId,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.cloudwatchomni.AccessProfile;
import com.pulumi.aws.cloudwatchomni.AccessProfileArgs;
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 AccessProfile("example", AccessProfileArgs.builder()
.name("example")
.description("Example access profile")
.spaceId(exampleAwsCloudwatchomniSpace.get("spaceId"))
.build());
}
}
resources:
example:
type: aws:cloudwatchomni:AccessProfile
properties:
name: example
description: Example access profile
spaceId: ${exampleAwsCloudwatchomniSpace.spaceId}
terraform {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
resource "aws_cloudwatchomni_access_profile" "example" {
lifecycle {
create_before_destroy = true
}
name = "example"
description = "Example access profile"
space_id = exampleAwsCloudwatchomniSpace.spaceId
}
Create AccessProfile Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AccessProfile(name: string, args: AccessProfileArgs, opts?: CustomResourceOptions);@overload
def AccessProfile(resource_name: str,
args: AccessProfileArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AccessProfile(resource_name: str,
opts: Optional[ResourceOptions] = None,
space_id: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None,
region: Optional[str] = None,
timeouts: Optional[AccessProfileTimeoutsArgs] = None)func NewAccessProfile(ctx *Context, name string, args AccessProfileArgs, opts ...ResourceOption) (*AccessProfile, error)public AccessProfile(string name, AccessProfileArgs args, CustomResourceOptions? opts = null)
public AccessProfile(String name, AccessProfileArgs args)
public AccessProfile(String name, AccessProfileArgs args, CustomResourceOptions options)
type: aws:cloudwatchomni:AccessProfile
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "aws_cloudwatchomni_access_profile" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args AccessProfileArgs
- 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 AccessProfileArgs
- 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 AccessProfileArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AccessProfileArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AccessProfileArgs
- 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 accessProfileResource = new Aws.CloudWatchOmni.AccessProfile("accessProfileResource", new()
{
SpaceId = "string",
Description = "string",
Name = "string",
Region = "string",
Timeouts = new Aws.CloudWatchOmni.Inputs.AccessProfileTimeoutsArgs
{
Create = "string",
},
});
example, err := cloudwatchomni.NewAccessProfile(ctx, "accessProfileResource", &cloudwatchomni.AccessProfileArgs{
SpaceId: pulumi.String("string"),
Description: pulumi.String("string"),
Name: pulumi.String("string"),
Region: pulumi.String("string"),
Timeouts: &cloudwatchomni.AccessProfileTimeoutsArgs{
Create: pulumi.String("string"),
},
})
resource "aws_cloudwatchomni_access_profile" "accessProfileResource" {
lifecycle {
create_before_destroy = true
}
space_id = "string"
description = "string"
name = "string"
region = "string"
_ {
timeouts = {
create = "string"
}
}
}
var accessProfileResource = new AccessProfile("accessProfileResource", AccessProfileArgs.builder()
.spaceId("string")
.description("string")
.name("string")
.region("string")
.timeouts(AccessProfileTimeoutsArgs.builder()
.create("string")
.build())
.build());
access_profile_resource = aws.cloudwatchomni.AccessProfile("accessProfileResource",
space_id="string",
description="string",
name="string",
region="string",
timeouts={
"create": "string",
})
const accessProfileResource = new aws.cloudwatchomni.AccessProfile("accessProfileResource", {
spaceId: "string",
description: "string",
name: "string",
region: "string",
timeouts: {
create: "string",
},
});
type: aws:cloudwatchomni:AccessProfile
properties:
description: string
name: string
region: string
spaceId: string
timeouts:
create: string
AccessProfile 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 AccessProfile resource accepts the following input properties:
- Space
Id string ID of the space that contains the access profile.
The following arguments are optional:
- Description string
- Description of the access profile.
- Name string
- Name of the access profile.
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Timeouts
Access
Profile Timeouts
- Space
Id string ID of the space that contains the access profile.
The following arguments are optional:
- Description string
- Description of the access profile.
- Name string
- Name of the access profile.
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Timeouts
Access
Profile Timeouts Args
- space_
id string ID of the space that contains the access profile.
The following arguments are optional:
- description string
- Description of the access profile.
- name string
- Name of the access profile.
- region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- timeouts object
- space
Id String ID of the space that contains the access profile.
The following arguments are optional:
- description String
- Description of the access profile.
- name String
- Name of the access profile.
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- timeouts
Access
Profile Timeouts
- space
Id string ID of the space that contains the access profile.
The following arguments are optional:
- description string
- Description of the access profile.
- name string
- Name of the access profile.
- region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- timeouts
Access
Profile Timeouts
- space_
id str ID of the space that contains the access profile.
The following arguments are optional:
- description str
- Description of the access profile.
- name str
- Name of the access profile.
- region str
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- timeouts
Access
Profile Timeouts Args
- space
Id String ID of the space that contains the access profile.
The following arguments are optional:
- description String
- Description of the access profile.
- name String
- Name of the access profile.
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the AccessProfile resource produces the following output properties:
- Arn string
- ARN of the access profile.
- Assume
Status string - Whether the calling principal can assume the access profile. Valid values:
ALLOWED,DENIED. - Id string
- The provider-assigned unique ID for this managed resource.
- Profile
Id string - Unique identifier of the access profile.
- Profile
Type string - Who manages the access profile. Valid values:
CUSTOMER_MANAGED,SERVICE_MANAGED.
- Arn string
- ARN of the access profile.
- Assume
Status string - Whether the calling principal can assume the access profile. Valid values:
ALLOWED,DENIED. - Id string
- The provider-assigned unique ID for this managed resource.
- Profile
Id string - Unique identifier of the access profile.
- Profile
Type string - Who manages the access profile. Valid values:
CUSTOMER_MANAGED,SERVICE_MANAGED.
- arn string
- ARN of the access profile.
- assume_
status string - Whether the calling principal can assume the access profile. Valid values:
ALLOWED,DENIED. - id string
- The provider-assigned unique ID for this managed resource.
- profile_
id string - Unique identifier of the access profile.
- profile_
type string - Who manages the access profile. Valid values:
CUSTOMER_MANAGED,SERVICE_MANAGED.
- arn String
- ARN of the access profile.
- assume
Status String - Whether the calling principal can assume the access profile. Valid values:
ALLOWED,DENIED. - id String
- The provider-assigned unique ID for this managed resource.
- profile
Id String - Unique identifier of the access profile.
- profile
Type String - Who manages the access profile. Valid values:
CUSTOMER_MANAGED,SERVICE_MANAGED.
- arn string
- ARN of the access profile.
- assume
Status string - Whether the calling principal can assume the access profile. Valid values:
ALLOWED,DENIED. - id string
- The provider-assigned unique ID for this managed resource.
- profile
Id string - Unique identifier of the access profile.
- profile
Type string - Who manages the access profile. Valid values:
CUSTOMER_MANAGED,SERVICE_MANAGED.
- arn str
- ARN of the access profile.
- assume_
status str - Whether the calling principal can assume the access profile. Valid values:
ALLOWED,DENIED. - id str
- The provider-assigned unique ID for this managed resource.
- profile_
id str - Unique identifier of the access profile.
- profile_
type str - Who manages the access profile. Valid values:
CUSTOMER_MANAGED,SERVICE_MANAGED.
- arn String
- ARN of the access profile.
- assume
Status String - Whether the calling principal can assume the access profile. Valid values:
ALLOWED,DENIED. - id String
- The provider-assigned unique ID for this managed resource.
- profile
Id String - Unique identifier of the access profile.
- profile
Type String - Who manages the access profile. Valid values:
CUSTOMER_MANAGED,SERVICE_MANAGED.
Look up Existing AccessProfile Resource
Get an existing AccessProfile 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?: AccessProfileState, opts?: CustomResourceOptions): AccessProfile@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
arn: Optional[str] = None,
assume_status: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None,
profile_id: Optional[str] = None,
profile_type: Optional[str] = None,
region: Optional[str] = None,
space_id: Optional[str] = None,
timeouts: Optional[AccessProfileTimeoutsArgs] = None) -> AccessProfilefunc GetAccessProfile(ctx *Context, name string, id IDInput, state *AccessProfileState, opts ...ResourceOption) (*AccessProfile, error)public static AccessProfile Get(string name, Input<string> id, AccessProfileState? state, CustomResourceOptions? opts = null)public static AccessProfile get(String name, Output<String> id, AccessProfileState state, CustomResourceOptions options)resources: _: type: aws:cloudwatchomni:AccessProfile get: id: ${id}import {
to = aws_cloudwatchomni_access_profile.example
id = "${id}"
}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Arn string
- ARN of the access profile.
- Assume
Status string - Whether the calling principal can assume the access profile. Valid values:
ALLOWED,DENIED. - Description string
- Description of the access profile.
- Name string
- Name of the access profile.
- Profile
Id string - Unique identifier of the access profile.
- Profile
Type string - Who manages the access profile. Valid values:
CUSTOMER_MANAGED,SERVICE_MANAGED. - Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Space
Id string ID of the space that contains the access profile.
The following arguments are optional:
- Timeouts
Access
Profile Timeouts
- Arn string
- ARN of the access profile.
- Assume
Status string - Whether the calling principal can assume the access profile. Valid values:
ALLOWED,DENIED. - Description string
- Description of the access profile.
- Name string
- Name of the access profile.
- Profile
Id string - Unique identifier of the access profile.
- Profile
Type string - Who manages the access profile. Valid values:
CUSTOMER_MANAGED,SERVICE_MANAGED. - Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Space
Id string ID of the space that contains the access profile.
The following arguments are optional:
- Timeouts
Access
Profile Timeouts Args
- arn string
- ARN of the access profile.
- assume_
status string - Whether the calling principal can assume the access profile. Valid values:
ALLOWED,DENIED. - description string
- Description of the access profile.
- name string
- Name of the access profile.
- profile_
id string - Unique identifier of the access profile.
- profile_
type string - Who manages the access profile. Valid values:
CUSTOMER_MANAGED,SERVICE_MANAGED. - region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- space_
id string ID of the space that contains the access profile.
The following arguments are optional:
- timeouts object
- arn String
- ARN of the access profile.
- assume
Status String - Whether the calling principal can assume the access profile. Valid values:
ALLOWED,DENIED. - description String
- Description of the access profile.
- name String
- Name of the access profile.
- profile
Id String - Unique identifier of the access profile.
- profile
Type String - Who manages the access profile. Valid values:
CUSTOMER_MANAGED,SERVICE_MANAGED. - region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- space
Id String ID of the space that contains the access profile.
The following arguments are optional:
- timeouts
Access
Profile Timeouts
- arn string
- ARN of the access profile.
- assume
Status string - Whether the calling principal can assume the access profile. Valid values:
ALLOWED,DENIED. - description string
- Description of the access profile.
- name string
- Name of the access profile.
- profile
Id string - Unique identifier of the access profile.
- profile
Type string - Who manages the access profile. Valid values:
CUSTOMER_MANAGED,SERVICE_MANAGED. - region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- space
Id string ID of the space that contains the access profile.
The following arguments are optional:
- timeouts
Access
Profile Timeouts
- arn str
- ARN of the access profile.
- assume_
status str - Whether the calling principal can assume the access profile. Valid values:
ALLOWED,DENIED. - description str
- Description of the access profile.
- name str
- Name of the access profile.
- profile_
id str - Unique identifier of the access profile.
- profile_
type str - Who manages the access profile. Valid values:
CUSTOMER_MANAGED,SERVICE_MANAGED. - region str
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- space_
id str ID of the space that contains the access profile.
The following arguments are optional:
- timeouts
Access
Profile Timeouts Args
- arn String
- ARN of the access profile.
- assume
Status String - Whether the calling principal can assume the access profile. Valid values:
ALLOWED,DENIED. - description String
- Description of the access profile.
- name String
- Name of the access profile.
- profile
Id String - Unique identifier of the access profile.
- profile
Type String - Who manages the access profile. Valid values:
CUSTOMER_MANAGED,SERVICE_MANAGED. - region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- space
Id String ID of the space that contains the access profile.
The following arguments are optional:
- timeouts Property Map
Supporting Types
AccessProfileTimeouts, AccessProfileTimeoutsArgs
- Create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- Create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
Import
Identity Schema
Required
profileId(String) Access profile ID.spaceId(String) Space ID.
Optional
accountId(String) AWS Account where this resource is managed.region(String) Region where this resource is managed.
Using pulumi import, import CloudWatch Omni access profiles using spaceId and profileId separated by a comma (,). For example:
$ pulumi import aws:cloudwatchomni/accessProfile:AccessProfile example a1b2c3d4-5678-90ab-cdef-EXAMPLE11111,a1b2c3d4-5678-90ab-cdef-EXAMPLE22222
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 6, 2026 by Pulumi