Skip to content

Cloud Connect AWS

deprecated

The Cloud Connect AWS service collection has been superseded by the CSPM Registration service collection and is now deprecated. Developers should move code over to use the new operations available within the updated collection.

This service collection is deprecated.

LanguageLast Update
Pythonv1.6.5
PowerShell
Gov0.22.0
TypeScriptv0.6.0
Rustv0.7.1
Rubyv1.4.0

This service collection has code examples posted to the repository.



OperationDescription
CreateOrUpdateAWSSettings
create_or_update_aws_settings
Create or update Global Settings which are applicable to all provisioned AWS accounts
DeleteAWSAccounts
delete_aws_accounts
Delete a set of AWS Accounts by specifying their IDs
GetAWSAccounts
get_aws_accounts
Retrieve a set of AWS Accounts by specifying their IDs
GetAWSSettings
get_aws_settings
Retrieve a set of Global Settings which are applicable to all provisioned AWS accounts
ProvisionAWSAccounts
provision_aws_accounts
Provision AWS Accounts by specifying details about the accounts to provision
QueryAWSAccounts
query_aws_accounts
Search for provisioned AWS Accounts by providing an FQL filter and paging details.
QueryAWSAccountsForIDs
query_aws_accounts_for_ids
Search for provisioned AWS Accounts by providing an FQL filter and paging details.
UpdateAWSAccounts
update_aws_accounts
Update AWS Accounts by specifying the ID of the account and details to update
VerifyAWSAccountAccess
verify_aws_account_access
Performs an Access Verification check on the specified AWS Account IDs

Create or update Global Settings which are applicable to all provisioned AWS accounts

