func (d *dao) RevokeSecretRecord(namespace string, serial int64) error {
	_, err := d.dynamodbClient.UpdateItem(&dynamodb.UpdateItemInput{
		TableName: aws.String(cfnclient.GetSecretsTableName(d.appName)),
		Key: map[string]*dynamodb.AttributeValue{
			"Name":   &dynamodb.AttributeValue{S: aws.String(namespace)},
			"Serial": &dynamodb.AttributeValue{N: aws.String(strconv.FormatInt(serial, 10))},
		},
		AttributeUpdates: map[string]*dynamodb.AttributeValueUpdate{
			"Active": &dynamodb.AttributeValueUpdate{
				Value:  &dynamodb.AttributeValue{BOOL: aws.Bool(false)},
				Action: aws.String("PUT"),
			},
		},
	})
	return err
}
// RevokeSecretRecord revokes a secret record in DynamoDB.
RevokeSecretRecord revokes a secret record in DynamoDB.
// RevokeSecretRecord revokes a secret record in DynamoDB .
func (d *dao) RevokeSecretRecord(namespace string, serial int64) error {
	_, err := d.dynamodbClient.UpdateItem(&dynamodb.UpdateItemInput{
		TableName: aws.String(cfnclient.GetSecretsTableName(d.appName)),
		Key: map[string]*dynamodb.AttributeValue{
			"Name":   &dynamodb.AttributeValue{S: aws.String(namespace)},
			"Serial": &dynamodb.AttributeValue{N: aws.String(strconv.FormatInt(serial, 10))},
		},
		AttributeUpdates: map[string]*dynamodb.AttributeValueUpdate{
			"Active": &dynamodb.AttributeValueUpdate{
				Value:  &dynamodb.AttributeValue{BOOL: aws.Bool(false)},
				Action: aws.String("PUT"),
			},
		},
	})
	return err
}
func ( d * dao ) RevokeSecretRecord ( namespace string , serial int64 ) error { _ , err := d . dynamodbClient . UpdateItem ( & dynamodb . UpdateItemInput { TableName : aws . String ( cfnclient . GetSecretsTableName ( d . appName ) ) , Key : map [ string ] * dynamodb . AttributeValue { " " : & dynamodb . AttributeValue { S : aws . String ( namespace ) } , " " : & dynamodb . AttributeValue { N : aws . String ( strconv . FormatInt ( serial , 10 ) ) } , } , AttributeUpdates : map [ string ] * dynamodb . AttributeValueUpdate { " " : & dynamodb . AttributeValueUpdate { Value : & dynamodb . AttributeValue { BOOL : aws . Bool ( false ) } , Action : aws . String ( " " ) , } , } , } ) return err }
RevokeSecretRecord revokes a secret record in DynamoDB.
RevokeSecretRecord revokes a secret record in DynamoDB .