ALIYUN::FC::ProvisionConfig is used to create a reserved instance.

Syntax

{
  "Type": "ALIYUN::FC::ProvisionConfig",
  "Properties": {
    "ServiceName": String,
    "Target": Integer,
    "FunctionName": String,
    "Qualifier": String
  }
}

Properties

Parameter Type Required Editable Description Constraint
ServiceName String Yes Not supported Component None
Target Integer Yes Yes Target number of Reserved Instances None
FunctionName String Yes Not supported Function Name None
Qualifier String Yes Not supported Service alias None

Return value

Fn::GetAtt

  • ServiceName: The service name.
  • Resource: The description of the Resource.
  • Target: The number of Target Reserved Instances.
  • FunctionName: The name of the function.
  • Qualifier: The alias of the service.

Examples

JSON format

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Resources": {
    "ProvisionConfig": {
      "Type": "ALIYUN::FC::ProvisionConfig",
      "Properties": {
        "ServiceName": {
          "Ref": "ServiceName"
        },
        "Target": {
          "Ref": "Target"
        },
        "Qualifier": {
          "Ref": "Qualifier"
        },
        "FunctionName": {
          "Ref": "FunctionName"
        }
      }
    }
  },
  "Parameters": {
    "ServiceName": {
      "MinLength": 1,
      "Type": "String",
      "Description": "Service name",
      "MaxLength": 128
    },
    "Target": {
      "Type": "Number",
      "Description": "Number of provision"
    },
    "Qualifier": {
      "Type": "String",
      "Description": "Service's alias.\nExample : \"LATEST\""
    },
    "FunctionName": {
      "Type": "String",
      "Description": "Function name"
    }
  },
  "Outputs": {
    "ServiceName": {
      "Description": "The service name",
      "Value": {
        "Fn::GetAtt": [
          "ProvisionConfig",
          "ServiceName"
        ]
      }
    },
    "Resource": {
      "Description": "The resource",
      "Value": {
        "Fn::GetAtt": [
          "ProvisionConfig",
          "Resource"
        ]
      }
    },
    "Target": {
      "Description": "Number of provision",
      "Value": {
        "Fn::GetAtt": [
          "ProvisionConfig",
          "Target"
        ]
      }
    },
    "Qualifier": {
      "Description": "The service alias",
      "Value": {
        "Fn::GetAtt": [
          "ProvisionConfig",
          "Qualifier"
        ]
      }
    },
    "FunctionName": {
      "Description": "The function name",
      "Value": {
        "Fn::GetAtt": [
          "ProvisionConfig",
          "FunctionName"
        ]
      }
    }
  }
}

YAML format

ROSTemplateFormatVersion: '2015-09-01'
Resources:
  ProvisionConfig:
    Type: 'ALIYUN::FC::ProvisionConfig'
    Properties:
      ServiceName:
        Ref: ServiceName
      Target:
        Ref: Target
      Qualifier:
        Ref: Qualifier
      FunctionName:
        Ref: FunctionName
Parameters:
  ServiceName:
    MinLength: 1
    Type: String
    Description: Service name
    MaxLength: 128
  Target:
    Type: Number
    Description: Number of provision
  Qualifier:
    Type: String
    Description: |-
      Service's alias.
      Example : "LATEST"
  FunctionName:
    Type: String
    Description: Function name
Outputs:
  ServiceName:
    Description: The service name
    Value:
      'Fn::GetAtt':
        -ProvisionConfig
        -ServiceName
  Resource:
    Description: The resource
    Value:
      'Fn::GetAtt':
        -ProvisionConfig
        -Resource
  Target:
    Description: Number of provision
    Value:
      'Fn::GetAtt':
        -ProvisionConfig
        -Target
  Qualifier:
    Description: The service alias
    Value:
      'Fn::GetAtt':
        -ProvisionConfig
        -Qualifier
  FunctionName:
    Description: The function name
    Value:
      'Fn::GetAtt':
        -ProvisionConfig
        -FunctionName