Spotinst v3.94.0 published on Friday, Sep 20, 2024 by Pulumi
spotinst.CredentialsGcp
Explore with Pulumi AI
Provides a Spotinst credential GCP resource.
Create CredentialsGcp Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CredentialsGcp(name: string, args: CredentialsGcpArgs, opts?: CustomResourceOptions);
@overload
def CredentialsGcp(resource_name: str,
args: CredentialsGcpArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CredentialsGcp(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
auth_provider_x509_cert_url: Optional[str] = None,
auth_uri: Optional[str] = None,
client_email: Optional[str] = None,
client_id: Optional[str] = None,
client_x509_cert_url: Optional[str] = None,
private_key: Optional[str] = None,
private_key_id: Optional[str] = None,
project_id: Optional[str] = None,
token_uri: Optional[str] = None,
type: Optional[str] = None)
func NewCredentialsGcp(ctx *Context, name string, args CredentialsGcpArgs, opts ...ResourceOption) (*CredentialsGcp, error)
public CredentialsGcp(string name, CredentialsGcpArgs args, CustomResourceOptions? opts = null)
public CredentialsGcp(String name, CredentialsGcpArgs args)
public CredentialsGcp(String name, CredentialsGcpArgs args, CustomResourceOptions options)
type: spotinst:CredentialsGcp
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 CredentialsGcpArgs
- 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 CredentialsGcpArgs
- 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 CredentialsGcpArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CredentialsGcpArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CredentialsGcpArgs
- 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 credentialsGcpResource = new SpotInst.CredentialsGcp("credentialsGcpResource", new()
{
AccountId = "string",
AuthProviderX509CertUrl = "string",
AuthUri = "string",
ClientEmail = "string",
ClientId = "string",
ClientX509CertUrl = "string",
PrivateKey = "string",
PrivateKeyId = "string",
ProjectId = "string",
TokenUri = "string",
Type = "string",
});
example, err := spotinst.NewCredentialsGcp(ctx, "credentialsGcpResource", &spotinst.CredentialsGcpArgs{
AccountId: pulumi.String("string"),
AuthProviderX509CertUrl: pulumi.String("string"),
AuthUri: pulumi.String("string"),
ClientEmail: pulumi.String("string"),
ClientId: pulumi.String("string"),
ClientX509CertUrl: pulumi.String("string"),
PrivateKey: pulumi.String("string"),
PrivateKeyId: pulumi.String("string"),
ProjectId: pulumi.String("string"),
TokenUri: pulumi.String("string"),
Type: pulumi.String("string"),
})
var credentialsGcpResource = new CredentialsGcp("credentialsGcpResource", CredentialsGcpArgs.builder()
.accountId("string")
.authProviderX509CertUrl("string")
.authUri("string")
.clientEmail("string")
.clientId("string")
.clientX509CertUrl("string")
.privateKey("string")
.privateKeyId("string")
.projectId("string")
.tokenUri("string")
.type("string")
.build());
credentials_gcp_resource = spotinst.CredentialsGcp("credentialsGcpResource",
account_id="string",
auth_provider_x509_cert_url="string",
auth_uri="string",
client_email="string",
client_id="string",
client_x509_cert_url="string",
private_key="string",
private_key_id="string",
project_id="string",
token_uri="string",
type="string")
const credentialsGcpResource = new spotinst.CredentialsGcp("credentialsGcpResource", {
accountId: "string",
authProviderX509CertUrl: "string",
authUri: "string",
clientEmail: "string",
clientId: "string",
clientX509CertUrl: "string",
privateKey: "string",
privateKeyId: "string",
projectId: "string",
tokenUri: "string",
type: "string",
});
type: spotinst:CredentialsGcp
properties:
accountId: string
authProviderX509CertUrl: string
authUri: string
clientEmail: string
clientId: string
clientX509CertUrl: string
privateKey: string
privateKeyId: string
projectId: string
tokenUri: string
type: string
CredentialsGcp 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 CredentialsGcp resource accepts the following input properties:
- Account
Id string - The ID of the account associated with your token.
- Auth
Provider stringX509Cert Url - .
- Auth
Uri string - Authentication uri.
- Client
Email string - Email associated with service account.
- Client
Id string - Client ID of service account.
- Client
X509Cert stringUrl - Should be in following format - "https://www.googleapis.com/robot/v1/metadata/x509/".
- Private
Key string - Private key of JSON key created during prerequisites stage.
- Private
Key stringId - Private key ID of JSON key created during prerequisites stage.
- Project
Id string - Name of project in GCP.
- Token
Uri string - Token uri.
- Type string
- Valid values - service_account.
- Account
Id string - The ID of the account associated with your token.
- Auth
Provider stringX509Cert Url - .
- Auth
Uri string - Authentication uri.
- Client
Email string - Email associated with service account.
- Client
Id string - Client ID of service account.
- Client
X509Cert stringUrl - Should be in following format - "https://www.googleapis.com/robot/v1/metadata/x509/".
- Private
Key string - Private key of JSON key created during prerequisites stage.
- Private
Key stringId - Private key ID of JSON key created during prerequisites stage.
- Project
Id string - Name of project in GCP.
- Token
Uri string - Token uri.
- Type string
- Valid values - service_account.
- account
Id String - The ID of the account associated with your token.
- auth
Provider StringX509Cert Url - .
- auth
Uri String - Authentication uri.
- client
Email String - Email associated with service account.
- client
Id String - Client ID of service account.
- client
X509Cert StringUrl - Should be in following format - "https://www.googleapis.com/robot/v1/metadata/x509/".
- private
Key String - Private key of JSON key created during prerequisites stage.
- private
Key StringId - Private key ID of JSON key created during prerequisites stage.
- project
Id String - Name of project in GCP.
- token
Uri String - Token uri.
- type String
- Valid values - service_account.
- account
Id string - The ID of the account associated with your token.
- auth
Provider stringX509Cert Url - .
- auth
Uri string - Authentication uri.
- client
Email string - Email associated with service account.
- client
Id string - Client ID of service account.
- client
X509Cert stringUrl - Should be in following format - "https://www.googleapis.com/robot/v1/metadata/x509/".
- private
Key string - Private key of JSON key created during prerequisites stage.
- private
Key stringId - Private key ID of JSON key created during prerequisites stage.
- project
Id string - Name of project in GCP.
- token
Uri string - Token uri.
- type string
- Valid values - service_account.
- account_
id str - The ID of the account associated with your token.
- auth_
provider_ strx509_ cert_ url - .
- auth_
uri str - Authentication uri.
- client_
email str - Email associated with service account.
- client_
id str - Client ID of service account.
- client_
x509_ strcert_ url - Should be in following format - "https://www.googleapis.com/robot/v1/metadata/x509/".
- private_
key str - Private key of JSON key created during prerequisites stage.
- private_
key_ strid - Private key ID of JSON key created during prerequisites stage.
- project_
id str - Name of project in GCP.
- token_
uri str - Token uri.
- type str
- Valid values - service_account.
- account
Id String - The ID of the account associated with your token.
- auth
Provider StringX509Cert Url - .
- auth
Uri String - Authentication uri.
- client
Email String - Email associated with service account.
- client
Id String - Client ID of service account.
- client
X509Cert StringUrl - Should be in following format - "https://www.googleapis.com/robot/v1/metadata/x509/".
- private
Key String - Private key of JSON key created during prerequisites stage.
- private
Key StringId - Private key ID of JSON key created during prerequisites stage.
- project
Id String - Name of project in GCP.
- token
Uri String - Token uri.
- type String
- Valid values - service_account.
Outputs
All input properties are implicitly available as output properties. Additionally, the CredentialsGcp 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 string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing CredentialsGcp Resource
Get an existing CredentialsGcp 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?: CredentialsGcpState, opts?: CustomResourceOptions): CredentialsGcp
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
auth_provider_x509_cert_url: Optional[str] = None,
auth_uri: Optional[str] = None,
client_email: Optional[str] = None,
client_id: Optional[str] = None,
client_x509_cert_url: Optional[str] = None,
private_key: Optional[str] = None,
private_key_id: Optional[str] = None,
project_id: Optional[str] = None,
token_uri: Optional[str] = None,
type: Optional[str] = None) -> CredentialsGcp
func GetCredentialsGcp(ctx *Context, name string, id IDInput, state *CredentialsGcpState, opts ...ResourceOption) (*CredentialsGcp, error)
public static CredentialsGcp Get(string name, Input<string> id, CredentialsGcpState? state, CustomResourceOptions? opts = null)
public static CredentialsGcp get(String name, Output<String> id, CredentialsGcpState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Account
Id string - The ID of the account associated with your token.
- Auth
Provider stringX509Cert Url - .
- Auth
Uri string - Authentication uri.
- Client
Email string - Email associated with service account.
- Client
Id string - Client ID of service account.
- Client
X509Cert stringUrl - Should be in following format - "https://www.googleapis.com/robot/v1/metadata/x509/".
- Private
Key string - Private key of JSON key created during prerequisites stage.
- Private
Key stringId - Private key ID of JSON key created during prerequisites stage.
- Project
Id string - Name of project in GCP.
- Token
Uri string - Token uri.
- Type string
- Valid values - service_account.
- Account
Id string - The ID of the account associated with your token.
- Auth
Provider stringX509Cert Url - .
- Auth
Uri string - Authentication uri.
- Client
Email string - Email associated with service account.
- Client
Id string - Client ID of service account.
- Client
X509Cert stringUrl - Should be in following format - "https://www.googleapis.com/robot/v1/metadata/x509/".
- Private
Key string - Private key of JSON key created during prerequisites stage.
- Private
Key stringId - Private key ID of JSON key created during prerequisites stage.
- Project
Id string - Name of project in GCP.
- Token
Uri string - Token uri.
- Type string
- Valid values - service_account.
- account
Id String - The ID of the account associated with your token.
- auth
Provider StringX509Cert Url - .
- auth
Uri String - Authentication uri.
- client
Email String - Email associated with service account.
- client
Id String - Client ID of service account.
- client
X509Cert StringUrl - Should be in following format - "https://www.googleapis.com/robot/v1/metadata/x509/".
- private
Key String - Private key of JSON key created during prerequisites stage.
- private
Key StringId - Private key ID of JSON key created during prerequisites stage.
- project
Id String - Name of project in GCP.
- token
Uri String - Token uri.
- type String
- Valid values - service_account.
- account
Id string - The ID of the account associated with your token.
- auth
Provider stringX509Cert Url - .
- auth
Uri string - Authentication uri.
- client
Email string - Email associated with service account.
- client
Id string - Client ID of service account.
- client
X509Cert stringUrl - Should be in following format - "https://www.googleapis.com/robot/v1/metadata/x509/".
- private
Key string - Private key of JSON key created during prerequisites stage.
- private
Key stringId - Private key ID of JSON key created during prerequisites stage.
- project
Id string - Name of project in GCP.
- token
Uri string - Token uri.
- type string
- Valid values - service_account.
- account_
id str - The ID of the account associated with your token.
- auth_
provider_ strx509_ cert_ url - .
- auth_
uri str - Authentication uri.
- client_
email str - Email associated with service account.
- client_
id str - Client ID of service account.
- client_
x509_ strcert_ url - Should be in following format - "https://www.googleapis.com/robot/v1/metadata/x509/".
- private_
key str - Private key of JSON key created during prerequisites stage.
- private_
key_ strid - Private key ID of JSON key created during prerequisites stage.
- project_
id str - Name of project in GCP.
- token_
uri str - Token uri.
- type str
- Valid values - service_account.
- account
Id String - The ID of the account associated with your token.
- auth
Provider StringX509Cert Url - .
- auth
Uri String - Authentication uri.
- client
Email String - Email associated with service account.
- client
Id String - Client ID of service account.
- client
X509Cert StringUrl - Should be in following format - "https://www.googleapis.com/robot/v1/metadata/x509/".
- private
Key String - Private key of JSON key created during prerequisites stage.
- private
Key StringId - Private key ID of JSON key created during prerequisites stage.
- project
Id String - Name of project in GCP.
- token
Uri String - Token uri.
- type String
- Valid values - service_account.
Package Details
- Repository
- Spotinst pulumi/pulumi-spotinst
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
spotinst
Terraform Provider.