castai.Credentials
Explore with Pulumi AI
Create Credentials Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Credentials(name: string, args?: CredentialsArgs, opts?: CustomResourceOptions);
@overload
def Credentials(resource_name: str,
args: Optional[CredentialsArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Credentials(resource_name: str,
opts: Optional[ResourceOptions] = None,
aws: Optional[CredentialsAwsArgs] = None,
azure: Optional[CredentialsAzureArgs] = None,
do: Optional[CredentialsDoArgs] = None,
gcp: Optional[CredentialsGcpArgs] = None,
name: Optional[str] = None)
func NewCredentials(ctx *Context, name string, args *CredentialsArgs, opts ...ResourceOption) (*Credentials, error)
public Credentials(string name, CredentialsArgs? args = null, CustomResourceOptions? opts = null)
public Credentials(String name, CredentialsArgs args)
public Credentials(String name, CredentialsArgs args, CustomResourceOptions options)
type: castai:Credentials
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args CredentialsArgs
- 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 CredentialsArgs
- 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 CredentialsArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CredentialsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CredentialsArgs
- 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 credentialsResource = new CastAI.Credentials("credentialsResource", new()
{
Aws = new CastAI.Inputs.CredentialsAwsArgs
{
AccessKeyId = "string",
SecretAccessKey = "string",
},
Azure = new CastAI.Inputs.CredentialsAzureArgs
{
ServicePrincipalJson = "string",
},
Do = new CastAI.Inputs.CredentialsDoArgs
{
Token = "string",
},
Gcp = new CastAI.Inputs.CredentialsGcpArgs
{
ServiceAccountJson = "string",
},
Name = "string",
});
example, err := castai.NewCredentials(ctx, "credentialsResource", &castai.CredentialsArgs{
Aws: &castai.CredentialsAwsArgs{
AccessKeyId: pulumi.String("string"),
SecretAccessKey: pulumi.String("string"),
},
Azure: &castai.CredentialsAzureArgs{
ServicePrincipalJson: pulumi.String("string"),
},
Do: &castai.CredentialsDoArgs{
Token: pulumi.String("string"),
},
Gcp: &castai.CredentialsGcpArgs{
ServiceAccountJson: pulumi.String("string"),
},
Name: pulumi.String("string"),
})
var credentialsResource = new Credentials("credentialsResource", CredentialsArgs.builder()
.aws(CredentialsAwsArgs.builder()
.accessKeyId("string")
.secretAccessKey("string")
.build())
.azure(CredentialsAzureArgs.builder()
.servicePrincipalJson("string")
.build())
.do_(CredentialsDoArgs.builder()
.token("string")
.build())
.gcp(CredentialsGcpArgs.builder()
.serviceAccountJson("string")
.build())
.name("string")
.build());
credentials_resource = castai.Credentials("credentialsResource",
aws={
"access_key_id": "string",
"secret_access_key": "string",
},
azure={
"service_principal_json": "string",
},
do={
"token": "string",
},
gcp={
"service_account_json": "string",
},
name="string")
const credentialsResource = new castai.Credentials("credentialsResource", {
aws: {
accessKeyId: "string",
secretAccessKey: "string",
},
azure: {
servicePrincipalJson: "string",
},
"do": {
token: "string",
},
gcp: {
serviceAccountJson: "string",
},
name: "string",
});
type: castai:Credentials
properties:
aws:
accessKeyId: string
secretAccessKey: string
azure:
servicePrincipalJson: string
do:
token: string
gcp:
serviceAccountJson: string
name: string
Credentials 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 Credentials resource accepts the following input properties:
Outputs
All input properties are implicitly available as output properties. Additionally, the Credentials resource produces the following output properties:
Look up Existing Credentials Resource
Get an existing Credentials 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?: CredentialsState, opts?: CustomResourceOptions): Credentials
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
aws: Optional[CredentialsAwsArgs] = None,
azure: Optional[CredentialsAzureArgs] = None,
cloud: Optional[str] = None,
do: Optional[CredentialsDoArgs] = None,
gcp: Optional[CredentialsGcpArgs] = None,
name: Optional[str] = None) -> Credentials
func GetCredentials(ctx *Context, name string, id IDInput, state *CredentialsState, opts ...ResourceOption) (*Credentials, error)
public static Credentials Get(string name, Input<string> id, CredentialsState? state, CustomResourceOptions? opts = null)
public static Credentials get(String name, Output<String> id, CredentialsState state, CustomResourceOptions options)
resources: _: type: castai:Credentials get: 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.
- aws Property Map
- azure Property Map
- cloud String
- do Property Map
- gcp Property Map
- name String
Supporting Types
CredentialsAws, CredentialsAwsArgs
- Access
Key stringId - Secret
Access stringKey
- Access
Key stringId - Secret
Access stringKey
- access
Key StringId - secret
Access StringKey
- access
Key stringId - secret
Access stringKey
- access_
key_ strid - secret_
access_ strkey
- access
Key StringId - secret
Access StringKey
CredentialsAzure, CredentialsAzureArgs
- Service
Principal stringJson
- Service
Principal stringJson
- service
Principal StringJson
- service
Principal stringJson
- service
Principal StringJson
CredentialsDo, CredentialsDoArgs
- Token string
- Token string
- token String
- token string
- token str
- token String
CredentialsGcp, CredentialsGcpArgs
- Service
Account stringJson
- Service
Account stringJson
- service
Account StringJson
- service
Account stringJson
- service
Account StringJson
Package Details
- Repository
- castai castai/pulumi-castai
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
castai
Terraform Provider.