public AuthPolicyBuilder()

in blueprints/dotnet/src/APIGatewayAuthorizerHandler/AuthPolicyBuilder.cs [57:76]


        public AuthPolicyBuilder(string principalId, string awsAccountId, ApiOptions apiOptions)
        {
            PrincipalId = principalId;
            AwsAccountId = awsAccountId;
            
            // Replace the placeholder value with a default API Gateway API id to be used in the policy. 
            // Beware of using '*' since it will not simply mean any API Gateway API id, because stars will greedily expand over '/' or other separators. 
            // See https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_resource.html for more details. 
            _restApiId = string.IsNullOrWhiteSpace(apiOptions?.RestApiId) ? "<<restApiId>>" : apiOptions.RestApiId;

            // Replace the placeholder value with a default region to be used in the policy. 
            // Beware of using '*' since it will not simply mean any region, because stars will greedily expand over '/' or other separators. 
            // See https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_resource.html for more details. 
            _region = string.IsNullOrWhiteSpace(apiOptions?.Region) ? "<<region>>" : apiOptions.Region;

            // Replace the placeholder value with a default stage to be used in the policy. 
            // Beware of using '*' since it will not simply mean any stage, because stars will greedily expand over '/' or other separators. 
            // See https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_resource.html for more details. 
            _stage = string.IsNullOrWhiteSpace(apiOptions?.Stage) ? "<<stage>>" : apiOptions.Stage;
        }