-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Address Polaris AWS API changes (#83)
- Loading branch information
1 parent
1936263
commit 8b0c9ee
Showing
8 changed files
with
104 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
pkg/polaris/graphql/aws/queries/all_vpcs_by_region_from_aws.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
pkg/polaris/graphql/aws/queries/all_vpcs_by_region_from_aws_v0.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
query RubrikPolarisSDKRequest($awsAccountRubrikId: UUID!, $region: AwsNativeRegionEnum!) { | ||
allVpcsByRegionFromAws(awsAccountRubrikId: $awsAccountRubrikId, region: $region) { | ||
id | ||
name | ||
subnets { | ||
id | ||
name | ||
availabilityZone | ||
} | ||
securityGroups { | ||
id | ||
name | ||
} | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
pkg/polaris/graphql/aws/queries/finalize_aws_cloud_account_protection.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
pkg/polaris/graphql/aws/queries/finalize_aws_cloud_account_protection_v1.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
mutation RubrikPolarisSDKRequest($nativeId: String!, $accountName: String!, $awsRegions: [AwsCloudAccountRegionEnum!], $externalId: String!, $featureVersion: [AwsCloudAccountFeatureVersionInput!]!, $feature: CloudAccountFeature!, $stackName: String!) { | ||
finalizeAwsCloudAccountProtection(input: { | ||
action: CREATE, | ||
awsChildAccounts: [{ | ||
accountName: $accountName, | ||
nativeId: $nativeId, | ||
}], | ||
awsRegions: $awsRegions, | ||
externalId: $externalId, | ||
featureVersion: $featureVersion, | ||
features: [$feature], | ||
stackName: $stackName, | ||
}) { | ||
awsChildAccounts { | ||
accountName | ||
nativeId | ||
message | ||
} | ||
message | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
pkg/polaris/graphql/aws/queries/update_aws_cloud_account.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
pkg/polaris/graphql/aws/queries/update_aws_cloud_account_v1.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
mutation RubrikPolarisSDKRequest($action: CloudAccountActionEnum!, $cloudAccountId: UUID!, $awsRegions: [AwsCloudAccountRegionEnum!]!, $feature: CloudAccountFeature!) { | ||
updateAwsCloudAccount(input: {action: $action, cloudAccountId: $cloudAccountId, awsRegions: $awsRegions, feature: $feature}) { | ||
message | ||
} | ||
} |