Wavefront

v1.1.0 published on Wednesday, Nov 24, 2021 by Pulumi

ServiceAccount

Provides a Wavefront Service Account Resource. This allows service accounts to be created, updated, and deleted.

Example Usage

using Pulumi;
using Wavefront = Pulumi.Wavefront;

class MyStack : Stack
{
    public MyStack()
    {
        var basic = new Wavefront.ServiceAccount("basic", new Wavefront.ServiceAccountArgs
        {
            Active = true,
            Identifier = "sa::tftesting",
        });
    }

}
package main

import (
	"github.com/pulumi/pulumi-wavefront/sdk/go/wavefront"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := wavefront.NewServiceAccount(ctx, "basic", &wavefront.ServiceAccountArgs{
			Active:     pulumi.Bool(true),
			Identifier: pulumi.String("sa::tftesting"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
import pulumi
import pulumi_wavefront as wavefront

basic = wavefront.ServiceAccount("basic",
    active=True,
    identifier="sa::tftesting")
import * as pulumi from "@pulumi/pulumi";
import * as wavefront from "@pulumi/wavefront";

const basic = new wavefront.ServiceAccount("basic", {
    active: true,
    identifier: "sa::tftesting",
});

Create a ServiceAccount Resource

new ServiceAccount(name: string, args: ServiceAccountArgs, opts?: CustomResourceOptions);
@overload
def ServiceAccount(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   active: Optional[bool] = None,
                   description: Optional[str] = None,
                   identifier: Optional[str] = None,
                   ingestion_policy: Optional[str] = None,
                   permissions: Optional[Sequence[str]] = None,
                   user_groups: Optional[Sequence[str]] = None)
@overload
def ServiceAccount(resource_name: str,
                   args: ServiceAccountArgs,
                   opts: Optional[ResourceOptions] = None)
func NewServiceAccount(ctx *Context, name string, args ServiceAccountArgs, opts ...ResourceOption) (*ServiceAccount, error)
public ServiceAccount(string name, ServiceAccountArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args ServiceAccountArgs
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 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 string
The unique name of the resource.
args ServiceAccountArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ServiceAccountArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

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

The ServiceAccount resource accepts the following input properties:

Identifier string
The (unique) identifier of the service account to create. Must start with sa::
Active bool
Whether or not the service account is active
Description string
The description of the service account
IngestionPolicy string
ID of ingestion policy
Permissions List<string>
List of permission to grant to this service account. Valid options are agent_management, alerts_management, dashboard_management, embedded_charts, events_management, external_links_management, host_tag_management, metrics_management, user_management
UserGroups List<string>
List of user groups for this service account
Identifier string
The (unique) identifier of the service account to create. Must start with sa::
Active bool
Whether or not the service account is active
Description string
The description of the service account
IngestionPolicy string
ID of ingestion policy
Permissions []string
List of permission to grant to this service account. Valid options are agent_management, alerts_management, dashboard_management, embedded_charts, events_management, external_links_management, host_tag_management, metrics_management, user_management
UserGroups []string
List of user groups for this service account
identifier string
The (unique) identifier of the service account to create. Must start with sa::
active boolean
Whether or not the service account is active
description string
The description of the service account
ingestionPolicy string
ID of ingestion policy
permissions string[]
List of permission to grant to this service account. Valid options are agent_management, alerts_management, dashboard_management, embedded_charts, events_management, external_links_management, host_tag_management, metrics_management, user_management
userGroups string[]
List of user groups for this service account
identifier str
The (unique) identifier of the service account to create. Must start with sa::
active bool
Whether or not the service account is active
description str
The description of the service account
ingestion_policy str
ID of ingestion policy
permissions Sequence[str]
List of permission to grant to this service account. Valid options are agent_management, alerts_management, dashboard_management, embedded_charts, events_management, external_links_management, host_tag_management, metrics_management, user_management
user_groups Sequence[str]
List of user groups for this service account

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.

Look up an 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,
        active: Optional[bool] = None,
        description: Optional[str] = None,
        identifier: Optional[str] = None,
        ingestion_policy: Optional[str] = None,
        permissions: Optional[Sequence[str]] = None,
        user_groups: Optional[Sequence[str]] = 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)
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.

The following state arguments are supported:

Active bool
Whether or not the service account is active
Description string
The description of the service account
Identifier string
The (unique) identifier of the service account to create. Must start with sa::
IngestionPolicy string
ID of ingestion policy
Permissions List<string>
List of permission to grant to this service account. Valid options are agent_management, alerts_management, dashboard_management, embedded_charts, events_management, external_links_management, host_tag_management, metrics_management, user_management
UserGroups List<string>
List of user groups for this service account
Active bool
Whether or not the service account is active
Description string
The description of the service account
Identifier string
The (unique) identifier of the service account to create. Must start with sa::
IngestionPolicy string
ID of ingestion policy
Permissions []string
List of permission to grant to this service account. Valid options are agent_management, alerts_management, dashboard_management, embedded_charts, events_management, external_links_management, host_tag_management, metrics_management, user_management
UserGroups []string
List of user groups for this service account
active boolean
Whether or not the service account is active
description string
The description of the service account
identifier string
The (unique) identifier of the service account to create. Must start with sa::
ingestionPolicy string
ID of ingestion policy
permissions string[]
List of permission to grant to this service account. Valid options are agent_management, alerts_management, dashboard_management, embedded_charts, events_management, external_links_management, host_tag_management, metrics_management, user_management
userGroups string[]
List of user groups for this service account
active bool
Whether or not the service account is active
description str
The description of the service account
identifier str
The (unique) identifier of the service account to create. Must start with sa::
ingestion_policy str
ID of ingestion policy
permissions Sequence[str]
List of permission to grant to this service account. Valid options are agent_management, alerts_management, dashboard_management, embedded_charts, events_management, external_links_management, host_tag_management, metrics_management, user_management
user_groups Sequence[str]
List of user groups for this service account

Import

Service accounts can be imported using identifier, e.g.

 $ pulumi import wavefront:index/serviceAccount:ServiceAccount basic sa::tftesting

Package Details

Repository
https://github.com/pulumi/pulumi-wavefront
License
Apache-2.0
Notes
This Pulumi package is based on the wavefront Terraform Provider.