Account
# Account Resource
The Account resource allows the creation and management of an Aiven Account.
Example Usage
using Pulumi;
using Aiven = Pulumi.Aiven;
class MyStack : Stack
{
public MyStack()
{
var account1 = new Aiven.Account("account1", new Aiven.AccountArgs
{
});
}
}
package main
import (
"github.com/pulumi/pulumi-aiven/sdk/v3/go/aiven"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := aiven.NewAccount(ctx, "account1", nil)
if err != nil {
return err
}
return nil
})
}
import pulumi
import pulumi_aiven as aiven
account1 = aiven.Account("account1")
import * as pulumi from "@pulumi/pulumi";
import * as aiven from "@pulumi/aiven";
const account1 = new aiven.Account("account1", {});
Create a Account Resource
new Account(name: string, args?: AccountArgs, opts?: CustomResourceOptions);
def Account(resource_name: str, opts: Optional[ResourceOptions] = None, create_time: Optional[str] = None, name: Optional[str] = None, owner_team_id: Optional[str] = None, tenant_id: Optional[str] = None, update_time: Optional[str] = None)
func NewAccount(ctx *Context, name string, args *AccountArgs, opts ...ResourceOption) (*Account, error)
public Account(string name, AccountArgs? args = null, CustomResourceOptions? opts = null)
- name string
- The unique name of the resource.
- args AccountArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args AccountArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AccountArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
Account Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The Account resource accepts the following input properties:
- Create
Time string time of creation.
- Name string
defines an account name.
- Owner
Team stringId is an owner team id.
- Tenant
Id string is a tenant id.
- Update
Time string time of last update.
- Create
Time string time of creation.
- Name string
defines an account name.
- Owner
Team stringId is an owner team id.
- Tenant
Id string is a tenant id.
- Update
Time string time of last update.
- create
Time string time of creation.
- name string
defines an account name.
- owner
Team stringId is an owner team id.
- tenant
Id string is a tenant id.
- update
Time string time of last update.
- create_
time str time of creation.
- name str
defines an account name.
- owner_
team_ strid is an owner team id.
- tenant_
id str is a tenant id.
- update_
time str time of last update.
Outputs
All input properties are implicitly available as output properties. Additionally, the Account resource produces the following output properties:
- account_
id str is an auto-generated unique account id.
- id str
- The provider-assigned unique ID for this managed resource.
Look up an Existing Account Resource
Get an existing Account 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?: AccountState, opts?: CustomResourceOptions): Account
@staticmethod
def get(resource_name: str, id: str, opts: Optional[ResourceOptions] = None, account_id: Optional[str] = None, create_time: Optional[str] = None, name: Optional[str] = None, owner_team_id: Optional[str] = None, tenant_id: Optional[str] = None, update_time: Optional[str] = None) -> Account
func GetAccount(ctx *Context, name string, id IDInput, state *AccountState, opts ...ResourceOption) (*Account, error)
public static Account Get(string name, Input<string> id, AccountState? 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:
- Account
Id string is an auto-generated unique account id.
- Create
Time string time of creation.
- Name string
defines an account name.
- Owner
Team stringId is an owner team id.
- Tenant
Id string is a tenant id.
- Update
Time string time of last update.
- Account
Id string is an auto-generated unique account id.
- Create
Time string time of creation.
- Name string
defines an account name.
- Owner
Team stringId is an owner team id.
- Tenant
Id string is a tenant id.
- Update
Time string time of last update.
- account
Id string is an auto-generated unique account id.
- create
Time string time of creation.
- name string
defines an account name.
- owner
Team stringId is an owner team id.
- tenant
Id string is a tenant id.
- update
Time string time of last update.
- account_
id str is an auto-generated unique account id.
- create_
time str time of creation.
- name str
defines an account name.
- owner_
team_ strid is an owner team id.
- tenant_
id str is a tenant id.
- update_
time str time of last update.
Package Details
- Repository
- https://github.com/pulumi/pulumi-aiven
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aiven
Terraform Provider.