// generated from terraform resource schema
import * as cdktf from 'cdktf';
/**
* Represents a {@link https://www.terraform.io/docs/providers/aws/r/api_gateway_method aws_api_gateway_method}
*/
export class ApiGatewayMethod extends cdktf.TerraformResource {
    // =================
    // STATIC PROPERTIES
    // =================
    static tfResourceType = "aws_api_gateway_method";
    // ===========
    // INITIALIZER
    // ===========
    /**
    * Create a new {@link https://www.terraform.io/docs/providers/aws/r/api_gateway_method aws_api_gateway_method} Resource
    *
    * @param scope The scope in which to define this construct
    * @param id The scoped construct ID. Must be unique amongst siblings in the same scope
    * @param options ApiGatewayMethodConfig
    */
    constructor(scope, id, config) {
        super(scope, id, {
            terraformResourceType: 'aws_api_gateway_method',
            terraformGeneratorMetadata: {
                providerName: 'aws'
            },
            provider: config.provider,
            dependsOn: config.dependsOn,
            count: config.count,
            lifecycle: config.lifecycle
        });
        this._apiKeyRequired = config.apiKeyRequired;
        this._authorization = config.authorization;
        this._authorizationScopes = config.authorizationScopes;
        this._authorizerId = config.authorizerId;
        this._httpMethod = config.httpMethod;
        this._operationName = config.operationName;
        this._requestModels = config.requestModels;
        this._requestParameters = config.requestParameters;
        this._requestValidatorId = config.requestValidatorId;
        this._resourceId = config.resourceId;
        this._restApiId = config.restApiId;
    }
    // ==========
    // ATTRIBUTES
    // ==========
    // api_key_required - computed: false, optional: true, required: false
    _apiKeyRequired;
    get apiKeyRequired() {
        return this.getBooleanAttribute('api_key_required');
    }
    set apiKeyRequired(value) {
        this._apiKeyRequired = value;
    }
    resetApiKeyRequired() {
        this._apiKeyRequired = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get apiKeyRequiredInput() {
        return this._apiKeyRequired;
    }
    // authorization - computed: false, optional: false, required: true
    _authorization;
    get authorization() {
        return this.getStringAttribute('authorization');
    }
    set authorization(value) {
        this._authorization = value;
    }
    // Temporarily expose input value. Use with caution.
    get authorizationInput() {
        return this._authorization;
    }
    // authorization_scopes - computed: false, optional: true, required: false
    _authorizationScopes;
    get authorizationScopes() {
        return cdktf.Fn.tolist(this.getListAttribute('authorization_scopes'));
    }
    set authorizationScopes(value) {
        this._authorizationScopes = value;
    }
    resetAuthorizationScopes() {
        this._authorizationScopes = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get authorizationScopesInput() {
        return this._authorizationScopes;
    }
    // authorizer_id - computed: false, optional: true, required: false
    _authorizerId;
    get authorizerId() {
        return this.getStringAttribute('authorizer_id');
    }
    set authorizerId(value) {
        this._authorizerId = value;
    }
    resetAuthorizerId() {
        this._authorizerId = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get authorizerIdInput() {
        return this._authorizerId;
    }
    // http_method - computed: false, optional: false, required: true
    _httpMethod;
    get httpMethod() {
        return this.getStringAttribute('http_method');
    }
    set httpMethod(value) {
        this._httpMethod = value;
    }
    // Temporarily expose input value. Use with caution.
    get httpMethodInput() {
        return this._httpMethod;
    }
    // id - computed: true, optional: true, required: false
    get id() {
        return this.getStringAttribute('id');
    }
    // operation_name - computed: false, optional: true, required: false
    _operationName;
    get operationName() {
        return this.getStringAttribute('operation_name');
    }
    set operationName(value) {
        this._operationName = value;
    }
    resetOperationName() {
        this._operationName = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get operationNameInput() {
        return this._operationName;
    }
    // request_models - computed: false, optional: true, required: false
    _requestModels;
    get requestModels() {
        return this.getStringMapAttribute('request_models');
    }
    set requestModels(value) {
        this._requestModels = value;
    }
    resetRequestModels() {
        this._requestModels = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get requestModelsInput() {
        return this._requestModels;
    }
    // request_parameters - computed: false, optional: true, required: false
    _requestParameters;
    get requestParameters() {
        return this.getBooleanMapAttribute('request_parameters');
    }
    set requestParameters(value) {
        this._requestParameters = value;
    }
    resetRequestParameters() {
        this._requestParameters = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get requestParametersInput() {
        return this._requestParameters;
    }
    // request_validator_id - computed: false, optional: true, required: false
    _requestValidatorId;
    get requestValidatorId() {
        return this.getStringAttribute('request_validator_id');
    }
    set requestValidatorId(value) {
        this._requestValidatorId = value;
    }
    resetRequestValidatorId() {
        this._requestValidatorId = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get requestValidatorIdInput() {
        return this._requestValidatorId;
    }
    // resource_id - computed: false, optional: false, required: true
    _resourceId;
    get resourceId() {
        return this.getStringAttribute('resource_id');
    }
    set resourceId(value) {
        this._resourceId = value;
    }
    // Temporarily expose input value. Use with caution.
    get resourceIdInput() {
        return this._resourceId;
    }
    // rest_api_id - computed: false, optional: false, required: true
    _restApiId;
    get restApiId() {
        return this.getStringAttribute('rest_api_id');
    }
    set restApiId(value) {
        this._restApiId = value;
    }
    // Temporarily expose input value. Use with caution.
    get restApiIdInput() {
        return this._restApiId;
    }
    // =========
    // SYNTHESIS
    // =========
    synthesizeAttributes() {
        return {
            api_key_required: cdktf.booleanToTerraform(this._apiKeyRequired),
            authorization: cdktf.stringToTerraform(this._authorization),
            authorization_scopes: cdktf.listMapper(cdktf.stringToTerraform)(this._authorizationScopes),
            authorizer_id: cdktf.stringToTerraform(this._authorizerId),
            http_method: cdktf.stringToTerraform(this._httpMethod),
            operation_name: cdktf.stringToTerraform(this._operationName),
            request_models: cdktf.hashMapper(cdktf.stringToTerraform)(this._requestModels),
            request_parameters: cdktf.hashMapper(cdktf.booleanToTerraform)(this._requestParameters),
            request_validator_id: cdktf.stringToTerraform(this._requestValidatorId),
            resource_id: cdktf.stringToTerraform(this._resourceId),
            rest_api_id: cdktf.stringToTerraform(this._restApiId),
        };
    }
}
//# sourceMappingURL=api-gateway-method.js.map