1. Packages
  2. Akeyless Provider
  3. API Docs
  4. DynamicSecretGcp
akeyless 1.9.0 published on Monday, Apr 14, 2025 by akeyless-community

akeyless.DynamicSecretGcp

Explore with Pulumi AI

akeyless logo
akeyless 1.9.0 published on Monday, Apr 14, 2025 by akeyless-community

    Google Cloud Provider (GCP) dynamic secret resource

    Create DynamicSecretGcp Resource

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

    Constructor syntax

    new DynamicSecretGcp(name: string, args?: DynamicSecretGcpArgs, opts?: CustomResourceOptions);
    @overload
    def DynamicSecretGcp(resource_name: str,
                         args: Optional[DynamicSecretGcpArgs] = None,
                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def DynamicSecretGcp(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         delete_protection: Optional[str] = None,
                         dynamic_secret_gcp_id: Optional[str] = None,
                         encryption_key_name: Optional[str] = None,
                         gcp_cred_type: Optional[str] = None,
                         gcp_key: Optional[str] = None,
                         gcp_key_algo: Optional[str] = None,
                         gcp_sa_email: Optional[str] = None,
                         gcp_token_scopes: Optional[str] = None,
                         name: Optional[str] = None,
                         role_binding: Optional[str] = None,
                         service_account_type: Optional[str] = None,
                         tags: Optional[Sequence[str]] = None,
                         target_name: Optional[str] = None,
                         user_ttl: Optional[str] = None)
    func NewDynamicSecretGcp(ctx *Context, name string, args *DynamicSecretGcpArgs, opts ...ResourceOption) (*DynamicSecretGcp, error)
    public DynamicSecretGcp(string name, DynamicSecretGcpArgs? args = null, CustomResourceOptions? opts = null)
    public DynamicSecretGcp(String name, DynamicSecretGcpArgs args)
    public DynamicSecretGcp(String name, DynamicSecretGcpArgs args, CustomResourceOptions options)
    
    type: akeyless:DynamicSecretGcp
    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 DynamicSecretGcpArgs
    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 DynamicSecretGcpArgs
    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 DynamicSecretGcpArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DynamicSecretGcpArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DynamicSecretGcpArgs
    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 dynamicSecretGcpResource = new Akeyless.DynamicSecretGcp("dynamicSecretGcpResource", new()
    {
        DeleteProtection = "string",
        DynamicSecretGcpId = "string",
        EncryptionKeyName = "string",
        GcpCredType = "string",
        GcpKey = "string",
        GcpKeyAlgo = "string",
        GcpSaEmail = "string",
        GcpTokenScopes = "string",
        Name = "string",
        RoleBinding = "string",
        ServiceAccountType = "string",
        Tags = new[]
        {
            "string",
        },
        TargetName = "string",
        UserTtl = "string",
    });
    
    example, err := akeyless.NewDynamicSecretGcp(ctx, "dynamicSecretGcpResource", &akeyless.DynamicSecretGcpArgs{
    	DeleteProtection:   pulumi.String("string"),
    	DynamicSecretGcpId: pulumi.String("string"),
    	EncryptionKeyName:  pulumi.String("string"),
    	GcpCredType:        pulumi.String("string"),
    	GcpKey:             pulumi.String("string"),
    	GcpKeyAlgo:         pulumi.String("string"),
    	GcpSaEmail:         pulumi.String("string"),
    	GcpTokenScopes:     pulumi.String("string"),
    	Name:               pulumi.String("string"),
    	RoleBinding:        pulumi.String("string"),
    	ServiceAccountType: pulumi.String("string"),
    	Tags: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	TargetName: pulumi.String("string"),
    	UserTtl:    pulumi.String("string"),
    })
    
    var dynamicSecretGcpResource = new DynamicSecretGcp("dynamicSecretGcpResource", DynamicSecretGcpArgs.builder()
        .deleteProtection("string")
        .dynamicSecretGcpId("string")
        .encryptionKeyName("string")
        .gcpCredType("string")
        .gcpKey("string")
        .gcpKeyAlgo("string")
        .gcpSaEmail("string")
        .gcpTokenScopes("string")
        .name("string")
        .roleBinding("string")
        .serviceAccountType("string")
        .tags("string")
        .targetName("string")
        .userTtl("string")
        .build());
    
    dynamic_secret_gcp_resource = akeyless.DynamicSecretGcp("dynamicSecretGcpResource",
        delete_protection="string",
        dynamic_secret_gcp_id="string",
        encryption_key_name="string",
        gcp_cred_type="string",
        gcp_key="string",
        gcp_key_algo="string",
        gcp_sa_email="string",
        gcp_token_scopes="string",
        name="string",
        role_binding="string",
        service_account_type="string",
        tags=["string"],
        target_name="string",
        user_ttl="string")
    
    const dynamicSecretGcpResource = new akeyless.DynamicSecretGcp("dynamicSecretGcpResource", {
        deleteProtection: "string",
        dynamicSecretGcpId: "string",
        encryptionKeyName: "string",
        gcpCredType: "string",
        gcpKey: "string",
        gcpKeyAlgo: "string",
        gcpSaEmail: "string",
        gcpTokenScopes: "string",
        name: "string",
        roleBinding: "string",
        serviceAccountType: "string",
        tags: ["string"],
        targetName: "string",
        userTtl: "string",
    });
    
    type: akeyless:DynamicSecretGcp
    properties:
        deleteProtection: string
        dynamicSecretGcpId: string
        encryptionKeyName: string
        gcpCredType: string
        gcpKey: string
        gcpKeyAlgo: string
        gcpSaEmail: string
        gcpTokenScopes: string
        name: string
        roleBinding: string
        serviceAccountType: string
        tags:
            - string
        targetName: string
        userTtl: string
    

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

    DeleteProtection string
    Protection from accidental deletion of this item, [true/false]
    DynamicSecretGcpId string
    The ID of this resource.
    EncryptionKeyName string
    Encrypt dynamic secret details with following key
    GcpCredType string
    Credentials type, options are [token, key]
    GcpKey string
    Base64-encoded service account private key text
    GcpKeyAlgo string
    Service account key algorithm, e.g. KEYALGRSA_1024
    GcpSaEmail string
    GCP service account email
    GcpTokenScopes string
    Access token scopes list, e.g. scope1,scope2
    Name string
    Dynamic secret name
    RoleBinding string
    Role binding definitions in json format
    ServiceAccountType string
    The type of the gcp dynamic secret. Options[fixed, dynamic]
    Tags List<string>
    List of the tags attached to this secret. To specify multiple tags use argument multiple times: --tag Tag1 --tag Tag2
    TargetName string
    Name of existing target to use in dynamic secret creation
    UserTtl string
    User TTL (<=60m for access token)
    DeleteProtection string
    Protection from accidental deletion of this item, [true/false]
    DynamicSecretGcpId string
    The ID of this resource.
    EncryptionKeyName string
    Encrypt dynamic secret details with following key
    GcpCredType string
    Credentials type, options are [token, key]
    GcpKey string
    Base64-encoded service account private key text
    GcpKeyAlgo string
    Service account key algorithm, e.g. KEYALGRSA_1024
    GcpSaEmail string
    GCP service account email
    GcpTokenScopes string
    Access token scopes list, e.g. scope1,scope2
    Name string
    Dynamic secret name
    RoleBinding string
    Role binding definitions in json format
    ServiceAccountType string
    The type of the gcp dynamic secret. Options[fixed, dynamic]
    Tags []string
    List of the tags attached to this secret. To specify multiple tags use argument multiple times: --tag Tag1 --tag Tag2
    TargetName string
    Name of existing target to use in dynamic secret creation
    UserTtl string
    User TTL (<=60m for access token)
    deleteProtection String
    Protection from accidental deletion of this item, [true/false]
    dynamicSecretGcpId String
    The ID of this resource.
    encryptionKeyName String
    Encrypt dynamic secret details with following key
    gcpCredType String
    Credentials type, options are [token, key]
    gcpKey String
    Base64-encoded service account private key text
    gcpKeyAlgo String
    Service account key algorithm, e.g. KEYALGRSA_1024
    gcpSaEmail String
    GCP service account email
    gcpTokenScopes String
    Access token scopes list, e.g. scope1,scope2
    name String
    Dynamic secret name
    roleBinding String
    Role binding definitions in json format
    serviceAccountType String
    The type of the gcp dynamic secret. Options[fixed, dynamic]
    tags List<String>
    List of the tags attached to this secret. To specify multiple tags use argument multiple times: --tag Tag1 --tag Tag2
    targetName String
    Name of existing target to use in dynamic secret creation
    userTtl String
    User TTL (<=60m for access token)
    deleteProtection string
    Protection from accidental deletion of this item, [true/false]
    dynamicSecretGcpId string
    The ID of this resource.
    encryptionKeyName string
    Encrypt dynamic secret details with following key
    gcpCredType string
    Credentials type, options are [token, key]
    gcpKey string
    Base64-encoded service account private key text
    gcpKeyAlgo string
    Service account key algorithm, e.g. KEYALGRSA_1024
    gcpSaEmail string
    GCP service account email
    gcpTokenScopes string
    Access token scopes list, e.g. scope1,scope2
    name string
    Dynamic secret name
    roleBinding string
    Role binding definitions in json format
    serviceAccountType string
    The type of the gcp dynamic secret. Options[fixed, dynamic]
    tags string[]
    List of the tags attached to this secret. To specify multiple tags use argument multiple times: --tag Tag1 --tag Tag2
    targetName string
    Name of existing target to use in dynamic secret creation
    userTtl string
    User TTL (<=60m for access token)
    delete_protection str
    Protection from accidental deletion of this item, [true/false]
    dynamic_secret_gcp_id str
    The ID of this resource.
    encryption_key_name str
    Encrypt dynamic secret details with following key
    gcp_cred_type str
    Credentials type, options are [token, key]
    gcp_key str
    Base64-encoded service account private key text
    gcp_key_algo str
    Service account key algorithm, e.g. KEYALGRSA_1024
    gcp_sa_email str
    GCP service account email
    gcp_token_scopes str
    Access token scopes list, e.g. scope1,scope2
    name str
    Dynamic secret name
    role_binding str
    Role binding definitions in json format
    service_account_type str
    The type of the gcp dynamic secret. Options[fixed, dynamic]
    tags Sequence[str]
    List of the tags attached to this secret. To specify multiple tags use argument multiple times: --tag Tag1 --tag Tag2
    target_name str
    Name of existing target to use in dynamic secret creation
    user_ttl str
    User TTL (<=60m for access token)
    deleteProtection String
    Protection from accidental deletion of this item, [true/false]
    dynamicSecretGcpId String
    The ID of this resource.
    encryptionKeyName String
    Encrypt dynamic secret details with following key
    gcpCredType String
    Credentials type, options are [token, key]
    gcpKey String
    Base64-encoded service account private key text
    gcpKeyAlgo String
    Service account key algorithm, e.g. KEYALGRSA_1024
    gcpSaEmail String
    GCP service account email
    gcpTokenScopes String
    Access token scopes list, e.g. scope1,scope2
    name String
    Dynamic secret name
    roleBinding String
    Role binding definitions in json format
    serviceAccountType String
    The type of the gcp dynamic secret. Options[fixed, dynamic]
    tags List<String>
    List of the tags attached to this secret. To specify multiple tags use argument multiple times: --tag Tag1 --tag Tag2
    targetName String
    Name of existing target to use in dynamic secret creation
    userTtl String
    User TTL (<=60m for access token)

    Outputs

    All input properties are implicitly available as output properties. Additionally, the DynamicSecretGcp 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 DynamicSecretGcp Resource

    Get an existing DynamicSecretGcp 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?: DynamicSecretGcpState, opts?: CustomResourceOptions): DynamicSecretGcp
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            delete_protection: Optional[str] = None,
            dynamic_secret_gcp_id: Optional[str] = None,
            encryption_key_name: Optional[str] = None,
            gcp_cred_type: Optional[str] = None,
            gcp_key: Optional[str] = None,
            gcp_key_algo: Optional[str] = None,
            gcp_sa_email: Optional[str] = None,
            gcp_token_scopes: Optional[str] = None,
            name: Optional[str] = None,
            role_binding: Optional[str] = None,
            service_account_type: Optional[str] = None,
            tags: Optional[Sequence[str]] = None,
            target_name: Optional[str] = None,
            user_ttl: Optional[str] = None) -> DynamicSecretGcp
    func GetDynamicSecretGcp(ctx *Context, name string, id IDInput, state *DynamicSecretGcpState, opts ...ResourceOption) (*DynamicSecretGcp, error)
    public static DynamicSecretGcp Get(string name, Input<string> id, DynamicSecretGcpState? state, CustomResourceOptions? opts = null)
    public static DynamicSecretGcp get(String name, Output<String> id, DynamicSecretGcpState state, CustomResourceOptions options)
    resources:  _:    type: akeyless:DynamicSecretGcp    get:      id: ${id}
    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:
    DeleteProtection string
    Protection from accidental deletion of this item, [true/false]
    DynamicSecretGcpId string
    The ID of this resource.
    EncryptionKeyName string
    Encrypt dynamic secret details with following key
    GcpCredType string
    Credentials type, options are [token, key]
    GcpKey string
    Base64-encoded service account private key text
    GcpKeyAlgo string
    Service account key algorithm, e.g. KEYALGRSA_1024
    GcpSaEmail string
    GCP service account email
    GcpTokenScopes string
    Access token scopes list, e.g. scope1,scope2
    Name string
    Dynamic secret name
    RoleBinding string
    Role binding definitions in json format
    ServiceAccountType string
    The type of the gcp dynamic secret. Options[fixed, dynamic]
    Tags List<string>
    List of the tags attached to this secret. To specify multiple tags use argument multiple times: --tag Tag1 --tag Tag2
    TargetName string
    Name of existing target to use in dynamic secret creation
    UserTtl string
    User TTL (<=60m for access token)
    DeleteProtection string
    Protection from accidental deletion of this item, [true/false]
    DynamicSecretGcpId string
    The ID of this resource.
    EncryptionKeyName string
    Encrypt dynamic secret details with following key
    GcpCredType string
    Credentials type, options are [token, key]
    GcpKey string
    Base64-encoded service account private key text
    GcpKeyAlgo string
    Service account key algorithm, e.g. KEYALGRSA_1024
    GcpSaEmail string
    GCP service account email
    GcpTokenScopes string
    Access token scopes list, e.g. scope1,scope2
    Name string
    Dynamic secret name
    RoleBinding string
    Role binding definitions in json format
    ServiceAccountType string
    The type of the gcp dynamic secret. Options[fixed, dynamic]
    Tags []string
    List of the tags attached to this secret. To specify multiple tags use argument multiple times: --tag Tag1 --tag Tag2
    TargetName string
    Name of existing target to use in dynamic secret creation
    UserTtl string
    User TTL (<=60m for access token)
    deleteProtection String
    Protection from accidental deletion of this item, [true/false]
    dynamicSecretGcpId String
    The ID of this resource.
    encryptionKeyName String
    Encrypt dynamic secret details with following key
    gcpCredType String
    Credentials type, options are [token, key]
    gcpKey String
    Base64-encoded service account private key text
    gcpKeyAlgo String
    Service account key algorithm, e.g. KEYALGRSA_1024
    gcpSaEmail String
    GCP service account email
    gcpTokenScopes String
    Access token scopes list, e.g. scope1,scope2
    name String
    Dynamic secret name
    roleBinding String
    Role binding definitions in json format
    serviceAccountType String
    The type of the gcp dynamic secret. Options[fixed, dynamic]
    tags List<String>
    List of the tags attached to this secret. To specify multiple tags use argument multiple times: --tag Tag1 --tag Tag2
    targetName String
    Name of existing target to use in dynamic secret creation
    userTtl String
    User TTL (<=60m for access token)
    deleteProtection string
    Protection from accidental deletion of this item, [true/false]
    dynamicSecretGcpId string
    The ID of this resource.
    encryptionKeyName string
    Encrypt dynamic secret details with following key
    gcpCredType string
    Credentials type, options are [token, key]
    gcpKey string
    Base64-encoded service account private key text
    gcpKeyAlgo string
    Service account key algorithm, e.g. KEYALGRSA_1024
    gcpSaEmail string
    GCP service account email
    gcpTokenScopes string
    Access token scopes list, e.g. scope1,scope2
    name string
    Dynamic secret name
    roleBinding string
    Role binding definitions in json format
    serviceAccountType string
    The type of the gcp dynamic secret. Options[fixed, dynamic]
    tags string[]
    List of the tags attached to this secret. To specify multiple tags use argument multiple times: --tag Tag1 --tag Tag2
    targetName string
    Name of existing target to use in dynamic secret creation
    userTtl string
    User TTL (<=60m for access token)
    delete_protection str
    Protection from accidental deletion of this item, [true/false]
    dynamic_secret_gcp_id str
    The ID of this resource.
    encryption_key_name str
    Encrypt dynamic secret details with following key
    gcp_cred_type str
    Credentials type, options are [token, key]
    gcp_key str
    Base64-encoded service account private key text
    gcp_key_algo str
    Service account key algorithm, e.g. KEYALGRSA_1024
    gcp_sa_email str
    GCP service account email
    gcp_token_scopes str
    Access token scopes list, e.g. scope1,scope2
    name str
    Dynamic secret name
    role_binding str
    Role binding definitions in json format
    service_account_type str
    The type of the gcp dynamic secret. Options[fixed, dynamic]
    tags Sequence[str]
    List of the tags attached to this secret. To specify multiple tags use argument multiple times: --tag Tag1 --tag Tag2
    target_name str
    Name of existing target to use in dynamic secret creation
    user_ttl str
    User TTL (<=60m for access token)
    deleteProtection String
    Protection from accidental deletion of this item, [true/false]
    dynamicSecretGcpId String
    The ID of this resource.
    encryptionKeyName String
    Encrypt dynamic secret details with following key
    gcpCredType String
    Credentials type, options are [token, key]
    gcpKey String
    Base64-encoded service account private key text
    gcpKeyAlgo String
    Service account key algorithm, e.g. KEYALGRSA_1024
    gcpSaEmail String
    GCP service account email
    gcpTokenScopes String
    Access token scopes list, e.g. scope1,scope2
    name String
    Dynamic secret name
    roleBinding String
    Role binding definitions in json format
    serviceAccountType String
    The type of the gcp dynamic secret. Options[fixed, dynamic]
    tags List<String>
    List of the tags attached to this secret. To specify multiple tags use argument multiple times: --tag Tag1 --tag Tag2
    targetName String
    Name of existing target to use in dynamic secret creation
    userTtl String
    User TTL (<=60m for access token)

    Package Details

    Repository
    akeyless akeyless-community/terraform-provider-akeyless
    License
    Notes
    This Pulumi package is based on the akeyless Terraform Provider.
    akeyless logo
    akeyless 1.9.0 published on Monday, Apr 14, 2025 by akeyless-community