We need this because if codebuild project is provisioning a resource for an AWS service. The resource policy of a AWS service will expect the codebuild project role has permissions to do the needful.
For example, the if codebuild project is creating an index in OpenSearch serverless then data access policy of OpenSearch serverless expects the codebuild project role is mentioned as principal which has access to create index.
Description of changes
Created a public readonly map which has jobname and jobRunnerRoleArn
Issue # (if applicable)
Reason for this change
We need this because if codebuild project is provisioning a resource for an AWS service. The resource policy of a AWS service will expect the codebuild project role has permissions to do the needful. For example, the if codebuild project is creating an index in OpenSearch serverless then data access policy of OpenSearch serverless expects the codebuild project role is mentioned as principal which has access to create index.
Description of changes
Created a public readonly map which has jobname and jobRunnerRoleArn
Description of how you validated changes
added unit test
Checklist
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the project license.