1. Packages
  2. Google Cloud Native
  3. API Docs
  4. storage
  5. storage/v1
  6. HmacKey

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

google-native.storage/v1.HmacKey

Explore with Pulumi AI

google-native logo

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

    Creates a new HMAC key for the specified service account. Auto-naming is currently not supported for this resource.

    Create HmacKey Resource

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

    Constructor syntax

    new HmacKey(name: string, args: HmacKeyArgs, opts?: CustomResourceOptions);
    @overload
    def HmacKey(resource_name: str,
                args: HmacKeyArgs,
                opts: Optional[ResourceOptions] = None)
    
    @overload
    def HmacKey(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                service_account_email: Optional[str] = None,
                project: Optional[str] = None,
                user_project: Optional[str] = None)
    func NewHmacKey(ctx *Context, name string, args HmacKeyArgs, opts ...ResourceOption) (*HmacKey, error)
    public HmacKey(string name, HmacKeyArgs args, CustomResourceOptions? opts = null)
    public HmacKey(String name, HmacKeyArgs args)
    public HmacKey(String name, HmacKeyArgs args, CustomResourceOptions options)
    
    type: google-native:storage/v1:HmacKey
    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 HmacKeyArgs
    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 HmacKeyArgs
    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 HmacKeyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args HmacKeyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args HmacKeyArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var hmacKeyResource = new GoogleNative.Storage.V1.HmacKey("hmacKeyResource", new()
    {
        ServiceAccountEmail = "string",
        Project = "string",
        UserProject = "string",
    });
    
    example, err := storage.NewHmacKey(ctx, "hmacKeyResource", &storage.HmacKeyArgs{
    ServiceAccountEmail: pulumi.String("string"),
    Project: pulumi.String("string"),
    UserProject: pulumi.String("string"),
    })
    
    var hmacKeyResource = new HmacKey("hmacKeyResource", HmacKeyArgs.builder()        
        .serviceAccountEmail("string")
        .project("string")
        .userProject("string")
        .build());
    
    hmac_key_resource = google_native.storage.v1.HmacKey("hmacKeyResource",
        service_account_email="string",
        project="string",
        user_project="string")
    
    const hmacKeyResource = new google_native.storage.v1.HmacKey("hmacKeyResource", {
        serviceAccountEmail: "string",
        project: "string",
        userProject: "string",
    });
    
    type: google-native:storage/v1:HmacKey
    properties:
        project: string
        serviceAccountEmail: string
        userProject: string
    

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

    ServiceAccountEmail string
    Email address of the service account.
    Project string
    UserProject string
    The project to be billed for this request.
    ServiceAccountEmail string
    Email address of the service account.
    Project string
    UserProject string
    The project to be billed for this request.
    serviceAccountEmail String
    Email address of the service account.
    project String
    userProject String
    The project to be billed for this request.
    serviceAccountEmail string
    Email address of the service account.
    project string
    userProject string
    The project to be billed for this request.
    service_account_email str
    Email address of the service account.
    project str
    user_project str
    The project to be billed for this request.
    serviceAccountEmail String
    Email address of the service account.
    project String
    userProject String
    The project to be billed for this request.

    Outputs

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

    AccessId string
    The ID of the HMAC Key.
    Etag string
    HTTP 1.1 Entity tag for the HMAC key.
    Id string
    The provider-assigned unique ID for this managed resource.
    Kind string
    The kind of item this is. For HMAC Key metadata, this is always storage#hmacKeyMetadata.
    SelfLink string
    The link to this resource.
    State string
    The state of the key. Can be one of ACTIVE, INACTIVE, or DELETED.
    TimeCreated string
    The creation time of the HMAC key in RFC 3339 format.
    Updated string
    The last modification time of the HMAC key metadata in RFC 3339 format.
    AccessId string
    The ID of the HMAC Key.
    Etag string
    HTTP 1.1 Entity tag for the HMAC key.
    Id string
    The provider-assigned unique ID for this managed resource.
    Kind string
    The kind of item this is. For HMAC Key metadata, this is always storage#hmacKeyMetadata.
    SelfLink string
    The link to this resource.
    State string
    The state of the key. Can be one of ACTIVE, INACTIVE, or DELETED.
    TimeCreated string
    The creation time of the HMAC key in RFC 3339 format.
    Updated string
    The last modification time of the HMAC key metadata in RFC 3339 format.
    accessId String
    The ID of the HMAC Key.
    etag String
    HTTP 1.1 Entity tag for the HMAC key.
    id String
    The provider-assigned unique ID for this managed resource.
    kind String
    The kind of item this is. For HMAC Key metadata, this is always storage#hmacKeyMetadata.
    selfLink String
    The link to this resource.
    state String
    The state of the key. Can be one of ACTIVE, INACTIVE, or DELETED.
    timeCreated String
    The creation time of the HMAC key in RFC 3339 format.
    updated String
    The last modification time of the HMAC key metadata in RFC 3339 format.
    accessId string
    The ID of the HMAC Key.
    etag string
    HTTP 1.1 Entity tag for the HMAC key.
    id string
    The provider-assigned unique ID for this managed resource.
    kind string
    The kind of item this is. For HMAC Key metadata, this is always storage#hmacKeyMetadata.
    selfLink string
    The link to this resource.
    state string
    The state of the key. Can be one of ACTIVE, INACTIVE, or DELETED.
    timeCreated string
    The creation time of the HMAC key in RFC 3339 format.
    updated string
    The last modification time of the HMAC key metadata in RFC 3339 format.
    access_id str
    The ID of the HMAC Key.
    etag str
    HTTP 1.1 Entity tag for the HMAC key.
    id str
    The provider-assigned unique ID for this managed resource.
    kind str
    The kind of item this is. For HMAC Key metadata, this is always storage#hmacKeyMetadata.
    self_link str
    The link to this resource.
    state str
    The state of the key. Can be one of ACTIVE, INACTIVE, or DELETED.
    time_created str
    The creation time of the HMAC key in RFC 3339 format.
    updated str
    The last modification time of the HMAC key metadata in RFC 3339 format.
    accessId String
    The ID of the HMAC Key.
    etag String
    HTTP 1.1 Entity tag for the HMAC key.
    id String
    The provider-assigned unique ID for this managed resource.
    kind String
    The kind of item this is. For HMAC Key metadata, this is always storage#hmacKeyMetadata.
    selfLink String
    The link to this resource.
    state String
    The state of the key. Can be one of ACTIVE, INACTIVE, or DELETED.
    timeCreated String
    The creation time of the HMAC key in RFC 3339 format.
    updated String
    The last modification time of the HMAC key metadata in RFC 3339 format.

    Package Details

    Repository
    Google Cloud Native pulumi/pulumi-google-native
    License
    Apache-2.0
    google-native logo

    Google Cloud Native is in preview. Google Cloud Classic is fully supported.

    Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi