SecurityAgent / Client / update_agent_space
update_agent_space¶
- SecurityAgent.Client.update_agent_space(**kwargs)¶
Updates the configuration of an existing agent space, including its name, description, AWS resources, target domains, and code review settings.
See also: AWS API Documentation
Request Syntax
response = client.update_agent_space( agentSpaceId='string', name='string', description='string', awsResources={ 'vpcs': [ { 'vpcArn': 'string', 'securityGroupArns': [ 'string', ], 'subnetArns': [ 'string', ] }, ], 'logGroups': [ 'string', ], 's3Buckets': [ 'string', ], 'secretArns': [ 'string', ], 'lambdaFunctionArns': [ 'string', ], 'iamRoles': [ 'string', ] }, targetDomainIds=[ 'string', ], codeReviewSettings={ 'controlsScanning': True|False, 'generalPurposeScanning': True|False } )
- Parameters:
agentSpaceId (string) –
[REQUIRED]
The unique identifier of the agent space to update.
name (string) – The updated name of the agent space.
description (string) – The updated description of the agent space.
awsResources (dict) –
The updated AWS resources to associate with the agent space.
vpcs (list) –
The VPC configurations associated with the agent space.
(dict) –
The VPC configuration for a pentest, specifying the VPC, security groups, and subnets to use during testing.
vpcArn (string) –
The Amazon Resource Name (ARN) of the VPC.
securityGroupArns (list) –
The Amazon Resource Names (ARNs) of the security groups for the VPC configuration.
(string) –
ARN or ID of a security group.
subnetArns (list) –
The Amazon Resource Names (ARNs) of the subnets for the VPC configuration.
(string) –
ARN or ID of a subnet.
logGroups (list) –
The Amazon Resource Names (ARNs) of the CloudWatch log groups associated with the agent space.
(string) –
Log group ARN or name for agent space AWS resources.
s3Buckets (list) –
The Amazon Resource Names (ARNs) of the S3 buckets associated with the agent space.
(string) –
S3 bucket ARN or name for agent space AWS resources.
secretArns (list) –
The Amazon Resource Names (ARNs) of the Secrets Manager secrets associated with the agent space.
(string) –
Secret ARN or name for agent space AWS resources.
lambdaFunctionArns (list) –
The Amazon Resource Names (ARNs) of the Lambda functions associated with the agent space.
(string) –
Lambda function ARN or name for agent space AWS resources.
iamRoles (list) –
The IAM roles associated with the agent space.
(string) –
ARN of an IAM role that the service can assume to access customer resources.
targetDomainIds (list) –
The updated list of target domain identifiers to associate with the agent space.
(string) –
codeReviewSettings (dict) –
The updated code review settings for the agent space.
controlsScanning (boolean) – [REQUIRED]
Indicates whether controls scanning is enabled for code reviews.
generalPurposeScanning (boolean) – [REQUIRED]
Indicates whether general-purpose scanning is enabled for code reviews.
- Return type:
dict
- Returns:
Response Syntax
{ 'agentSpaceId': 'string', 'name': 'string', 'description': 'string', 'awsResources': { 'vpcs': [ { 'vpcArn': 'string', 'securityGroupArns': [ 'string', ], 'subnetArns': [ 'string', ] }, ], 'logGroups': [ 'string', ], 's3Buckets': [ 'string', ], 'secretArns': [ 'string', ], 'lambdaFunctionArns': [ 'string', ], 'iamRoles': [ 'string', ] }, 'targetDomainIds': [ 'string', ], 'codeReviewSettings': { 'controlsScanning': True|False, 'generalPurposeScanning': True|False }, 'createdAt': datetime(2015, 1, 1), 'updatedAt': datetime(2015, 1, 1) }
Response Structure
(dict) –
Output for the UpdateAgentSpace operation.
agentSpaceId (string) –
The unique identifier of the updated agent space.
name (string) –
The name of the agent space.
description (string) –
The description of the agent space.
awsResources (dict) –
The AWS resources associated with the agent space.
vpcs (list) –
The VPC configurations associated with the agent space.
(dict) –
The VPC configuration for a pentest, specifying the VPC, security groups, and subnets to use during testing.
vpcArn (string) –
The Amazon Resource Name (ARN) of the VPC.
securityGroupArns (list) –
The Amazon Resource Names (ARNs) of the security groups for the VPC configuration.
(string) –
ARN or ID of a security group.
subnetArns (list) –
The Amazon Resource Names (ARNs) of the subnets for the VPC configuration.
(string) –
ARN or ID of a subnet.
logGroups (list) –
The Amazon Resource Names (ARNs) of the CloudWatch log groups associated with the agent space.
(string) –
Log group ARN or name for agent space AWS resources.
s3Buckets (list) –
The Amazon Resource Names (ARNs) of the S3 buckets associated with the agent space.
(string) –
S3 bucket ARN or name for agent space AWS resources.
secretArns (list) –
The Amazon Resource Names (ARNs) of the Secrets Manager secrets associated with the agent space.
(string) –
Secret ARN or name for agent space AWS resources.
lambdaFunctionArns (list) –
The Amazon Resource Names (ARNs) of the Lambda functions associated with the agent space.
(string) –
Lambda function ARN or name for agent space AWS resources.
iamRoles (list) –
The IAM roles associated with the agent space.
(string) –
ARN of an IAM role that the service can assume to access customer resources.
targetDomainIds (list) –
The list of target domain identifiers associated with the agent space.
(string) –
codeReviewSettings (dict) –
The code review settings for the agent space.
controlsScanning (boolean) –
Indicates whether controls scanning is enabled for code reviews.
generalPurposeScanning (boolean) –
Indicates whether general-purpose scanning is enabled for code reviews.
createdAt (datetime) –
The date and time the agent space was created, in UTC format.
updatedAt (datetime) –
The date and time the agent space was last updated, in UTC format.