Interface StartPolicyPreviewJobRequest.Builder
- All Superinterfaces:
AccessAnalyzerRequest.Builder,AwsRequest.Builder,Buildable,CopyableBuilder<StartPolicyPreviewJobRequest.Builder,,StartPolicyPreviewJobRequest> SdkBuilder<StartPolicyPreviewJobRequest.Builder,,StartPolicyPreviewJobRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
StartPolicyPreviewJobRequest
-
Method Summary
Modifier and TypeMethodDescriptionclientToken(String clientToken) A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.The end of the analysis window.outputS3Uri(String outputS3Uri) The Amazon S3 URI where the completed analysis report will be stored.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.policyConfigurations(Collection<PolicyConfiguration> policyConfigurations) A list of policy configurations to analyze.policyConfigurations(Consumer<PolicyConfiguration.Builder>... policyConfigurations) A list of policy configurations to analyze.policyConfigurations(PolicyConfiguration... policyConfigurations) A list of policy configurations to analyze.The start of the CloudTrail event analysis window.Methods inherited from interface software.amazon.awssdk.services.accessanalyzer.model.AccessAnalyzerRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
policyConfigurations
StartPolicyPreviewJobRequest.Builder policyConfigurations(Collection<PolicyConfiguration> policyConfigurations) A list of policy configurations to analyze. Currently limited to one configuration per request. Each configuration specifies the job type, target ID, and policy documents to test.
- Parameters:
policyConfigurations- A list of policy configurations to analyze. Currently limited to one configuration per request. Each configuration specifies the job type, target ID, and policy documents to test.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyConfigurations
StartPolicyPreviewJobRequest.Builder policyConfigurations(PolicyConfiguration... policyConfigurations) A list of policy configurations to analyze. Currently limited to one configuration per request. Each configuration specifies the job type, target ID, and policy documents to test.
- Parameters:
policyConfigurations- A list of policy configurations to analyze. Currently limited to one configuration per request. Each configuration specifies the job type, target ID, and policy documents to test.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyConfigurations
StartPolicyPreviewJobRequest.Builder policyConfigurations(Consumer<PolicyConfiguration.Builder>... policyConfigurations) A list of policy configurations to analyze. Currently limited to one configuration per request. Each configuration specifies the job type, target ID, and policy documents to test.
This is a convenience method that creates an instance of thePolicyConfiguration.Builderavoiding the need to create one manually viaPolicyConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topolicyConfigurations(List<PolicyConfiguration>).- Parameters:
policyConfigurations- a consumer that will call methods onPolicyConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
startTime
The start of the CloudTrail event analysis window. The analysis will evaluate events from this time forward.
- Parameters:
startTime- The start of the CloudTrail event analysis window. The analysis will evaluate events from this time forward.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
endTime
The end of the analysis window. If not specified, defaults to the time of the request. The analysis will evaluate CloudTrail events up to this time.
- Parameters:
endTime- The end of the analysis window. If not specified, defaults to the time of the request. The analysis will evaluate CloudTrail events up to this time.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
outputS3Uri
The Amazon S3 URI where the completed analysis report will be stored. The Amazon S3 bucket must grant access to the IAM Access Analyzer service principal in its resource policy. The report will be stored at the path:
outputS3Uri/jobId/timestamp/.- Parameters:
outputS3Uri- The Amazon S3 URI where the completed analysis report will be stored. The Amazon S3 bucket must grant access to the IAM Access Analyzer service principal in its resource policy. The report will be stored at the path:outputS3Uri/jobId/timestamp/.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientToken
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Idempotency ensures that an API request completes only once. With an idempotent request, if the original request completes successfully, subsequent retries with the same client token return the result from the original successful request and have no additional effect.
- Parameters:
clientToken- A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Idempotency ensures that an API request completes only once. With an idempotent request, if the original request completes successfully, subsequent retries with the same client token return the result from the original successful request and have no additional effect.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
StartPolicyPreviewJobRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
StartPolicyPreviewJobRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-