Skip to content

Commit

Permalink
tag to label added resource
Browse files Browse the repository at this point in the history
  • Loading branch information
shireesh-illumio committed Nov 27, 2024
1 parent b72861f commit f4febf5
Show file tree
Hide file tree
Showing 8 changed files with 2,204 additions and 517 deletions.
1,900 changes: 1,384 additions & 516 deletions api/illumio/cloud/config/v1/config.pb.go

Large diffs are not rendered by default.

54 changes: 54 additions & 0 deletions api/illumio/cloud/config/v1/config.proto
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ service ConfigService {
rpc ReadAwsFlowLogsS3Bucket(ReadAwsFlowLogsS3BucketRequest) returns (ReadAwsFlowLogsS3BucketResponse);
rpc UpdateAwsFlowLogsS3Bucket(UpdateAwsFlowLogsS3BucketRequest) returns (UpdateAwsFlowLogsS3BucketResponse);
rpc DeleteAwsFlowLogsS3Bucket(DeleteAwsFlowLogsS3BucketRequest) returns (google.protobuf.Empty);
rpc CreateAwsTagToLabel(CreateAwsTagToLabelRequest) returns (CreateAwsTagToLabelResponse);
rpc ReadAwsTagToLabel(ReadAwsTagToLabelRequest) returns (ReadAwsTagToLabelResponse);
rpc UpdateAwsTagToLabel(UpdateAwsTagToLabelRequest) returns (UpdateAwsTagToLabelResponse);
rpc DeleteAwsTagToLabel(DeleteAwsTagToLabelRequest) returns (google.protobuf.Empty);
rpc CreateAzureFlowLogsStorageAccount(CreateAzureFlowLogsStorageAccountRequest) returns (CreateAzureFlowLogsStorageAccountResponse);
rpc ReadAzureFlowLogsStorageAccount(ReadAzureFlowLogsStorageAccountRequest) returns (ReadAzureFlowLogsStorageAccountResponse);
rpc UpdateAzureFlowLogsStorageAccount(UpdateAzureFlowLogsStorageAccountRequest) returns (UpdateAzureFlowLogsStorageAccountResponse);
Expand Down Expand Up @@ -99,6 +103,56 @@ message UpdateAwsFlowLogsS3BucketResponse {
message DeleteAwsFlowLogsS3BucketRequest {
string id = 1;
}
message AwsTagToLabelCloudTagsInstance {
string key = 1;
string cloud = 2;
}
message AwsTagToLabelIcon {
string name = 1;
string background_color = 2;
string foreground_color = 3;
}
message CreateAwsTagToLabelRequest {
repeated AwsTagToLabelCloudTagsInstance cloud_tags = 2;
AwsTagToLabelIcon icon = 3;
string key = 4;
string name = 5;
}
message CreateAwsTagToLabelResponse {
string id = 1;
repeated AwsTagToLabelCloudTagsInstance cloud_tags = 2;
AwsTagToLabelIcon icon = 3;
string key = 4;
string name = 5;
}
message ReadAwsTagToLabelRequest {
string id = 1;
}
message ReadAwsTagToLabelResponse {
string id = 1;
repeated AwsTagToLabelCloudTagsInstance cloud_tags = 2;
AwsTagToLabelIcon icon = 3;
string key = 4;
string name = 5;
}
message UpdateAwsTagToLabelRequest {
string id = 1;
repeated AwsTagToLabelCloudTagsInstance cloud_tags = 2;
AwsTagToLabelIcon icon = 3;
string key = 4;
string name = 5;
google.protobuf.FieldMask update_mask = 6;
}
message UpdateAwsTagToLabelResponse {
string id = 1;
repeated AwsTagToLabelCloudTagsInstance cloud_tags = 2;
AwsTagToLabelIcon icon = 3;
string key = 4;
string name = 5;
}
message DeleteAwsTagToLabelRequest {
string id = 1;
}
message CreateAzureFlowLogsStorageAccountRequest {
string storage_account_resource_id = 2;
string subscription_id = 3;
Expand Down
152 changes: 152 additions & 0 deletions api/illumio/cloud/config/v1/config_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api/illumio/cloud/config/v1/tags.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"resource/aws_account":{"account_id":2,"account_type":3,"id":1,"management_account_id":4,"mode":5,"name":6,"organization_account_id":11,"organization_id":7,"organization_master_account_id":12,"role_arn":8,"role_external_id":9,"update_mask":10},"resource/aws_flow_logs_s3_bucket":{"account_id":2,"id":1,"s3_bucket_arn":3,"update_mask":4},"resource/azure_flow_logs_storage_account":{"id":1,"storage_account_resource_id":2,"subscription_id":3,"update_mask":4},"resource/azure_subscription":{"client_id":2,"client_secret":3,"id":1,"mode":4,"name":5,"subscription_id":6,"tenant_id":7,"update_mask":8},"resource/k8s_cluster_onboarding_credential":{"client_id":2,"client_secret":3,"created_at":4,"description":5,"id":1,"illumio_region":6,"name":7,"update_mask":8}}
{"resource/aws_account":{"account_id":2,"account_type":3,"id":1,"management_account_id":4,"mode":5,"name":6,"organization_account_id":11,"organization_id":7,"organization_master_account_id":12,"role_arn":8,"role_external_id":9,"update_mask":10},"resource/aws_flow_logs_s3_bucket":{"account_id":2,"id":1,"s3_bucket_arn":3,"update_mask":4},"resource/aws_tag_to_label":{"cloud_tags":2,"icon":3,"id":1,"key":4,"name":5,"update_mask":6},"resource/azure_flow_logs_storage_account":{"id":1,"storage_account_resource_id":2,"subscription_id":3,"update_mask":4},"resource/azure_subscription":{"client_id":2,"client_secret":3,"id":1,"mode":4,"name":5,"subscription_id":6,"tenant_id":7,"update_mask":8},"resource/k8s_cluster_onboarding_credential":{"client_id":2,"client_secret":3,"created_at":4,"description":5,"id":1,"illumio_region":6,"name":7,"update_mask":8}}
1 change: 1 addition & 0 deletions api/schema/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ func (c *cloudSecureSchema) Resources() Resources {
azureFlowLogsStorageAccount,
azureSubscriptionResource,
k8sClusterOnboardingCredential,
awsTagToLabelResource,
}
sort.Sort(resources)

Expand Down
45 changes: 45 additions & 0 deletions docs/resources/aws_tag_to_label.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "illumio-cloudsecure_aws_tag_to_label Resource - illumio-cloudsecure"
subcategory: ""
description: |-
Maps AWS account tags to CloudSecure labels.
---

# illumio-cloudsecure_aws_tag_to_label (Resource)

Maps AWS account tags to CloudSecure labels.



<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `cloud_tags` (List of Object) List of AWS account tags to map to the CloudSecure label. (see [below for nested schema](#nestedatt--cloud_tags))
- `icon` (Object) Icon details. (see [below for nested schema](#nestedatt--icon))
- `key` (String) CloudSecure label key.
- `name` (String) CloudSecure label display name.

### Read-Only

- `id` (String) CloudSecure ID.

<a id="nestedatt--cloud_tags"></a>
### Nested Schema for `cloud_tags`

Required:

- `cloud` (String)
- `key` (String)


<a id="nestedatt--icon"></a>
### Nested Schema for `icon`

Required:

- `background_color` (String)
- `foreground_color` (String)
- `name` (String)
Loading

0 comments on commit f4febf5

Please sign in to comment.