VaporShell.ECR.Classes.ps1
using namespace System using namespace System.Collections using namespace System.Collections.Generic using namespace System.IO using namespace System.Management.Automation [CmdletBinding()] Param() Write-Verbose "Importing class 'ECRRepositoryLifecyclePolicy'" class ECRRepositoryLifecyclePolicy : VSResourceProperty { hidden [string] $_vsFunctionName = 'Add-VSECRRepositoryLifecyclePolicy' hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecr-repository-lifecyclepolicy.html' hidden [object] $_lifecyclePolicyText hidden [object] $_registryId [string] $LifecyclePolicyText [string] $RegistryId hidden [void] _addAccessors() { $this | Add-Member -Force -MemberType ScriptProperty -Name LifecyclePolicyText -Value { $this._lifecyclePolicyText } -SecondValue { param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value) $this._lifecyclePolicyText = if ($value -is [int]) { $value.ToString() } else { $value } } $this | Add-Member -Force -MemberType ScriptProperty -Name RegistryId -Value { $this._registryId } -SecondValue { param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value) $this._registryId = if ($value -is [int]) { $value.ToString() } else { $value } } } ECRRepositoryLifecyclePolicy() : base() {} ECRRepositoryLifecyclePolicy([IDictionary] $props) : base($props) {} ECRRepositoryLifecyclePolicy([psobject] $props) : base($props) {} } Write-Verbose "Importing class 'ECRRepository'" class ECRRepository : VSResource { hidden [string] $_vsFunctionName = 'New-VSECRRepository' hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-repository.html' hidden [string[]] $_attributes = @('Arn') hidden [object] $_condition [string] $Type = 'AWS::ECR::Repository' [ECRRepositoryLifecyclePolicy] $LifecyclePolicy [string] $RepositoryName [VSJson] $RepositoryPolicyText [VSTag[]] $Tags [string] $ImageTagMutability [VSJson] $ImageScanningConfiguration [VSJson] $Metadata [UpdatePolicy] $UpdatePolicy [string] $Condition hidden [void] _addAccessors() { $this._addBaseAccessors() $this | Add-Member -Force -MemberType ScriptProperty -Name LifecyclePolicy -Value { $this.Properties['LifecyclePolicy'] } -SecondValue { param([ValidateType(([ECRRepositoryLifecyclePolicy], [string], [IntrinsicFunction], [ConditionFunction]))] [object] $value) $this.Properties['LifecyclePolicy'] = $value } $this | Add-Member -Force -MemberType ScriptProperty -Name RepositoryName -Value { $this.Properties['RepositoryName'] } -SecondValue { param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value) $this.Properties['RepositoryName'] = if ($value -is [int]) { $value.ToString() } else { $value } } $this | Add-Member -Force -MemberType ScriptProperty -Name RepositoryPolicyText -Value { $this.Properties['RepositoryPolicyText'] } -SecondValue { param([ValidateType(([string], [VSJson], [VSYaml], [psobject], [IDictionary]))][object] $value) $this.Properties['RepositoryPolicyText'] = if ($value -is [VSJson]) { $value } else { [VSJson]::new($value) } } $this | Add-Member -Force -MemberType ScriptProperty -Name Tags -Value { $this.Properties['Tags'] } -SecondValue { param([TransformTag()] [ValidateType(([IDictionary], [psobject], [VSTag]))] [object] $value) $this.Properties['Tags'] = [VSTag]::TransformTag($value) } $this | Add-Member -Force -MemberType ScriptProperty -Name ImageTagMutability -Value { $this.Properties['ImageTagMutability'] } -SecondValue { param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value) $this.Properties['ImageTagMutability'] = if ($value -is [int]) { $value.ToString() } else { $value } } $this | Add-Member -Force -MemberType ScriptProperty -Name ImageScanningConfiguration -Value { $this.Properties['ImageScanningConfiguration'] } -SecondValue { param([ValidateType(([string], [VSJson], [VSYaml], [psobject], [IDictionary]))][object] $value) $this.Properties['ImageScanningConfiguration'] = if ($value -is [VSJson]) { $value } else { [VSJson]::new($value) } } $this | Add-Member -Force -MemberType ScriptProperty -Name Condition -Value { $this._condition } -SecondValue { param( [ValidateType(([string], [IntrinsicFunction], [ConditionFunction]))] [object] $value ) $this._condition = $value } } ECRRepository() : base() {} ECRRepository([IDictionary] $props) : base($props) {} ECRRepository([psobject] $props) : base($props) {} } Write-Verbose "Importing class 'ECRPublicRepository'" class ECRPublicRepository : VSResource { hidden [string] $_vsFunctionName = 'New-VSECRPublicRepository' hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-publicrepository.html' hidden [string[]] $_attributes = @('Arn') hidden [object] $_condition [string] $Type = 'AWS::ECR::PublicRepository' [string] $RepositoryName [VSJson] $RepositoryPolicyText [VSJson] $RepositoryCatalogData [VSJson] $Metadata [UpdatePolicy] $UpdatePolicy [string] $Condition hidden [void] _addAccessors() { $this._addBaseAccessors() $this | Add-Member -Force -MemberType ScriptProperty -Name RepositoryName -Value { $this.Properties['RepositoryName'] } -SecondValue { param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value) $this.Properties['RepositoryName'] = if ($value -is [int]) { $value.ToString() } else { $value } } $this | Add-Member -Force -MemberType ScriptProperty -Name RepositoryPolicyText -Value { $this.Properties['RepositoryPolicyText'] } -SecondValue { param([ValidateType(([string], [VSJson], [VSYaml], [psobject], [IDictionary]))][object] $value) $this.Properties['RepositoryPolicyText'] = if ($value -is [VSJson]) { $value } else { [VSJson]::new($value) } } $this | Add-Member -Force -MemberType ScriptProperty -Name RepositoryCatalogData -Value { $this.Properties['RepositoryCatalogData'] } -SecondValue { param([ValidateType(([string], [VSJson], [VSYaml], [psobject], [IDictionary]))][object] $value) $this.Properties['RepositoryCatalogData'] = if ($value -is [VSJson]) { $value } else { [VSJson]::new($value) } } $this | Add-Member -Force -MemberType ScriptProperty -Name Condition -Value { $this._condition } -SecondValue { param( [ValidateType(([string], [IntrinsicFunction], [ConditionFunction]))] [object] $value ) $this._condition = $value } } ECRPublicRepository() : base() {} ECRPublicRepository([IDictionary] $props) : base($props) {} ECRPublicRepository([psobject] $props) : base($props) {} } |