gcp.compute.CaExternalAccountKey
Explore with Pulumi AI
A representation of an ExternalAccountKey used for external account binding within ACME.
To get more information about ExternalAccountKey, see:
- API documentation
- How-to Guides
Warning: This resource is create-only and could not be read from the API. On delete, the resource would be removed from the state. You must use an EAB secret within 7 days of obtaining it. The EAB secret is invalidated if you don’t use it within 7 days. The ACME account registered by using an EAB secret has no expiration.
Example Usage
Public Ca External Account Key
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const prod = new gcp.compute.CaExternalAccountKey("prod", {project: "my-project-name"});
import pulumi
import pulumi_gcp as gcp
prod = gcp.compute.CaExternalAccountKey("prod", project="my-project-name")
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/compute"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := compute.NewCaExternalAccountKey(ctx, "prod", &compute.CaExternalAccountKeyArgs{
Project: pulumi.String("my-project-name"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var prod = new Gcp.Compute.CaExternalAccountKey("prod", new()
{
Project = "my-project-name",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.compute.CaExternalAccountKey;
import com.pulumi.gcp.compute.CaExternalAccountKeyArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var prod = new CaExternalAccountKey("prod", CaExternalAccountKeyArgs.builder()
.project("my-project-name")
.build());
}
}
resources:
prod:
type: gcp:compute:CaExternalAccountKey
properties:
project: my-project-name
Create CaExternalAccountKey Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CaExternalAccountKey(name: string, args?: CaExternalAccountKeyArgs, opts?: CustomResourceOptions);
@overload
def CaExternalAccountKey(resource_name: str,
args: Optional[CaExternalAccountKeyArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def CaExternalAccountKey(resource_name: str,
opts: Optional[ResourceOptions] = None,
location: Optional[str] = None,
project: Optional[str] = None)
func NewCaExternalAccountKey(ctx *Context, name string, args *CaExternalAccountKeyArgs, opts ...ResourceOption) (*CaExternalAccountKey, error)
public CaExternalAccountKey(string name, CaExternalAccountKeyArgs? args = null, CustomResourceOptions? opts = null)
public CaExternalAccountKey(String name, CaExternalAccountKeyArgs args)
public CaExternalAccountKey(String name, CaExternalAccountKeyArgs args, CustomResourceOptions options)
type: gcp:compute:CaExternalAccountKey
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 CaExternalAccountKeyArgs
- 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 CaExternalAccountKeyArgs
- 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 CaExternalAccountKeyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CaExternalAccountKeyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CaExternalAccountKeyArgs
- 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 caExternalAccountKeyResource = new Gcp.Compute.CaExternalAccountKey("caExternalAccountKeyResource", new()
{
Location = "string",
Project = "string",
});
example, err := compute.NewCaExternalAccountKey(ctx, "caExternalAccountKeyResource", &compute.CaExternalAccountKeyArgs{
Location: pulumi.String("string"),
Project: pulumi.String("string"),
})
var caExternalAccountKeyResource = new CaExternalAccountKey("caExternalAccountKeyResource", CaExternalAccountKeyArgs.builder()
.location("string")
.project("string")
.build());
ca_external_account_key_resource = gcp.compute.CaExternalAccountKey("caExternalAccountKeyResource",
location="string",
project="string")
const caExternalAccountKeyResource = new gcp.compute.CaExternalAccountKey("caExternalAccountKeyResource", {
location: "string",
project: "string",
});
type: gcp:compute:CaExternalAccountKey
properties:
location: string
project: string
CaExternalAccountKey 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 CaExternalAccountKey resource accepts the following input properties:
Outputs
All input properties are implicitly available as output properties. Additionally, the CaExternalAccountKey resource produces the following output properties:
- B64Mac
Key string - Base64-URL-encoded HS256 key. It is generated by the PublicCertificateAuthorityService when the ExternalAccountKey is created. Note: This property is sensitive and will not be displayed in the plan.
- Id string
- The provider-assigned unique ID for this managed resource.
- Key
Id string - It is generated by the PublicCertificateAuthorityService when the ExternalAccountKey is created. Note: This property is sensitive and will not be displayed in the plan.
- Name string
- Resource name. projects/{project}/locations/{location}/externalAccountKeys/{keyId}.
- B64Mac
Key string - Base64-URL-encoded HS256 key. It is generated by the PublicCertificateAuthorityService when the ExternalAccountKey is created. Note: This property is sensitive and will not be displayed in the plan.
- Id string
- The provider-assigned unique ID for this managed resource.
- Key
Id string - It is generated by the PublicCertificateAuthorityService when the ExternalAccountKey is created. Note: This property is sensitive and will not be displayed in the plan.
- Name string
- Resource name. projects/{project}/locations/{location}/externalAccountKeys/{keyId}.
- b64Mac
Key String - Base64-URL-encoded HS256 key. It is generated by the PublicCertificateAuthorityService when the ExternalAccountKey is created. Note: This property is sensitive and will not be displayed in the plan.
- id String
- The provider-assigned unique ID for this managed resource.
- key
Id String - It is generated by the PublicCertificateAuthorityService when the ExternalAccountKey is created. Note: This property is sensitive and will not be displayed in the plan.
- name String
- Resource name. projects/{project}/locations/{location}/externalAccountKeys/{keyId}.
- b64Mac
Key string - Base64-URL-encoded HS256 key. It is generated by the PublicCertificateAuthorityService when the ExternalAccountKey is created. Note: This property is sensitive and will not be displayed in the plan.
- id string
- The provider-assigned unique ID for this managed resource.
- key
Id string - It is generated by the PublicCertificateAuthorityService when the ExternalAccountKey is created. Note: This property is sensitive and will not be displayed in the plan.
- name string
- Resource name. projects/{project}/locations/{location}/externalAccountKeys/{keyId}.
- b64_
mac_ strkey - Base64-URL-encoded HS256 key. It is generated by the PublicCertificateAuthorityService when the ExternalAccountKey is created. Note: This property is sensitive and will not be displayed in the plan.
- id str
- The provider-assigned unique ID for this managed resource.
- key_
id str - It is generated by the PublicCertificateAuthorityService when the ExternalAccountKey is created. Note: This property is sensitive and will not be displayed in the plan.
- name str
- Resource name. projects/{project}/locations/{location}/externalAccountKeys/{keyId}.
- b64Mac
Key String - Base64-URL-encoded HS256 key. It is generated by the PublicCertificateAuthorityService when the ExternalAccountKey is created. Note: This property is sensitive and will not be displayed in the plan.
- id String
- The provider-assigned unique ID for this managed resource.
- key
Id String - It is generated by the PublicCertificateAuthorityService when the ExternalAccountKey is created. Note: This property is sensitive and will not be displayed in the plan.
- name String
- Resource name. projects/{project}/locations/{location}/externalAccountKeys/{keyId}.
Look up Existing CaExternalAccountKey Resource
Get an existing CaExternalAccountKey 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?: CaExternalAccountKeyState, opts?: CustomResourceOptions): CaExternalAccountKey
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
b64_mac_key: Optional[str] = None,
key_id: Optional[str] = None,
location: Optional[str] = None,
name: Optional[str] = None,
project: Optional[str] = None) -> CaExternalAccountKey
func GetCaExternalAccountKey(ctx *Context, name string, id IDInput, state *CaExternalAccountKeyState, opts ...ResourceOption) (*CaExternalAccountKey, error)
public static CaExternalAccountKey Get(string name, Input<string> id, CaExternalAccountKeyState? state, CustomResourceOptions? opts = null)
public static CaExternalAccountKey get(String name, Output<String> id, CaExternalAccountKeyState 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.
- B64Mac
Key string - Base64-URL-encoded HS256 key. It is generated by the PublicCertificateAuthorityService when the ExternalAccountKey is created. Note: This property is sensitive and will not be displayed in the plan.
- Key
Id string - It is generated by the PublicCertificateAuthorityService when the ExternalAccountKey is created. Note: This property is sensitive and will not be displayed in the plan.
- Location string
- Location for the externalAccountKey. Currently only
global
is supported. - Name string
- Resource name. projects/{project}/locations/{location}/externalAccountKeys/{keyId}.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- B64Mac
Key string - Base64-URL-encoded HS256 key. It is generated by the PublicCertificateAuthorityService when the ExternalAccountKey is created. Note: This property is sensitive and will not be displayed in the plan.
- Key
Id string - It is generated by the PublicCertificateAuthorityService when the ExternalAccountKey is created. Note: This property is sensitive and will not be displayed in the plan.
- Location string
- Location for the externalAccountKey. Currently only
global
is supported. - Name string
- Resource name. projects/{project}/locations/{location}/externalAccountKeys/{keyId}.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- b64Mac
Key String - Base64-URL-encoded HS256 key. It is generated by the PublicCertificateAuthorityService when the ExternalAccountKey is created. Note: This property is sensitive and will not be displayed in the plan.
- key
Id String - It is generated by the PublicCertificateAuthorityService when the ExternalAccountKey is created. Note: This property is sensitive and will not be displayed in the plan.
- location String
- Location for the externalAccountKey. Currently only
global
is supported. - name String
- Resource name. projects/{project}/locations/{location}/externalAccountKeys/{keyId}.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- b64Mac
Key string - Base64-URL-encoded HS256 key. It is generated by the PublicCertificateAuthorityService when the ExternalAccountKey is created. Note: This property is sensitive and will not be displayed in the plan.
- key
Id string - It is generated by the PublicCertificateAuthorityService when the ExternalAccountKey is created. Note: This property is sensitive and will not be displayed in the plan.
- location string
- Location for the externalAccountKey. Currently only
global
is supported. - name string
- Resource name. projects/{project}/locations/{location}/externalAccountKeys/{keyId}.
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- b64_
mac_ strkey - Base64-URL-encoded HS256 key. It is generated by the PublicCertificateAuthorityService when the ExternalAccountKey is created. Note: This property is sensitive and will not be displayed in the plan.
- key_
id str - It is generated by the PublicCertificateAuthorityService when the ExternalAccountKey is created. Note: This property is sensitive and will not be displayed in the plan.
- location str
- Location for the externalAccountKey. Currently only
global
is supported. - name str
- Resource name. projects/{project}/locations/{location}/externalAccountKeys/{keyId}.
- project str
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- b64Mac
Key String - Base64-URL-encoded HS256 key. It is generated by the PublicCertificateAuthorityService when the ExternalAccountKey is created. Note: This property is sensitive and will not be displayed in the plan.
- key
Id String - It is generated by the PublicCertificateAuthorityService when the ExternalAccountKey is created. Note: This property is sensitive and will not be displayed in the plan.
- location String
- Location for the externalAccountKey. Currently only
global
is supported. - name String
- Resource name. projects/{project}/locations/{location}/externalAccountKeys/{keyId}.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
Import
This resource does not support import.
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Google Cloud (GCP) Classic pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-beta
Terraform Provider.