# AWS::XRay::SamplingRule This schema provides construct and validation rules for AWS-XRay SamplingRule resource parameters. ## Syntax To declare this entity in your AWS CloudFormation template, use the following syntax: ### JSON
{
    "Type" : "AWS::XRay::SamplingRule",
    "Properties" : {
        "SamplingRule" : SamplingRule,
        "SamplingRuleRecord" : SamplingRuleRecord,
        "SamplingRuleUpdate" : SamplingRuleUpdate,
        "RuleName" : String,
        "Tags" : [ [ Tags, ... ], ... ]
    }
}
### YAML
Type: AWS::XRay::SamplingRule
Properties:
    SamplingRule: SamplingRule
    SamplingRuleRecord: SamplingRuleRecord
    SamplingRuleUpdate: SamplingRuleUpdate
    RuleName: String
    Tags: 
      - 
      - Tags
## Properties #### SamplingRule _Required_: No _Type_: SamplingRule _Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) #### SamplingRuleRecord _Required_: No _Type_: SamplingRuleRecord _Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) #### SamplingRuleUpdate _Required_: No _Type_: SamplingRuleUpdate _Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) #### RuleName The ARN of the sampling rule. Specify a rule by either name or ARN, but not both. _Required_: No _Type_: String _Minimum_: 1 _Maximum_: 32 _Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) #### Tags _Required_: No _Type_: List of List of Tags _Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) ## Return Values ### Ref When you pass the logical ID of this resource to the intrinsic `Ref` function, Ref returns the RuleARN. ### Fn::GetAtt The `Fn::GetAtt` intrinsic function returns a value for a specified attribute of this type. The following are the available attributes and sample return values. For more information about using the `Fn::GetAtt` intrinsic function, see [Fn::GetAtt](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-getatt.html). #### RuleARN The ARN of the sampling rule. Specify a rule by either name or ARN, but not both.