Class CfnAgentSpace.AWSResourcesProperty.Builder
java.lang.Object
software.amazon.awscdk.services.securityagent.CfnAgentSpace.AWSResourcesProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAgentSpace.AWSResourcesProperty>
- Enclosing interface:
CfnAgentSpace.AWSResourcesProperty
@Stability(Stable)
public static final class CfnAgentSpace.AWSResourcesProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAgentSpace.AWSResourcesProperty>
A builder for
CfnAgentSpace.AWSResourcesProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnAgentSpace.AWSResourcesProperty.getIamRoles()lambdaFunctionArns(List<String> lambdaFunctionArns) Sets the value ofCfnAgentSpace.AWSResourcesProperty.getLambdaFunctionArns()Sets the value ofCfnAgentSpace.AWSResourcesProperty.getLogGroups()Sets the value ofCfnAgentSpace.AWSResourcesProperty.getS3Buckets()secretArns(List<String> secretArns) Sets the value ofCfnAgentSpace.AWSResourcesProperty.getSecretArns()Sets the value ofCfnAgentSpace.AWSResourcesProperty.getVpcs()vpcs(IResolvable vpcs) Sets the value ofCfnAgentSpace.AWSResourcesProperty.getVpcs()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
iamRoles
@Stability(Stable) public CfnAgentSpace.AWSResourcesProperty.Builder iamRoles(List<String> iamRoles) Sets the value ofCfnAgentSpace.AWSResourcesProperty.getIamRoles()- Parameters:
iamRoles- IAM role ARNs.- Returns:
this
-
lambdaFunctionArns
@Stability(Stable) public CfnAgentSpace.AWSResourcesProperty.Builder lambdaFunctionArns(List<String> lambdaFunctionArns) Sets the value ofCfnAgentSpace.AWSResourcesProperty.getLambdaFunctionArns()- Parameters:
lambdaFunctionArns- Lambda function ARNs used to retrieve tester credentials for pentests.- Returns:
this
-
logGroups
@Stability(Stable) public CfnAgentSpace.AWSResourcesProperty.Builder logGroups(List<String> logGroups) Sets the value ofCfnAgentSpace.AWSResourcesProperty.getLogGroups()- Parameters:
logGroups- CloudWatch log group ARNs.- Returns:
this
-
s3Buckets
@Stability(Stable) public CfnAgentSpace.AWSResourcesProperty.Builder s3Buckets(List<String> s3Buckets) Sets the value ofCfnAgentSpace.AWSResourcesProperty.getS3Buckets()- Parameters:
s3Buckets- S3 bucket ARNs.- Returns:
this
-
secretArns
@Stability(Stable) public CfnAgentSpace.AWSResourcesProperty.Builder secretArns(List<String> secretArns) Sets the value ofCfnAgentSpace.AWSResourcesProperty.getSecretArns()- Parameters:
secretArns- SecretsManager secret ARNs used to store tester credentials for pentests.- Returns:
this
-
vpcs
Sets the value ofCfnAgentSpace.AWSResourcesProperty.getVpcs()- Parameters:
vpcs- VPC configurations.- Returns:
this
-
vpcs
@Stability(Stable) public CfnAgentSpace.AWSResourcesProperty.Builder vpcs(List<? extends Object> vpcs) Sets the value ofCfnAgentSpace.AWSResourcesProperty.getVpcs()- Parameters:
vpcs- VPC configurations.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAgentSpace.AWSResourcesProperty>- Returns:
- a new instance of
CfnAgentSpace.AWSResourcesProperty - Throws:
NullPointerException- if any required attribute was not provided
-