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

akeyless.TargetGcp

Explore with Pulumi AI

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

    GCP Target resource

    Create TargetGcp Resource

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

    Constructor syntax

    new TargetGcp(name: string, args?: TargetGcpArgs, opts?: CustomResourceOptions);
    @overload
    def TargetGcp(resource_name: str,
                  args: Optional[TargetGcpArgs] = None,
                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def TargetGcp(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  description: Optional[str] = None,
                  gcp_key: Optional[str] = None,
                  gcp_sa_email: Optional[str] = None,
                  key: Optional[str] = None,
                  name: Optional[str] = None,
                  target_gcp_id: Optional[str] = None,
                  use_gw_cloud_identity: Optional[bool] = None)
    func NewTargetGcp(ctx *Context, name string, args *TargetGcpArgs, opts ...ResourceOption) (*TargetGcp, error)
    public TargetGcp(string name, TargetGcpArgs? args = null, CustomResourceOptions? opts = null)
    public TargetGcp(String name, TargetGcpArgs args)
    public TargetGcp(String name, TargetGcpArgs args, CustomResourceOptions options)
    
    type: akeyless:TargetGcp
    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 TargetGcpArgs
    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 TargetGcpArgs
    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 TargetGcpArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TargetGcpArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TargetGcpArgs
    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 targetGcpResource = new Akeyless.TargetGcp("targetGcpResource", new()
    {
        Description = "string",
        GcpKey = "string",
        GcpSaEmail = "string",
        Key = "string",
        Name = "string",
        TargetGcpId = "string",
        UseGwCloudIdentity = false,
    });
    
    example, err := akeyless.NewTargetGcp(ctx, "targetGcpResource", &akeyless.TargetGcpArgs{
    	Description:        pulumi.String("string"),
    	GcpKey:             pulumi.String("string"),
    	GcpSaEmail:         pulumi.String("string"),
    	Key:                pulumi.String("string"),
    	Name:               pulumi.String("string"),
    	TargetGcpId:        pulumi.String("string"),
    	UseGwCloudIdentity: pulumi.Bool(false),
    })
    
    var targetGcpResource = new TargetGcp("targetGcpResource", TargetGcpArgs.builder()
        .description("string")
        .gcpKey("string")
        .gcpSaEmail("string")
        .key("string")
        .name("string")
        .targetGcpId("string")
        .useGwCloudIdentity(false)
        .build());
    
    target_gcp_resource = akeyless.TargetGcp("targetGcpResource",
        description="string",
        gcp_key="string",
        gcp_sa_email="string",
        key="string",
        name="string",
        target_gcp_id="string",
        use_gw_cloud_identity=False)
    
    const targetGcpResource = new akeyless.TargetGcp("targetGcpResource", {
        description: "string",
        gcpKey: "string",
        gcpSaEmail: "string",
        key: "string",
        name: "string",
        targetGcpId: "string",
        useGwCloudIdentity: false,
    });
    
    type: akeyless:TargetGcp
    properties:
        description: string
        gcpKey: string
        gcpSaEmail: string
        key: string
        name: string
        targetGcpId: string
        useGwCloudIdentity: false
    

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

    Description string
    Description of the object
    GcpKey string
    Base64-encoded service account private key text
    GcpSaEmail string
    GCP service account email
    Key string
    Key name. The key will be used to encrypt the target secret value. If key name is not specified, the account default protection key is used
    Name string
    Target name
    TargetGcpId string
    The ID of this resource.
    UseGwCloudIdentity bool
    Use the GW's Cloud IAM
    Description string
    Description of the object
    GcpKey string
    Base64-encoded service account private key text
    GcpSaEmail string
    GCP service account email
    Key string
    Key name. The key will be used to encrypt the target secret value. If key name is not specified, the account default protection key is used
    Name string
    Target name
    TargetGcpId string
    The ID of this resource.
    UseGwCloudIdentity bool
    Use the GW's Cloud IAM
    description String
    Description of the object
    gcpKey String
    Base64-encoded service account private key text
    gcpSaEmail String
    GCP service account email
    key String
    Key name. The key will be used to encrypt the target secret value. If key name is not specified, the account default protection key is used
    name String
    Target name
    targetGcpId String
    The ID of this resource.
    useGwCloudIdentity Boolean
    Use the GW's Cloud IAM
    description string
    Description of the object
    gcpKey string
    Base64-encoded service account private key text
    gcpSaEmail string
    GCP service account email
    key string
    Key name. The key will be used to encrypt the target secret value. If key name is not specified, the account default protection key is used
    name string
    Target name
    targetGcpId string
    The ID of this resource.
    useGwCloudIdentity boolean
    Use the GW's Cloud IAM
    description str
    Description of the object
    gcp_key str
    Base64-encoded service account private key text
    gcp_sa_email str
    GCP service account email
    key str
    Key name. The key will be used to encrypt the target secret value. If key name is not specified, the account default protection key is used
    name str
    Target name
    target_gcp_id str
    The ID of this resource.
    use_gw_cloud_identity bool
    Use the GW's Cloud IAM
    description String
    Description of the object
    gcpKey String
    Base64-encoded service account private key text
    gcpSaEmail String
    GCP service account email
    key String
    Key name. The key will be used to encrypt the target secret value. If key name is not specified, the account default protection key is used
    name String
    Target name
    targetGcpId String
    The ID of this resource.
    useGwCloudIdentity Boolean
    Use the GW's Cloud IAM

    Outputs

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

    Get an existing TargetGcp 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?: TargetGcpState, opts?: CustomResourceOptions): TargetGcp
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            description: Optional[str] = None,
            gcp_key: Optional[str] = None,
            gcp_sa_email: Optional[str] = None,
            key: Optional[str] = None,
            name: Optional[str] = None,
            target_gcp_id: Optional[str] = None,
            use_gw_cloud_identity: Optional[bool] = None) -> TargetGcp
    func GetTargetGcp(ctx *Context, name string, id IDInput, state *TargetGcpState, opts ...ResourceOption) (*TargetGcp, error)
    public static TargetGcp Get(string name, Input<string> id, TargetGcpState? state, CustomResourceOptions? opts = null)
    public static TargetGcp get(String name, Output<String> id, TargetGcpState state, CustomResourceOptions options)
    resources:  _:    type: akeyless:TargetGcp    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:
    Description string
    Description of the object
    GcpKey string
    Base64-encoded service account private key text
    GcpSaEmail string
    GCP service account email
    Key string
    Key name. The key will be used to encrypt the target secret value. If key name is not specified, the account default protection key is used
    Name string
    Target name
    TargetGcpId string
    The ID of this resource.
    UseGwCloudIdentity bool
    Use the GW's Cloud IAM
    Description string
    Description of the object
    GcpKey string
    Base64-encoded service account private key text
    GcpSaEmail string
    GCP service account email
    Key string
    Key name. The key will be used to encrypt the target secret value. If key name is not specified, the account default protection key is used
    Name string
    Target name
    TargetGcpId string
    The ID of this resource.
    UseGwCloudIdentity bool
    Use the GW's Cloud IAM
    description String
    Description of the object
    gcpKey String
    Base64-encoded service account private key text
    gcpSaEmail String
    GCP service account email
    key String
    Key name. The key will be used to encrypt the target secret value. If key name is not specified, the account default protection key is used
    name String
    Target name
    targetGcpId String
    The ID of this resource.
    useGwCloudIdentity Boolean
    Use the GW's Cloud IAM
    description string
    Description of the object
    gcpKey string
    Base64-encoded service account private key text
    gcpSaEmail string
    GCP service account email
    key string
    Key name. The key will be used to encrypt the target secret value. If key name is not specified, the account default protection key is used
    name string
    Target name
    targetGcpId string
    The ID of this resource.
    useGwCloudIdentity boolean
    Use the GW's Cloud IAM
    description str
    Description of the object
    gcp_key str
    Base64-encoded service account private key text
    gcp_sa_email str
    GCP service account email
    key str
    Key name. The key will be used to encrypt the target secret value. If key name is not specified, the account default protection key is used
    name str
    Target name
    target_gcp_id str
    The ID of this resource.
    use_gw_cloud_identity bool
    Use the GW's Cloud IAM
    description String
    Description of the object
    gcpKey String
    Base64-encoded service account private key text
    gcpSaEmail String
    GCP service account email
    key String
    Key name. The key will be used to encrypt the target secret value. If key name is not specified, the account default protection key is used
    name String
    Target name
    targetGcpId String
    The ID of this resource.
    useGwCloudIdentity Boolean
    Use the GW's Cloud IAM

    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