Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.storage/v1.HmacKey
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
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.
Constructor 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:
- Service
Account stringEmail - Email address of the service account.
- Project string
- User
Project string - The project to be billed for this request.
- Service
Account stringEmail - Email address of the service account.
- Project string
- User
Project string - The project to be billed for this request.
- service
Account StringEmail - Email address of the service account.
- project String
- user
Project String - The project to be billed for this request.
- service
Account stringEmail - Email address of the service account.
- project string
- user
Project string - The project to be billed for this request.
- service_
account_ stremail - Email address of the service account.
- project str
- user_
project str - The project to be billed for this request.
- service
Account StringEmail - Email address of the service account.
- project String
- user
Project 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:
- Access
Id 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.
- Self
Link string - The link to this resource.
- State string
- The state of the key. Can be one of ACTIVE, INACTIVE, or DELETED.
- Time
Created 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 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.
- Self
Link string - The link to this resource.
- State string
- The state of the key. Can be one of ACTIVE, INACTIVE, or DELETED.
- Time
Created 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 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.
- self
Link String - The link to this resource.
- state String
- The state of the key. Can be one of ACTIVE, INACTIVE, or DELETED.
- time
Created 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 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.
- self
Link string - The link to this resource.
- state string
- The state of the key. Can be one of ACTIVE, INACTIVE, or DELETED.
- time
Created 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.
- access
Id 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.
- self
Link String - The link to this resource.
- state String
- The state of the key. Can be one of ACTIVE, INACTIVE, or DELETED.
- time
Created 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 Cloud Native is in preview. Google Cloud Classic is fully supported.