def get_on_create_update()

in cluster-bootstrap/ekslogs_custom_resource.py [0:0]


    def get_on_create_update(self, eks_name):
        create_params = {
            "name": eks_name,
            "logging": {
                "clusterLogging": [
                    {
                        "enabled": True,
                        "types": ["api", "audit", "authenticator", "controllerManager", "scheduler"]
                    }]
            }
        }

        # api_version=None uses the latest api
        on_create = custom_resources.AwsSdkCall(
            action='updateClusterConfig',
            service='EKS',
            parameters=create_params,
            physical_resource_id=custom_resources.PhysicalResourceId.of(
                f'{eks_name}Log-CR')
        )
        return on_create