1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. compute
  5. CaExternalAccountKey
Google Cloud Classic v6.67.0 published on Wednesday, Sep 27, 2023 by Pulumi

gcp.compute.CaExternalAccountKey

Explore with Pulumi AI

gcp logo
Google Cloud Classic v6.67.0 published on Wednesday, Sep 27, 2023 by Pulumi

    A representation of an ExternalAccountKey used for external account binding within ACME.

    To get more information about ExternalAccountKey, see:

    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.

    Warning: All arguments including the following potentially sensitive values will be stored in the raw state as plain text: key_id, b64_mac_key. Read more about sensitive data in state.

    Example Usage

    Public Ca External Account Key

    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 main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v6/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
    	})
    }
    
    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());
    
        }
    }
    
    import pulumi
    import pulumi_gcp as gcp
    
    prod = gcp.compute.CaExternalAccountKey("prod", project="my-project-name")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const prod = new gcp.compute.CaExternalAccountKey("prod", {project: "my-project-name"});
    
    resources:
      prod:
        type: gcp:compute:CaExternalAccountKey
        properties:
          project: my-project-name
    

    Create CaExternalAccountKey Resource

    new CaExternalAccountKey(name: string, args?: CaExternalAccountKeyArgs, opts?: CustomResourceOptions);
    @overload
    def CaExternalAccountKey(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             location: Optional[str] = None,
                             project: Optional[str] = None)
    @overload
    def CaExternalAccountKey(resource_name: str,
                             args: Optional[CaExternalAccountKeyArgs] = None,
                             opts: Optional[ResourceOptions] = 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.
    
    
    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.

    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

    The CaExternalAccountKey resource accepts the following input properties:

    Location string

    Location for the externalAccountKey. Currently only global is supported.

    Project string

    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

    Location string

    Location for the externalAccountKey. Currently only global is supported.

    Project string

    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

    location String

    Location for the externalAccountKey. Currently only global is supported.

    project String

    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

    location string

    Location for the externalAccountKey. Currently only global is supported.

    project string

    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

    location str

    Location for the externalAccountKey. Currently only global is supported.

    project str

    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

    location String

    Location for the externalAccountKey. Currently only global is supported.

    project String

    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

    Outputs

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

    B64MacKey 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.

    KeyId 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}.

    B64MacKey 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.

    KeyId 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}.

    b64MacKey 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.

    keyId 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}.

    b64MacKey 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.

    keyId 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_key str

    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}.

    b64MacKey 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.

    keyId 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.
    The following state arguments are supported:
    B64MacKey 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.

    KeyId 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.

    B64MacKey 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.

    KeyId 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.

    b64MacKey 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.

    keyId 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.

    b64MacKey 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.

    keyId 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_key str

    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.

    b64MacKey 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.

    keyId 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.

    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.

    gcp logo
    Google Cloud Classic v6.67.0 published on Wednesday, Sep 27, 2023 by Pulumi