Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions client/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ const (
GlueService AWSService = "glue"
GuardDutyService AWSService = "guardduty"
IamService AWSService = "iam"
IdentityStoreService AWSService = "identitystore"
RedshiftService AWSService = "redshift"
Route53Service AWSService = "route53"
S3Service AWSService = "s3"
Expand Down
40 changes: 40 additions & 0 deletions client/mocks/apigatewayv2.go

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

20 changes: 20 additions & 0 deletions client/mocks/backup.go

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

40 changes: 40 additions & 0 deletions client/mocks/ec2.go

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

20 changes: 20 additions & 0 deletions client/mocks/s3.go

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

20 changes: 20 additions & 0 deletions client/mocks/sagemaker.go

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

2 changes: 2 additions & 0 deletions client/services/apigatewayv2.go

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

1 change: 1 addition & 0 deletions client/services/backup.go

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

2 changes: 2 additions & 0 deletions client/services/ec2.go

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

1 change: 1 addition & 0 deletions client/services/s3.go

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

1 change: 1 addition & 0 deletions client/services/sagemaker.go

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

31 changes: 30 additions & 1 deletion codegen/recipes/identitystore.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,47 @@ package recipes

import (
types "github.com/aws/aws-sdk-go-v2/service/identitystore/types"
"github.com/cloudquery/plugin-sdk/codegen"
"github.com/cloudquery/plugin-sdk/schema"
)

func IdentitystoreResources() []*Resource {
resources := []*Resource{
{
SubService: "groups",
Struct: &types.Group{},
Relations: []string{"GroupMemberships()"},
// Relations: []string{"GroupMemberships()"},
PreResourceResolver: "getGroup",
ExtraColumns: []codegen.ColumnDefinition{
{
Name: "arn",
Type: schema.TypeString,
Resolver: `resolveIdentityStoreGroupArn`,
Options: schema.ColumnCreationOptions{PrimaryKey: true},
},
{
Name: ohResourceTypeColumn,
Type: schema.TypeString,
Resolver: `client.StaticValueResolver("AWS::IdentityStore::Group")`,
},
},
},
{
SubService: "users",
Struct: &types.User{},
ExtraColumns: []codegen.ColumnDefinition{
{
Name: "arn",
Type: schema.TypeString,
Resolver: `resolveIdentityStoreUserArn`,
Options: schema.ColumnCreationOptions{PrimaryKey: true},
},
{
Name: ohResourceTypeColumn,
Type: schema.TypeString,
Resolver: `client.StaticValueResolver("AWS::IdentityStore::User")`,
},
},
},
{
SubService: "group_memberships",
Expand Down
2 changes: 1 addition & 1 deletion docs/tables/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,8 @@
- [aws_iam_user_policies](aws_iam_user_policies.md)
- [aws_iam_virtual_mfa_devices](aws_iam_virtual_mfa_devices.md)
- [aws_identitystore_groups](aws_identitystore_groups.md)
- [aws_identitystore_group_memberships](aws_identitystore_group_memberships.md)
- [aws_identitystore_users](aws_identitystore_users.md)
- [aws_identitystore_group_memberships](aws_identitystore_group_memberships.md)
- [aws_inspector2_findings](aws_inspector2_findings.md)
- [aws_inspector_findings](aws_inspector_findings.md)
- [aws_iot_billing_groups](aws_iot_billing_groups.md)
Expand Down
1 change: 1 addition & 0 deletions docs/tables/aws_apigateway_domain_names.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,6 @@ The following tables depend on aws_apigateway_domain_names:
|regional_certificate_name|String|
|regional_domain_name|String|
|regional_hosted_zone_id|String|
|routing_mode|String|
|security_policy|String|
|tags|JSON|
2 changes: 2 additions & 0 deletions docs/tables/aws_apigatewayv2_domain_names.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ The following tables depend on aws_apigatewayv2_domain_names:
|arn|String|
|domain_name|String|
|api_mapping_selection_expression|String|
|domain_name_arn|String|
|domain_name_configurations|JSON|
|mutual_tls_authentication|JSON|
|routing_mode|String|
|tags|JSON|
1 change: 1 addition & 0 deletions docs/tables/aws_athena_work_group_query_executions.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ This table depends on [aws_athena_work_groups](aws_athena_work_groups.md).
|work_group_arn|String|
|engine_version|JSON|
|execution_parameters|StringArray|
|managed_query_results_configuration|JSON|
|query|String|
|query_execution_context|JSON|
|query_execution_id|String|
Expand Down
1 change: 1 addition & 0 deletions docs/tables/aws_backup_vault_recovery_points.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ This table depends on [aws_backup_vaults](aws_backup_vaults.md).
|iam_role_arn|String|
|index_status|String|
|index_status_message|String|
|initiation_date|Timestamp|
|is_encrypted|Bool|
|is_parent|Bool|
|last_restore_time|Timestamp|
Expand Down
1 change: 1 addition & 0 deletions docs/tables/aws_dynamodb_tables.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ The following tables depend on aws_dynamodb_tables:
|deletion_protection_enabled|Bool|
|global_secondary_indexes|JSON|
|global_table_version|String|
|global_table_witnesses|JSON|
|item_count|Int|
|key_schema|JSON|
|latest_stream_arn|String|
Expand Down
1 change: 1 addition & 0 deletions docs/tables/aws_ec2_eips.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,5 @@ The primary key for this table is **_cq_id**.
|public_ip|String|
|public_ipv4_pool|String|
|service_managed|String|
|subnet_id|String|
|tags|JSON|
1 change: 1 addition & 0 deletions docs/tables/aws_ec2_images.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ The primary key for this table is **arn**.
|deregistration_protection|String|
|description|String|
|ena_support|Bool|
|free_tier_eligible|Bool|
|hypervisor|String|
|image_allowed|Bool|
|image_id|String|
Expand Down
Loading