我尝试过以下方法:
generate_controller_service = controller_service_api.create_controller_service(
body=nipyapi.nifi.ControllerServiceEntity(
parent_group_id=root_id,
revision={'version': 0},
component=nipyapi.nifi.ControllerServiceDTO(
name=controller_service_name,
bundle=nipyapi.nifi.models.bundle_dto.BundleDTO(
group='org.apache.nifi',
artifact='nifi-aws-nar',
version='2.0.0-M4'
),
type='org.apache.nifi.processors.aws.credentials.provider.service.AWSCredentialsProviderControllerService',
properties={
'Access Key ID': 'ABC'
}
),
)
)
但是,这会创建一个新属性
Access Key ID
,而不是设置现有属性值。