1. Packages
  2. Chronosphere
  3. API Docs
  4. ServiceAccount
Chronosphere v0.9.8 published on Thursday, Apr 3, 2025 by Chronosphere

chronosphere.ServiceAccount

Explore with Pulumi AI

Create ServiceAccount Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new ServiceAccount(name: string, args: ServiceAccountArgs, opts?: CustomResourceOptions);
@overload
def ServiceAccount(resource_name: str,
                   args: ServiceAccountArgs,
                   opts: Optional[ResourceOptions] = None)

@overload
def ServiceAccount(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   name: Optional[str] = None,
                   restriction: Optional[ServiceAccountRestrictionArgs] = None,
                   slug: Optional[str] = None,
                   unrestricted: Optional[bool] = None)
func NewServiceAccount(ctx *Context, name string, args ServiceAccountArgs, opts ...ResourceOption) (*ServiceAccount, error)
public ServiceAccount(string name, ServiceAccountArgs args, CustomResourceOptions? opts = null)
public ServiceAccount(String name, ServiceAccountArgs args)
public ServiceAccount(String name, ServiceAccountArgs args, CustomResourceOptions options)
type: chronosphere:ServiceAccount
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. ServiceAccountArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. ServiceAccountArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. ServiceAccountArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. ServiceAccountArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. ServiceAccountArgs
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 serviceAccountResource = new Pulumi.ServiceAccount("serviceAccountResource", new()
{
    Name = "string",
    Restriction = new Pulumi.Inputs.ServiceAccountRestrictionArgs
    {
        Permission = "string",
        Labels = 
        {
            { "string", "string" },
        },
    },
    Slug = "string",
    Unrestricted = false,
});
Copy
example, err := chronosphere.NewServiceAccount(ctx, "serviceAccountResource", &chronosphere.ServiceAccountArgs{
	Name: pulumi.String("string"),
	Restriction: &chronosphere.ServiceAccountRestrictionArgs{
		Permission: pulumi.String("string"),
		Labels: pulumi.StringMap{
			"string": pulumi.String("string"),
		},
	},
	Slug:         pulumi.String("string"),
	Unrestricted: pulumi.Bool(false),
})
Copy
var serviceAccountResource = new ServiceAccount("serviceAccountResource", ServiceAccountArgs.builder()
    .name("string")
    .restriction(ServiceAccountRestrictionArgs.builder()
        .permission("string")
        .labels(Map.of("string", "string"))
        .build())
    .slug("string")
    .unrestricted(false)
    .build());
Copy
service_account_resource = chronosphere.ServiceAccount("serviceAccountResource",
    name="string",
    restriction={
        "permission": "string",
        "labels": {
            "string": "string",
        },
    },
    slug="string",
    unrestricted=False)
Copy
const serviceAccountResource = new chronosphere.ServiceAccount("serviceAccountResource", {
    name: "string",
    restriction: {
        permission: "string",
        labels: {
            string: "string",
        },
    },
    slug: "string",
    unrestricted: false,
});
Copy
type: chronosphere:ServiceAccount
properties:
    name: string
    restriction:
        labels:
            string: string
        permission: string
    slug: string
    unrestricted: false
Copy

ServiceAccount 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 ServiceAccount resource accepts the following input properties:

Name
This property is required.
Changes to this property will trigger replacement.
string
Restriction Changes to this property will trigger replacement. Chronosphere.Pulumi.Inputs.ServiceAccountRestriction
Slug Changes to this property will trigger replacement. string
Unrestricted Changes to this property will trigger replacement. bool
Name
This property is required.
Changes to this property will trigger replacement.
string
Restriction Changes to this property will trigger replacement. ServiceAccountRestrictionArgs
Slug Changes to this property will trigger replacement. string
Unrestricted Changes to this property will trigger replacement. bool
name
This property is required.
Changes to this property will trigger replacement.
String
restriction Changes to this property will trigger replacement. ServiceAccountRestriction
slug Changes to this property will trigger replacement. String
unrestricted Changes to this property will trigger replacement. Boolean
name
This property is required.
Changes to this property will trigger replacement.
string
restriction Changes to this property will trigger replacement. ServiceAccountRestriction
slug Changes to this property will trigger replacement. string
unrestricted Changes to this property will trigger replacement. boolean
name
This property is required.
Changes to this property will trigger replacement.
str
restriction Changes to this property will trigger replacement. ServiceAccountRestrictionArgs
slug Changes to this property will trigger replacement. str
unrestricted Changes to this property will trigger replacement. bool
name
This property is required.
Changes to this property will trigger replacement.
String
restriction Changes to this property will trigger replacement. Property Map
slug Changes to this property will trigger replacement. String
unrestricted Changes to this property will trigger replacement. Boolean

