# Glacier documentation customizations ('docs.*.glacier.*.complete-section', AutoPopulatedParam( 'accountId', 'Note: this parameter is set to "-" by \ default if no value is not specified.'). document_auto_populated_param), ('docs.*.glacier.*.complete-section', AutoPopulatedParam('checksum').document_auto_populated_param), # UserData base64 encoding documentation customizations ('docs.*.ec2.RunInstances.complete-section', document_base64_encoding()), ('docs.*.autoscaling.CreateLaunchConfiguration.complete-section', document_base64_encoding()), # EC2 CopySnapshot documentation customizations ('docs.*.ec2.CopySnapshot.complete-section', AutoPopulatedParam('PresignedUrl').document_auto_populated_param), ('docs.*.ec2.CopySnapshot.complete-section', AutoPopulatedParam('DestinationRegion').document_auto_populated_param), # S3 SSE documentation modifications ('docs.*.s3.*.complete-section', AutoPopulatedParam('SSECustomerKeyMD5').document_auto_populated_param), # The following S3 operations cannot actually accept a ContentMD5 ('docs.*.s3.*.complete-section', HideParamFromOperations('s3', 'ContentMD5', [ 'DeleteObjects', 'PutBucketAcl', 'PutBucketCors', 'PutBucketLifecycle', 'PutBucketLogging', 'PutBucketNotification', 'PutBucketPolicy', 'PutBucketReplication', 'PutBucketRequestPayment', 'PutBucketTagging', 'PutBucketVersioning', 'PutBucketWebsite', 'PutObjectAcl' ]).hide_param) ]
def setUp(self): super(TestHideParamFromOperations, self).setUp() self.name = 'MyMember' self.param = HideParamFromOperations('s3', self.name, ['SampleOperation'])