Public/Resource Property Types/Add-VSDynamoDBTableProvisionedThroughput.ps1
function Add-VSDynamoDBTableProvisionedThroughput { <# .SYNOPSIS Adds an AWS::DynamoDB::Table.ProvisionedThroughput resource property to the template .DESCRIPTION Adds an AWS::DynamoDB::Table.ProvisionedThroughput resource property to the template .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-provisionedthroughput.html .PARAMETER ReadCapacityUnits Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-provisionedthroughput.html#cfn-dynamodb-provisionedthroughput-readcapacityunits PrimitiveType: Long Required: True UpdateType: Mutable .PARAMETER WriteCapacityUnits Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-provisionedthroughput.html#cfn-dynamodb-provisionedthroughput-writecapacityunits PrimitiveType: Long Required: True UpdateType: Mutable .FUNCTIONALITY Vaporshell #> [OutputType('Vaporshell.Resource.DynamoDB.Table.ProvisionedThroughput')] [cmdletbinding()] Param ( [parameter(Mandatory = $true)] $ReadCapacityUnits, [parameter(Mandatory = $true)] $WriteCapacityUnits ) Begin { $obj = [PSCustomObject]@{} $commonParams = @('Verbose','Debug','ErrorAction','WarningAction','InformationAction','ErrorVariable','WarningVariable','InformationVariable','OutVariable','OutBuffer','PipelineVariable') } Process { foreach ($key in $PSBoundParameters.Keys | Where-Object {$commonParams -notcontains $_}) { $obj | Add-Member -MemberType NoteProperty -Name $key -Value $PSBoundParameters.$key } } End { $obj | Add-ObjectDetail -TypeName 'Vaporshell.Resource.DynamoDB.Table.ProvisionedThroughput' } } |