# Cloud Security Compliance v1 API - Class TargetResourceConfig (1.0.0-beta05)

1.0.0-beta05 (latest) 1.0.0-beta04

    public sealed class TargetResourceConfig : IMessage<TargetResourceConfig>, IEquatable<TargetResourceConfig>, IDeepCloneable<TargetResourceConfig>, IBufferMessage, IMessage

Reference documentation and code samples for the Cloud Security Compliance v1 API class TargetResourceConfig.

The name of the target resource or the configuration that's required to
create a new target resource.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> TargetResourceConfig

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[TargetResourceConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudSecurityCompliance.V1/latest/Google.Cloud.CloudSecurityCompliance.V1.TargetResourceConfig), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[TargetResourceConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudSecurityCompliance.V1/latest/Google.Cloud.CloudSecurityCompliance.V1.TargetResourceConfig), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[TargetResourceConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudSecurityCompliance.V1/latest/Google.Cloud.CloudSecurityCompliance.V1.TargetResourceConfig), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.CloudSecurityCompliance.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudSecurityCompliance.V1/latest/Google.Cloud.CloudSecurityCompliance.V1)

## Assembly

Google.Cloud.CloudSecurityCompliance.V1.dll

## Constructors

### TargetResourceConfig()

    public TargetResourceConfig()

### TargetResourceConfig(TargetResourceConfig)

    public TargetResourceConfig(TargetResourceConfig other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudSecurityCompliance.V1/latest/Google.Cloud.CloudSecurityCompliance.V1.TargetResourceConfig` |

## Properties

### ExistingTargetResource

    public string ExistingTargetResource { get; set; }

Optional. The resource hierarchy node, in one of the following formats:

- `organizations/{organizationID}`
- `folders/{folderID}`
- `projects/{projectID}`

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### HasExistingTargetResource

    public bool HasExistingTargetResource { get; }

Gets whether the "existing_target_resource" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### ResourceConfigCase

    public TargetResourceConfig.ResourceConfigOneofCase ResourceConfigCase { get; }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudSecurityCompliance.V1/latest/Google.Cloud.CloudSecurityCompliance.V1.TargetResourceConfighttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudSecurityCompliance.V1/latest/Google.Cloud.CloudSecurityCompliance.V1.TargetResourceConfig.ResourceConfigOneofCase` |   |

### TargetResourceCreationConfig

    public TargetResourceCreationConfig TargetResourceCreationConfig { get; set; }

Optional. The details that are required to create a resource and use
that resource as the target resource for deployment.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudSecurityCompliance.V1/latest/Google.Cloud.CloudSecurityCompliance.V1.TargetResourceCreationConfig` |   |