Interface TrailProperties.Builder

    • Method Detail

      • cloudTrailArn

        TrailProperties.Builder cloudTrailArn​(String cloudTrailArn)

        Specifies the ARN of the trail. The format of a trail ARN is arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail.

        Parameters:
        cloudTrailArn - Specifies the ARN of the trail. The format of a trail ARN is arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • regions

        TrailProperties.Builder regions​(Collection<String> regions)

        A list of regions to get CloudTrail data from and analyze to generate a policy.

        Parameters:
        regions - A list of regions to get CloudTrail data from and analyze to generate a policy.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • regions

        TrailProperties.Builder regions​(String... regions)

        A list of regions to get CloudTrail data from and analyze to generate a policy.

        Parameters:
        regions - A list of regions to get CloudTrail data from and analyze to generate a policy.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • allRegions

        TrailProperties.Builder allRegions​(Boolean allRegions)

        Possible values are true or false. If set to true, IAM Access Analyzer retrieves CloudTrail data from all regions to analyze and generate a policy.

        Parameters:
        allRegions - Possible values are true or false. If set to true, IAM Access Analyzer retrieves CloudTrail data from all regions to analyze and generate a policy.
        Returns:
        Returns a reference to this object so that method calls can be chained together.