public String allowCrossAccountAccessExample() {
                IamPolicy policy = IamPolicy.builder()
                                .addStatement(b -> b
                                                .effect(IamEffect.ALLOW)
                                                .addPrincipal(IamPrincipalType.AWS, "111122223333")
                                                .addAction("s3:PutObject")
                                                .addResource("arn:aws:s3:::DOC-EXAMPLE-BUCKET/*")
                                                .addCondition(b1 -> b1
                                                                .operator(IamConditionOperator.STRING_EQUALS)
                                                                .key("s3:x-amz-acl")
                                                                .value("bucket-owner-full-control")))
                                .build();
                return policy.toJson(IamPolicyWriter.builder()
                                .prettyPrint(true).build());
        }
@Test
    @Tag("IntegrationTest")
    void allowCrossAccountAccessExample() {
        String policyJson = examples.allowCrossAccountAccessExample();
        logger.info(policyJson);
        analyze(policyJson, PolicyType.RESOURCE_POLICY);
    }