Outputs

All input properties are implicitly available as output properties. Additionally, the ServiceAccount resource produces the following output properties:

Email string
Id string
The provider-assigned unique ID for this managed resource.
Token string
Email string
Id string
The provider-assigned unique ID for this managed resource.
Token string
email String
id String
The provider-assigned unique ID for this managed resource.
token String
email string
id string
The provider-assigned unique ID for this managed resource.
token string
email str
id str
The provider-assigned unique ID for this managed resource.
token str
email String
id String
The provider-assigned unique ID for this managed resource.
token String

Look up Existing ServiceAccount Resource

Get an existing ServiceAccount 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?: ServiceAccountState, opts?: CustomResourceOptions): ServiceAccount
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        email: Optional[str] = None,
        name: Optional[str] = None,
        restriction: Optional[ServiceAccountRestrictionArgs] = None,
        slug: Optional[str] = None,
        token: Optional[str] = None,
        unrestricted: Optional[bool] = None) -> ServiceAccount
func GetServiceAccount(ctx *Context, name string, id IDInput, state *ServiceAccountState, opts ...ResourceOption) (*ServiceAccount, error)
public static ServiceAccount Get(string name, Input<string> id, ServiceAccountState? state, CustomResourceOptions? opts = null)
public static ServiceAccount get(String name, Output<String> id, ServiceAccountState state, CustomResourceOptions options)
resources:  _:    type: chronosphere:ServiceAccount    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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.
The following state arguments are supported:
Email string
Name Changes to this property will trigger replacement. string
Restriction Changes to this property will trigger replacement. Chronosphere.Pulumi.Inputs.ServiceAccountRestriction
Slug Changes to this property will trigger replacement. string
Token string
Unrestricted Changes to this property will trigger replacement. bool
Email string
Name Changes to this property will trigger replacement. string
Restriction Changes to this property will trigger replacement. ServiceAccountRestrictionArgs
Slug Changes to this property will trigger replacement. string
Token string
Unrestricted Changes to this property will trigger replacement. bool
email String
name Changes to this property will trigger replacement. String
restriction Changes to this property will trigger replacement. ServiceAccountRestriction
slug Changes to this property will trigger replacement. String
token String
unrestricted Changes to this property will trigger replacement. Boolean
email string
name Changes to this property will trigger replacement. string
restriction Changes to this property will trigger replacement. ServiceAccountRestriction
slug Changes to this property will trigger replacement. string
token string
unrestricted Changes to this property will trigger replacement. boolean
email str
name Changes to this property will trigger replacement. str
restriction Changes to this property will trigger replacement. ServiceAccountRestrictionArgs
slug Changes to this property will trigger replacement. str
token str
unrestricted Changes to this property will trigger replacement. bool
email String
name Changes to this property will trigger replacement. String
restriction Changes to this property will trigger replacement. Property Map
slug Changes to this property will trigger replacement. String
token String
unrestricted Changes to this property will trigger replacement. Boolean

Supporting Types

ServiceAccountRestriction
, ServiceAccountRestrictionArgs

Permission This property is required. string
Labels Dictionary<string, string>
Permission This property is required. string
Labels map[string]string
permission This property is required. String
labels Map<String,String>
permission This property is required. string
labels {[key: string]: string}
permission This property is required. str
labels Mapping[str, str]
permission This property is required. String
labels Map<String>

Package Details

Repository
chronosphere chronosphereio/pulumi-chronosphere
License
Apache-2.0
Notes
This Pulumi package is based on the chronosphere Terraform Provider.