1. Packages
  2. pgEdge
  3. API Docs
  4. CloudAccount
pgEdge v0.0.40 published on Friday, Jan 10, 2025 by pgEdge

pgedge.CloudAccount

Explore with Pulumi AI

Create CloudAccount Resource

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

Constructor syntax

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

@overload
def CloudAccount(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 credentials: Optional[Mapping[str, str]] = None,
                 type: Optional[str] = None,
                 description: Optional[str] = None,
                 name: Optional[str] = None)
func NewCloudAccount(ctx *Context, name string, args CloudAccountArgs, opts ...ResourceOption) (*CloudAccount, error)
public CloudAccount(string name, CloudAccountArgs args, CustomResourceOptions? opts = null)
public CloudAccount(String name, CloudAccountArgs args)
public CloudAccount(String name, CloudAccountArgs args, CustomResourceOptions options)
type: pgedge:CloudAccount
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. CloudAccountArgs
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. CloudAccountArgs
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. CloudAccountArgs
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. CloudAccountArgs
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. CloudAccountArgs
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 cloudAccountResource = new Pgedge.CloudAccount("cloudAccountResource", new()
{
    Credentials = 
    {
        { "string", "string" },
    },
    Type = "string",
    Description = "string",
    Name = "string",
});
Copy
example, err := pgedge.NewCloudAccount(ctx, "cloudAccountResource", &pgedge.CloudAccountArgs{
	Credentials: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	Type:        pulumi.String("string"),
	Description: pulumi.String("string"),
	Name:        pulumi.String("string"),
})
Copy
var cloudAccountResource = new CloudAccount("cloudAccountResource", CloudAccountArgs.builder()
    .credentials(Map.of("string", "string"))
    .type("string")
    .description("string")
    .name("string")
    .build());
Copy
cloud_account_resource = pgedge.CloudAccount("cloudAccountResource",
    credentials={
        "string": "string",
    },
    type="string",
    description="string",
    name="string")
Copy
const cloudAccountResource = new pgedge.CloudAccount("cloudAccountResource", {
    credentials: {
        string: "string",
    },
    type: "string",
    description: "string",
    name: "string",
});
Copy
type: pgedge:CloudAccount
properties:
    credentials:
        string: string
    description: string
    name: string
    type: string
Copy

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

Credentials This property is required. Dictionary<string, string>
Type This property is required. string
Description string
Name string
Credentials This property is required. map[string]string
Type This property is required. string
Description string
Name string
credentials This property is required. Map<String,String>
type This property is required. String
description String
name String
credentials This property is required. {[key: string]: string}
type This property is required. string
description string
name string
credentials This property is required. Mapping[str, str]
type This property is required. str
description str
name str
credentials This property is required. Map<String>
type This property is required. String
description String
name String

Outputs

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

CreatedAt string
Id string
The provider-assigned unique ID for this managed resource.
CreatedAt string
Id string
The provider-assigned unique ID for this managed resource.
createdAt String
id String
The provider-assigned unique ID for this managed resource.
createdAt string
id string
The provider-assigned unique ID for this managed resource.
created_at str
id str
The provider-assigned unique ID for this managed resource.
createdAt String
id String
The provider-assigned unique ID for this managed resource.

Look up Existing CloudAccount Resource

Get an existing CloudAccount 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?: CloudAccountState, opts?: CustomResourceOptions): CloudAccount
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        created_at: Optional[str] = None,
        credentials: Optional[Mapping[str, str]] = None,
        description: Optional[str] = None,
        name: Optional[str] = None,
        type: Optional[str] = None) -> CloudAccount
func GetCloudAccount(ctx *Context, name string, id IDInput, state *CloudAccountState, opts ...ResourceOption) (*CloudAccount, error)
public static CloudAccount Get(string name, Input<string> id, CloudAccountState? state, CustomResourceOptions? opts = null)
public static CloudAccount get(String name, Output<String> id, CloudAccountState state, CustomResourceOptions options)
resources:  _:    type: pgedge:CloudAccount    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:
CreatedAt string
Credentials Dictionary<string, string>
Description string
Name string
Type string
CreatedAt string
Credentials map[string]string
Description string
Name string
Type string
createdAt String
credentials Map<String,String>
description String
name String
type String
createdAt string
credentials {[key: string]: string}
description string
name string
type string
created_at str
credentials Mapping[str, str]
description str
name str
type str
createdAt String
credentials Map<String>
description String
name String
type String

Package Details

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