Method POST
Route /cloud-connect-aws/entities/settings/v1
Scope AWS accounts: WRITE
PEP 8 create_or_update_aws_settings
body body · dictionary
Full body payload as JSON formatted dictionary.
resources body · array
cloudtrail_bucket_owner_id body · string
AWS IAM ID for bucket owner.
static_external_id body · string
AWS cross-account role secret.
from falconpy import CloudConnectAWS
falcon = CloudConnectAWS(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.create_or_update_aws_settings(cloudtrail_bucket_owner_id="string",
static_external_id="string")
print(response)
[
{
"cloudtrail_bucket_owner_id": "string",
"created_timestamp": "string",
"last_modified_timestamp": "string",
"static_external_id": "string"
}
]


Delete a set of AWS Accounts by specifying their IDs

Method DELETE
Route /cloud-connect-aws/entities/accounts/v1
Scope AWS accounts: WRITE
PEP 8 delete_aws_accounts
ids query · string or list of strings
IDs of accounts to remove
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import CloudConnectAWS
falcon = CloudConnectAWS(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.delete_aws_accounts(ids=id_list)
print(response)
{
"errors": [
{
"code": 0,
"id": "string",
"message": "string"
}
],
"meta": {
"pagination": {
"limit": 0,
"offset": 0,
"total": 0
},
"powered_by": "string",
"query_time": 0.0,
"trace_id": "string",
"writes": {
"resources_affected": 0
}
}
}


Retrieve a set of AWS Accounts by specifying their IDs

Method GET
Route /cloud-connect-aws/entities/accounts/v1
Scope AWS accounts: READ
PEP 8 get_aws_accounts
ids query · string or list of strings
IDs of accounts to retrieve details
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import CloudConnectAWS
falcon = CloudConnectAWS(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.get_aws_accounts(ids=id_list)
print(response)
[
{
"access_health": {},
"alias": "string",
"cid": "string",
"cloudformation_stack_id": "string",
"cloudformation_url": "string",
"cloudtrail_bucket_owner_id": "string",
"cloudtrail_bucket_region": "string",
"created_timestamp": "string",
"external_id": "string",
"iam_role_arn": "string",
"id": "string",
"last_modified_timestamp": "string",
"last_scanned_timestamp": "string",
"policy_version": "string",
"provisioning_state": "string",
"rate_limit_reqs": 0,
"rate_limit_time": 0,
"template_version": "string"
}
]


Retrieve a set of Global Settings which are applicable to all provisioned AWS accounts

Method GET
Route /cloud-connect-aws/combined/settings/v1
Scope AWS accounts: READ
PEP 8 get_aws_settings
from falconpy import CloudConnectAWS
falcon = CloudConnectAWS(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.get_aws_settings()
print(response)
[
{
"cloudtrail_bucket_owner_id": "string",
"created_timestamp": "string",
"last_modified_timestamp": "string",
"static_external_id": "string"
}
]


Provision AWS Accounts by specifying details about the accounts to provision

Method POST
Route /cloud-connect-aws/entities/accounts/v1
Scope AWS accounts: WRITE
PEP 8 provision_aws_accounts
body body · dictionary
Full body payload as JSON formatted dictionary.
resources body · array
mode query · string
Mode for provisioning. Allowed values are:
Available values (2)
cloudformationmanual
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
cloudtrail_bucket_owner_id body · string
AWS IAM ID for bucket owner.
cloudtrail_bucket_region body · string
AWS region for bucket.
external_id body · string
AWS cross-account role secret.
iam_role_arn body · string
ARN used for cross-account role.
id body · string
AWS account ID.
rate_limit_reqs body · integer
rate_limit_time body · integer
from falconpy import CloudConnectAWS
falcon = CloudConnectAWS(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.provision_aws_accounts(cloudtrail_bucket_owner_id="string",
cloudtrail_bucket_region="string",
external_id="string",
iam_role_arn="string",
id="string",
mode="string",
rate_limit_reqs=integer,
rate_limit_time=integer)
print(response)
[
{
"access_health": {},
"alias": "string",
"cid": "string",
"cloudformation_stack_id": "string",
"cloudformation_url": "string",
"cloudtrail_bucket_owner_id": "string",
"cloudtrail_bucket_region": "string",
"created_timestamp": "string",
"external_id": "string",
"iam_role_arn": "string",
"id": "string",
"last_modified_timestamp": "string",
"last_scanned_timestamp": "string",
"policy_version": "string",
"provisioning_state": "string",
"rate_limit_reqs": 0,
"rate_limit_time": 0,
"template_version": "string"
}
]


Search for provisioned AWS Accounts by providing an FQL filter and paging details.

Method GET
Route /cloud-connect-aws/combined/accounts/v1
Scope AWS accounts: READ
PEP 8 query_aws_accounts
limit query · integer
The maximum records to return. [1-1000]. Defaults to 100.
offset query · integer
The offset to start retrieving records from
sort query · string
The property to sort by (e.g. alias.desc or state.asc).
filter query · string
The filter expression that should be used to limit the results.
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import CloudConnectAWS
falcon = CloudConnectAWS(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.query_aws_accounts(filter="string",
limit=integer,
offset=integer,
sort="string")
print(response)
[
{
"access_health": {},
"alias": "string",
"cid": "string",
"cloudformation_stack_id": "string",
"cloudformation_url": "string",
"cloudtrail_bucket_owner_id": "string",
"cloudtrail_bucket_region": "string",
"created_timestamp": "string",
"external_id": "string",
"iam_role_arn": "string",
"id": "string",
"last_modified_timestamp": "string",
"last_scanned_timestamp": "string",
"policy_version": "string",
"provisioning_state": "string",
"rate_limit_reqs": 0,
"rate_limit_time": 0,
"template_version": "string"
}
]


Search for provisioned AWS Accounts by providing an FQL filter and paging details.

Method GET
Route /cloud-connect-aws/queries/accounts/v1
Scope AWS accounts: READ
PEP 8 query_aws_accounts_for_ids
limit query · integer
The maximum records to return. [1-1000]. Defaults to 100.
offset query · integer
The offset to start retrieving records from
sort query · string
The property to sort by (e.g. alias.desc or state.asc).
filter query · string
The filter expression that should be used to limit the results.
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import CloudConnectAWS
falcon = CloudConnectAWS(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.query_aws_accounts_for_ids(filter="string",
limit=integer,
offset=integer,
sort="string")
print(response)
[
"string"
]


Update AWS Accounts by specifying the ID of the account and details to update

Method PATCH
Route /cloud-connect-aws/entities/accounts/v1
Scope AWS accounts: WRITE
PEP 8 update_aws_accounts
body body · dictionary
Full body payload as JSON formatted dictionary.
resources body · array
cloudtrail_bucket_owner_id body · string
AWS IAM ID for bucket owner.
cloudtrail_bucket_region body · string
AWS region for bucket.
external_id body · string
AWS cross-account role secret.
iam_role_arn body · string
ARN used for cross-account role.
id body · string
AWS account ID.
rate_limit_reqs body · integer
rate_limit_time body · integer
from falconpy import CloudConnectAWS
falcon = CloudConnectAWS(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.update_aws_accounts(cloudtrail_bucket_owner_id="string",
cloudtrail_bucket_region="string",
external_id="string",
iam_role_arn="string",
id="string",
rate_limit_reqs=integer,
rate_limit_time=integer)
print(response)
[
{
"access_health": {},
"alias": "string",
"cid": "string",
"cloudformation_stack_id": "string",
"cloudformation_url": "string",
"cloudtrail_bucket_owner_id": "string",
"cloudtrail_bucket_region": "string",
"created_timestamp": "string",
"external_id": "string",
"iam_role_arn": "string",
"id": "string",
"last_modified_timestamp": "string",
"last_scanned_timestamp": "string",
"policy_version": "string",
"provisioning_state": "string",
"rate_limit_reqs": 0,
"rate_limit_time": 0,
"template_version": "string"
}
]


Performs an Access Verification check on the specified AWS Account IDs

Method POST
Route /cloud-connect-aws/entities/verify-account-access/v1
Scope AWS accounts: WRITE
PEP 8 verify_aws_account_access
ids query · string or list of strings
IDs of accounts to verify access on
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import CloudConnectAWS
falcon = CloudConnectAWS(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.verify_aws_account_access(ids=id_list)
print(response)
[
{
"id": "string",
"reason": "string",
"successful": false
}
]